Merge pull request #17997 from teozkr/fix/buildstackproject-stackroot

buildStackProject: Fix missing STACK_ROOT causing build errors

authored by Peter Simons and committed by GitHub d01416ba b89fa5fd

+4 -1
+4 -1
pkgs/development/haskell-modules/generic-stack-builder.nix
··· 29 30 preferLocalBuild = true; 31 32 - configurePhase = args.configurePhase or "stack setup"; 33 34 buildPhase = args.buildPhase or "stack build"; 35
··· 29 30 preferLocalBuild = true; 31 32 + configurePhase = args.configurePhase or '' 33 + export STACK_ROOT=$NIX_BUILD_TOP/.stack 34 + stack setup 35 + ''; 36 37 buildPhase = args.buildPhase or "stack build"; 38