git.iko.soy/typeable/nixpkgs
on master help sign in
ghc 8.4.2, head: Adjust enableShared enableTerminfo for windows
commitc7458ded5c34161a33773f872ab10f0dd0af4b2c authorJohn Ericson <John.Ericson@Obsidian.Systems> dateSun 20 May 2018, 02:21 (9 years ago) parent10b76a4
2 files changed+10−4
pkgs/development/compilers/ghc/8.4.2.nix+5−2 pkgs/development/compilers/ghc/head.nix+5−2
pkgs/development/compilers/ghc/8.4.2.nix+5−2
@@ -22,7 +22,10 @@
2222
2323, # Whether to build dynamic libs for the standard library (on the target
2424 # platform). Static libs are always built.
25− enableShared ? !targetPlatform.useAndroidPrebuilt
25+ enableShared ? !targetPlatform.isWindows && !targetPlatform.useAndroidPrebuilt
26+
27+, # Whetherto build terminfo.
28+ enableTerminfo ? !targetPlatform.isWindows
2629
2730, # What flavour to build. An empty string indicates no
2831 # specific flavour and falls back to ghc default values.
@@ -60,7 +63,7 @@ let
6063 '';
6164
6265 # Splicer will pull out correct variations
63− libDeps = platform: [ ncurses ]
66+ libDeps = platform: stdenv.lib.optional enableTerminfo [ ncurses ]
6467 ++ stdenv.lib.optional (!enableIntegerSimple) gmp
6568 ++ stdenv.lib.optional (platform.libc != "glibc") libiconv;
6669
pkgs/development/compilers/ghc/head.nix+5−2
@@ -22,7 +22,10 @@
2222
2323, # Whether to build dynamic libs for the standard library (on the target
2424 # platform). Static libs are always built.
25− enableShared ? !targetPlatform.useAndroidPrebuilt
25+ enableShared ? !targetPlatform.isWindows && !targetPlatform.useAndroidPrebuilt
26+
27+, # Whetherto build terminfo.
28+ enableTerminfo ? !targetPlatform.isWindows
2629
2730, version ? "8.5.20180118"
2831, # What flavour to build. An empty string indicates no
@@ -61,7 +64,7 @@ let
6164 '';
6265
6366 # Splicer will pull out correct variations
64− libDeps = platform: [ ncurses ]
67+ libDeps = platform: stdenv.lib.optional enableTerminfo [ ncurses ]
6568 ++ stdenv.lib.optional (!enableIntegerSimple) gmp
6669 ++ stdenv.lib.optional (platform.libc != "glibc") libiconv;
6770