Merge pull request #9756 from adnelson/feature/shellHook_option_in_haskell_mkderivation

add shellHook argument so that users can pass in their own

Changed files
+2
pkgs
development
haskell-modules
+2
pkgs/development/haskell-modules/generic-builder.nix
···
, installPhase ? "", preInstall ? "", postInstall ? ""
, checkPhase ? "", preCheck ? "", postCheck ? ""
, preFixup ? "", postFixup ? ""
+
, shellHook ? ""
, coreSetup ? false # Use only core packages to build Setup.hs.
, useCpphs ? false
} @ args:
···
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}
'';
};