Add support for user-extensible shellHook to buildStackProject

buildStackProject is overridding shell hook and doesn't append
user-specified shellHook to it, resulting in user's shellHook
never executing.
This commit is contained in:
Urban Skudnik 2018-08-06 21:01:38 +02:00
parent 9934f0bb51
commit 01a8fa1a72

View File

@ -33,7 +33,7 @@ in stdenv.mkDerivation (args // {
STACK_PLATFORM_VARIANT="nix";
STACK_IN_NIX_SHELL=1;
STACK_IN_NIX_EXTRA_ARGS = extraArgs;
shellHook = addStackArgsHook;
shellHook = addStackArgsHook + args.shellHook or "";
# XXX: workaround for https://ghc.haskell.org/trac/ghc/ticket/11042.