@@ -28,7 +28,10 @@ stdenv.mkDerivation (args // {
29 preferLocalBuild = true;
29 preferLocalBuild = true;
31− configurePhase = args.configurePhase or "stack setup";
31+ configurePhase = args.configurePhase or ''
32+ export STACK_ROOT=$NIX_BUILD_TOP/.stack
33 buildPhase = args.buildPhase or "stack build";
36 buildPhase = args.buildPhase or "stack build";