ghc-7.10.x: compile Setup.hs with -threaded to avoid hanging test suites

Closes https://github.com/NixOS/nixpkgs/issues/6259.
This commit is contained in:
Peter Simons
2015-02-13 22:24:32 +01:00
parent 4e82b03f29
commit 9db348d7f9
2 changed files with 1 additions and 8 deletions
@@ -88,6 +88,7 @@ let
setupCompileFlags = [
(optionalString (!coreSetup) "-${packageDbFlag}=$packageConfDir")
(optionalString (versionOlder "7.8" ghc.version) "-j$NIX_BUILD_CORES")
(optionalString (versionOlder "7.10" ghc.version) "-threaded") # https://github.com/haskell/cabal/issues/2398
];
isHaskellPkg = x: (x ? pname) && (x ? version) && (x ? env);