AFAICT, this isn't exactly the same thing as what ghc-paths would give you; in a nix environment, the global-package-db is passed as a flag in the GHC wrapper script, whereas ghc-paths would give you the package DB that the real GHC uses which won't have everything in it.
AFAICT, this isn't exactly the same thing as what ghc-paths would give you; in a nix environment, the global-package-db is passed as a flag in the GHC wrapper script, whereas ghc-paths would give you the package DB that the real GHC uses which won't have everything in it.