diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix index 37916c0bba20..0786238040b6 100644 --- a/pkgs/development/haskell-modules/generic-builder.nix +++ b/pkgs/development/haskell-modules/generic-builder.nix @@ -46,6 +46,10 @@ in , isExecutable ? false, isLibrary ? !isExecutable , jailbreak ? false , license +# We cannot enable -j parallelism for libraries because GHC is far more +# likely to generate a non-determistic library ID in that case. Further +# details are at . +, enableParallelBuilding ? (stdenv.lib.versionOlder "7.8" ghc.version && !isLibrary) || stdenv.lib.versionOlder "8.0.1" ghc.version , maintainers ? [] , doCoverage ? false , doHaddock ? !(ghc.isHaLVM or false) @@ -112,11 +116,6 @@ let main = defaultMain ''; - # We cannot enable -j parallelism for libraries because GHC is far more - # likely to generate a non-determistic library ID in that case. Further - # details are at . - enableParallelBuilding = (versionOlder "7.8" ghc.version && !isLibrary) || versionOlder "8.0.1" ghc.version; - crossCabalFlags = [ "--with-ghc=${ghc.targetPrefix}ghc" "--with-ghc-pkg=${ghc.targetPrefix}ghc-pkg"