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:
commit
f24ccfd54d
|
@ -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}
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue