buildStackProject: Fix missing STACK_ROOT causing build errors
This commit is contained in:
@@ -28,7 +28,10 @@ stdenv.mkDerivation (args // {
|
|||||||
|
|
||||||
preferLocalBuild = true;
|
preferLocalBuild = true;
|
||||||
|
|
||||||
configurePhase = args.configurePhase or "stack setup";
|
configurePhase = args.configurePhase or ''
|
||||||
|
export STACK_ROOT=$NIX_BUILD_TOP/.stack
|
||||||
|
stack setup
|
||||||
|
'';
|
||||||
|
|
||||||
buildPhase = args.buildPhase or "stack build";
|
buildPhase = args.buildPhase or "stack build";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user