diff options
author | Matthew Bauer <matthew.bauer@obsidian.systems> | 2018-07-20 21:14:28 -0400 |
---|---|---|
committer | Matthew Bauer <matthew.bauer@obsidian.systems> | 2018-07-21 17:00:05 -0400 |
commit | 3530c39b97ac4b587279933c404b64b7d69014f9 (patch) | |
tree | 5a0873700742a9d39a496b34b8ca8f2d6b72617b | |
parent | ef087554d0fad9f8e20d9c071976ce0fd273d37a (diff) | |
download | nixlib-3530c39b97ac4b587279933c404b64b7d69014f9.tar nixlib-3530c39b97ac4b587279933c404b64b7d69014f9.tar.gz nixlib-3530c39b97ac4b587279933c404b64b7d69014f9.tar.bz2 nixlib-3530c39b97ac4b587279933c404b64b7d69014f9.tar.lz nixlib-3530c39b97ac4b587279933c404b64b7d69014f9.tar.xz nixlib-3530c39b97ac4b587279933c404b64b7d69014f9.tar.zst nixlib-3530c39b97ac4b587279933c404b64b7d69014f9.zip |
ncurses: add windows configure flags
these two flags are needed for windows support to work - sp-funcs - term-driver
-rw-r--r-- | pkgs/development/libraries/ncurses/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/libraries/ncurses/default.nix b/pkgs/development/libraries/ncurses/default.nix index cf478837b86d..042c09fd8644 100644 --- a/pkgs/development/libraries/ncurses/default.nix +++ b/pkgs/development/libraries/ncurses/default.nix @@ -34,7 +34,11 @@ stdenv.mkDerivation rec { ] ++ lib.optional unicode "--enable-widec" ++ lib.optional enableStatic "--enable-static" ++ lib.optional (!withCxx) "--without-cxx" - ++ lib.optional (abiVersion == "5") "--with-abi-version=5"; + ++ lib.optional (abiVersion == "5") "--with-abi-version=5" + ++ lib.optionals hostPlatform.isWindows [ + "--enable-sp-funcs" + "--enable-term-driver" + ]; # Only the C compiler, and explicitly not C++ compiler needs this flag on solaris: CFLAGS = lib.optionalString stdenv.isSunOS "-D_XOPEN_SOURCE_EXTENDED"; |