summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-01-03 08:43:34 -0600
committerWill Dietz <w@wdtz.org>2018-01-03 08:49:48 -0600
commit48a5212c15864dc8804133a53b28e43cb7a59050 (patch)
treef44b29acda21c4f02b18ce74026fdb66414a294e /pkgs
parent96f0d3b9084bd1949f9b2b79e11ee7ee35bac084 (diff)
ncurses: use more complicated expression to avoid mass-rebuilds, note
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/ncurses/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/ncurses/default.nix b/pkgs/development/libraries/ncurses/default.nix
index ae875faddd729..675756509c856 100644
--- a/pkgs/development/libraries/ncurses/default.nix
+++ b/pkgs/development/libraries/ncurses/default.nix
@@ -22,7 +22,9 @@ stdenv.mkDerivation rec {
     sha256 = "11adzj0k82nlgpfrflabvqn2m7fmhp2y6pd7ivmapynxqb9vvb92";
   });
 
-  patches = lib.optionals (abiVersion == "5") [ ./clang.patch ./gcc-5.patch ];
+  # Unnecessarily complicated in order to avoid mass-rebuilds
+  patches = lib.optional (!stdenv.cc.isClang || abiVersion == "5") ./clang.patch
+    ++ lib.optional (stdenv.cc.isGNU && abiVersion == "5") ./gcc-5.patch;
 
   outputs = [ "out" "dev" "man" ];
   setOutputFlags = false; # some aren't supported