summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-12-04 21:16:43 -0600
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-12-13 14:04:34 -0500
commit3170d617ef7618a27cacf2eabac3ce3ea9d5a7c4 (patch)
treef0ff19db124f62e0c6489633bc76853d61fd8627 /pkgs
parenta8e0694993a561483e6b28d745367d04a0772600 (diff)
downloadnixpkgs-3170d617ef7618a27cacf2eabac3ce3ea9d5a7c4.tar
nixpkgs-3170d617ef7618a27cacf2eabac3ce3ea9d5a7c4.tar.gz
nixpkgs-3170d617ef7618a27cacf2eabac3ce3ea9d5a7c4.tar.bz2
nixpkgs-3170d617ef7618a27cacf2eabac3ce3ea9d5a7c4.tar.lz
nixpkgs-3170d617ef7618a27cacf2eabac3ce3ea9d5a7c4.tar.xz
nixpkgs-3170d617ef7618a27cacf2eabac3ce3ea9d5a7c4.tar.zst
nixpkgs-3170d617ef7618a27cacf2eabac3ce3ea9d5a7c4.zip
ncurses: make shared linking optinoal
when enableShared = false, we set --without-shared flag.

(cherry picked from commit 53a67891ab1fefd3aceed07f173cdd33f549fc70)
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/ncurses/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/libraries/ncurses/default.nix b/pkgs/development/libraries/ncurses/default.nix
index 6293efcca8b..56727f5a5d8 100644
--- a/pkgs/development/libraries/ncurses/default.nix
+++ b/pkgs/development/libraries/ncurses/default.nix
@@ -4,6 +4,7 @@
 , mouseSupport ? false
 , unicode ? true
 , enableStatic ? stdenv.hostPlatform.useAndroidPrebuilt
+, enableShared ? !enableStatic
 , withCxx ? !stdenv.hostPlatform.useAndroidPrebuilt
 
 , gpm
@@ -28,7 +29,7 @@ stdenv.mkDerivation rec {
   setOutputFlags = false; # some aren't supported
 
   configureFlags = [
-    "--with-shared"
+    (lib.withFeature enableShared "shared")
     "--without-debug"
     "--enable-pc-files"
     "--enable-symlinks"