generic Haskell builder: Don't call stack setup.

`stack setup` should not be called inside `nix-build` because
that makes stack download a GHC instead of using nix's one
(the one provided `generic-stack-builder.nix` as the `ghc` argument),
which will not work.
Further evidence for this is that the `stack --nix` support
intentionally uses `--system-ghc` for the same purpose.
This commit is contained in:
Niklas Hambüchen 2017-04-26 20:20:36 +02:00
parent 060f7cb94d
commit 139b1377d4

View file

@ -37,7 +37,6 @@ stdenv.mkDerivation (args // {
configurePhase = args.configurePhase or ''
export STACK_ROOT=$NIX_BUILD_TOP/.stack
stack setup
'';
buildPhase = args.buildPhase or "stack build";