summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/with-packages-wrapper.nix
diff options
context:
space:
mode:
authorCharles Strahan <charles.c.strahan@gmail.com>2015-01-22 18:10:08 -0500
committerCharles Strahan <charles.c.strahan@gmail.com>2015-06-11 20:25:31 -0400
commit3859f7bdabe8ec56c1eef832bd5b74280d8298e1 (patch)
tree4a6e63fcbb25143cfa6de29bac7357ce29d292bd /pkgs/development/haskell-modules/with-packages-wrapper.nix
parentcd28c5517c224c0c969f6bccb1f85dcc280ed7f2 (diff)
downloadnixlib-3859f7bdabe8ec56c1eef832bd5b74280d8298e1.tar
nixlib-3859f7bdabe8ec56c1eef832bd5b74280d8298e1.tar.gz
nixlib-3859f7bdabe8ec56c1eef832bd5b74280d8298e1.tar.bz2
nixlib-3859f7bdabe8ec56c1eef832bd5b74280d8298e1.tar.lz
nixlib-3859f7bdabe8ec56c1eef832bd5b74280d8298e1.tar.xz
nixlib-3859f7bdabe8ec56c1eef832bd5b74280d8298e1.tar.zst
nixlib-3859f7bdabe8ec56c1eef832bd5b74280d8298e1.zip
haskell-ng: hoogleLocal support
Diffstat (limited to 'pkgs/development/haskell-modules/with-packages-wrapper.nix')
-rw-r--r--pkgs/development/haskell-modules/with-packages-wrapper.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/development/haskell-modules/with-packages-wrapper.nix b/pkgs/development/haskell-modules/with-packages-wrapper.nix
index 4362bacb9ee7..740047e2c27f 100644
--- a/pkgs/development/haskell-modules/with-packages-wrapper.nix
+++ b/pkgs/development/haskell-modules/with-packages-wrapper.nix
@@ -1,6 +1,7 @@
 { stdenv, lib, ghc, llvmPackages, packages, buildEnv, makeWrapper
 , ignoreCollisions ? false, withLLVM ? false
 , postBuild ? ""
+, haskellPackages
 }:
 
 # This wrapper works only with GHC 6.12 or later.
@@ -94,7 +95,9 @@ buildEnv {
     ${lib.optionalString hasLibraries "$out/bin/${ghcCommand}-pkg recache"}
     $out/bin/${ghcCommand}-pkg check
   '' + postBuild;
-} // {
-  preferLocalBuild = true;
-  inherit (ghc) version meta;
+  passthru = {
+    preferLocalBuild = true;
+    inherit (ghc) version meta;
+    inherit haskellPackages;
+  };
 }