From 139b1377d4f9a8c943af79dd245ea9ecf6536567 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Hamb=C3=BCchen?= Date: Wed, 26 Apr 2017 20:20:36 +0200 Subject: [PATCH] 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. --- pkgs/development/haskell-modules/generic-stack-builder.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/development/haskell-modules/generic-stack-builder.nix b/pkgs/development/haskell-modules/generic-stack-builder.nix index 1a16cf3683f..53772b90dfb 100644 --- a/pkgs/development/haskell-modules/generic-stack-builder.nix +++ b/pkgs/development/haskell-modules/generic-stack-builder.nix @@ -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";