From d2457ea99196710499b4d94efc6a88ab2f2d1c51 Mon Sep 17 00:00:00 2001 From: Allen Nelson Date: Wed, 9 Sep 2015 12:58:28 -0500 Subject: [PATCH] add shellHook argument so that users can pass in their own --- pkgs/development/haskell-modules/generic-builder.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix index 3442e8730806..bd04ab7e6a84 100644 --- a/pkgs/development/haskell-modules/generic-builder.nix +++ b/pkgs/development/haskell-modules/generic-builder.nix @@ -42,6 +42,7 @@ , installPhase ? "", preInstall ? "", postInstall ? "" , checkPhase ? "", preCheck ? "", postCheck ? "" , preFixup ? "", postFixup ? "" +, shellHook ? "" , coreSetup ? false # Use only core packages to build Setup.hs. , useCpphs ? false } @ args: @@ -279,6 +280,7 @@ stdenv.mkDerivation ({ export NIX_${ghcCommandCaps}PKG="${ghcEnv}/bin/${ghcCommand}-pkg" export NIX_${ghcCommandCaps}_DOCDIR="${ghcEnv}/share/doc/ghc/html" export NIX_${ghcCommandCaps}_LIBDIR="${ghcEnv}/lib/${ghcEnv.name}" + ${shellHook} ''; };