3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #9756 from adnelson/feature/shellHook_option_in_haskell_mkderivation

add shellHook argument so that users can pass in their own
This commit is contained in:
Peter Simons 2015-09-09 22:31:13 +02:00
commit f24ccfd54d

View file

@ -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}
'';
};