diff --git a/pkgs/development/haskell-modules/with-packages-wrapper.nix b/pkgs/development/haskell-modules/with-packages-wrapper.nix index 071f868875f5..ad88703edd5c 100644 --- a/pkgs/development/haskell-modules/with-packages-wrapper.nix +++ b/pkgs/development/haskell-modules/with-packages-wrapper.nix @@ -33,8 +33,8 @@ let isHaskellPkg = x: (x ? pname) && (x ? version); in if packages == [] then ghc else -buildEnv { - name = "haskell-env-${ghc.name}"; +stdenv.lib.addPassthru (buildEnv { + inherit (ghc) name; paths = stdenv.lib.filter isHaskellPkg (stdenv.lib.closePropagation packages) ++ [ghc]; inherit ignoreCollisions; postBuild = '' @@ -76,4 +76,4 @@ buildEnv { $out/bin/ghc-pkg recache $out/bin/ghc-pkg check ''; -} +}) { inherit (ghc) version; }