@@ -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