Merge pull request #44568 from uskudnik/add-shellhook-support-to-buildstackproject

Add support for user-extensible shellHook to haskell.lib.buildStackProject
This commit is contained in:
Silvan Mosberger 2018-08-13 19:39:43 +02:00 committed by GitHub
commit a57c8579a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.