about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/with-packages-wrapper.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/haskell-modules/with-packages-wrapper.nix')
-rw-r--r--pkgs/development/haskell-modules/with-packages-wrapper.nix6
1 files changed, 3 insertions, 3 deletions
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; }