Skip to content

Commit

Permalink
Fix ghc version check for "enableStaticLibraries"
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Trinkle committed Apr 29, 2018
1 parent 68e5495 commit 47f2e72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/haskell-modules/generic-builder.nix
Expand Up @@ -146,7 +146,7 @@ let
(enableFeature enableExecutableProfiling (if versionOlder ghc.version "8" then "executable-profiling" else "profiling"))
(enableFeature enableSharedLibraries "shared")
(optionalString (versionAtLeast ghc.version "7.10") (enableFeature doCoverage "coverage"))
(optionalString (versionOlder "8.4" ghc.version) (enableFeature enableStaticLibraries "static"))
(optionalString (versionAtLeast ghc.version "8.5") (enableFeature enableStaticLibraries "static"))
(optionalString (isGhcjs || versionOlder "7.4" ghc.version) (enableFeature enableSharedExecutables "executable-dynamic"))
(optionalString (isGhcjs || versionOlder "7" ghc.version) (enableFeature doCheck "tests"))
"--enable-library-vanilla" # TODO: Should this be configurable?
Expand Down

0 comments on commit 47f2e72

Please sign in to comment.