From e4a61c8b6e898f111026832eca374d7cb8969251 Mon Sep 17 00:00:00 2001 From: Moritz Angermann Date: Sun, 15 Jul 2018 16:27:26 +0800 Subject: [PATCH] [haskell/generic-builder] windows always has an active library This commit is not really correct. The `hasActiveLibrary` check is wrong. We can have an active library even if we do not ask for a static lirbary or dynamic one; we can still have just a set of objet files and archives. --- pkgs/development/haskell-modules/generic-builder.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix index 80274f515c5..f6fa1fdd959 100644 --- a/pkgs/development/haskell-modules/generic-builder.nix +++ b/pkgs/development/haskell-modules/generic-builder.nix @@ -112,7 +112,7 @@ let main = defaultMain ''; - hasActiveLibrary = isLibrary && (enableStaticLibraries || enableSharedLibraries || enableLibraryProfiling); + hasActiveLibrary = isLibrary && (enableStaticLibraries || enableSharedLibraries || enableLibraryProfiling || hostPlatform.isWindows); # We cannot enable -j parallelism for libraries because GHC is far more # likely to generate a non-determistic library ID in that case. Further