Merge pull request #33376 from dtzWill/fix/ncurses6-clang

ncurses: fix ncurses6 build w/clang

authored by Daiderd Jordan and committed by GitHub c16e8b21 bbb04db8

+3 -1
+3 -1
pkgs/development/libraries/ncurses/default.nix
··· 22 22 sha256 = "11adzj0k82nlgpfrflabvqn2m7fmhp2y6pd7ivmapynxqb9vvb92"; 23 23 }); 24 24 25 - patches = [ ./clang.patch ] ++ lib.optional (abiVersion == "5" && stdenv.cc.isGNU) ./gcc-5.patch; 25 + # Unnecessarily complicated in order to avoid mass-rebuilds 26 + patches = lib.optional (!stdenv.cc.isClang || abiVersion == "5") ./clang.patch 27 + ++ lib.optional (stdenv.cc.isGNU && abiVersion == "5") ./gcc-5.patch; 26 28 27 29 outputs = [ "out" "dev" "man" ]; 28 30 setOutputFlags = false; # some aren't supported