From 01a8fa1a723cca9d31ae3ad6c49c8654a824ea1d Mon Sep 17 00:00:00 2001 From: Urban Skudnik Date: Mon, 6 Aug 2018 21:01:38 +0200 Subject: [PATCH] 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. --- pkgs/development/haskell-modules/generic-stack-builder.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/haskell-modules/generic-stack-builder.nix b/pkgs/development/haskell-modules/generic-stack-builder.nix index 591de1236d42..2afe270e0fc8 100644 --- a/pkgs/development/haskell-modules/generic-stack-builder.nix +++ b/pkgs/development/haskell-modules/generic-stack-builder.nix @@ -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.