Merge pull request #36985 from obsidiansystems/no-allBut
treewide: get rid of platforms.allBut
commit2e87550acedb96e6cad4967749c60a96718ee04b
authorJohn Ericson <Ericson2314@yahoo.com>
dateWed 14 Mar 2018, 18:57 (9 years ago)
parentd78a411f79f80d
lib/systems/doubles.nix+2−1
@@ -24,10 +24,11 @@ let
2424in rec {
2525 inherit all;
2626
27− allBut = platforms: lists.filter (x: !(builtins.elem x platforms)) all;
2827 none = [];
2928
3029 arm = filterDoubles predicates.isArm;
30+ aarch64 = filterDoubles predicates.isAarch64;
31+ x86 = filterDoubles predicates.isx86;
3132 i686 = filterDoubles predicates.isi686;
3233 mips = filterDoubles predicates.isMips;
3334 x86_64 = filterDoubles predicates.isx86_64;
pkgs/applications/graphics/ahoviewer/default.nix+3−1
@@ -37,7 +37,9 @@ stdenv.mkDerivation rec {
3737 description = "A GTK2 image viewer, manga reader, and booru browser";
3838 maintainers = with maintainers; [ skrzyp xzfc ];
3939 license = licenses.mit;
40− platforms = platforms.allBut [ "darwin" "cygwin" ];
40+ # Unintentionally not working on Darwin:
41+ # https://github.com/ahodesuka/ahoviewer/issues/62
42+ platforms = platforms.linux;
4143 };
4244}
4345
pkgs/applications/window-managers/i3/lock-color.nix+1−1
@@ -34,6 +34,6 @@ stdenv.mkDerivation rec {
3434
3535 # Needs the SSE2 instruction set. See upstream issue
3636 # https://github.com/chrjguill/i3lock-color/issues/44
37− platforms = platforms.i686 ++ platforms.x86_64;
37+ platforms = platforms.x86;
3838 };
3939}
pkgs/data/icons/numix-icon-theme-square/default.nix+1−1
@@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
2929 description = "Numix icon theme (square version)";
3030 homepage = https://numixproject.org;
3131 license = licenses.gpl3;
32− platforms = with platforms; allBut darwin;
32+ platforms = platforms.linux; # Maybe other non-darwin Unix
3333 maintainers = with maintainers; [ romildo ];
3434 };
3535}
pkgs/development/compilers/chicken/default.nix+1−1
@@ -63,7 +63,7 @@ stdenv.mkDerivation {
6363 homepage = http://www.call-cc.org/;
6464 license = stdenv.lib.licenses.bsd3;
6565 maintainers = with stdenv.lib.maintainers; [ the-kenny ];
66− platforms = with stdenv.lib.platforms; allBut darwin;
66+ platforms = stdenv.lib.platforms.linux; # Maybe other non-darwin Unix
6767 description = "A portable compiler for the Scheme programming language";
6868 longDescription = ''
6969 CHICKEN is a compiler for the Scheme programming language.
pkgs/development/compilers/mono/generic.nix+1−1
@@ -88,7 +88,7 @@ stdenv.mkDerivation rec {
8888 meta = {
8989 homepage = http://mono-project.com/;
9090 description = "Cross platform, open source .NET development framework";
91− platforms = with stdenv.lib.platforms; allBut [ "aarch64-linux" ];
91+ platforms = stdenv.lib.platforms.x86;
9292 maintainers = with stdenv.lib.maintainers; [ viric thoughtpolice obadz vrthra ];
9393 license = stdenv.lib.licenses.free; # Combination of LGPL/X11/GPL ?
9494 };
pkgs/development/libraries/buddy/default.nix+1−1
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
1818 description = "Binary decision diagram package";
1919 license = "as-is";
2020
21− platforms = with stdenv.lib.platforms; allBut cygwin;
21+ platforms = stdenv.lib.platforms.unix; # Once had cygwin problems
2222 maintainers = [ stdenv.lib.maintainers.peti ];
2323 };
2424}
pkgs/development/libraries/cln/default.nix+1−1
@@ -15,6 +15,6 @@ stdenv.mkDerivation rec {
1515 description = "C/C++ library for numbers, a part of GiNaC";
1616 homepage = http://www.ginac.de/CLN/;
1717 maintainers = [ ];
18− platforms = with stdenv.lib.platforms; allBut cygwin;
18+ platforms = stdenv.lib.platforms.unix; # Once had cygwin problems
1919 };
2020}
pkgs/development/libraries/cloog-ppl/default.nix+1−1
@@ -69,6 +69,6 @@ stdenv.mkDerivation rec {
6969 make[3]: *** [Box.lo] Error 1
7070
7171 */
72− platforms = with stdenv.lib.platforms; allBut cygwin;
72+ platforms = stdenv.lib.platforms.unix; # Once had cygwin problems
7373 };
7474}
pkgs/development/libraries/cloog/0.18.0.nix+1−1
@@ -58,6 +58,6 @@ stdenv.mkDerivation rec {
5858 make[3]: *** [Box.lo] Error 1
5959
6060 */
61− platforms = with stdenv.lib.platforms; allBut cygwin;
61+ platforms = stdenv.lib.platforms.unix; # Once had cygwin problems
6262 };
6363}
pkgs/development/libraries/cloog/default.nix+1−1
@@ -59,6 +59,6 @@ stdenv.mkDerivation rec {
5959 make[3]: *** [Box.lo] Error 1
6060
6161 */
62− platforms = with stdenv.lib.platforms; allBut cygwin;
62+ platforms = stdenv.lib.platforms.unix; # Once had cygwin problems
6363 };
6464}
pkgs/development/libraries/rocksdb/default.nix+1−1
@@ -77,7 +77,7 @@ stdenv.mkDerivation rec {
7777 homepage = http://rocksdb.org;
7878 description = "A library that provides an embeddable, persistent key-value store for fast storage";
7979 license = licenses.bsd3;
80− platforms = platforms.allBut [ "i686-linux" ];
80+ platforms = platforms.x86_64 ++ platforms.aarch64;
8181 maintainers = with maintainers; [ adev wkennington ];
8282 };
8383}
pkgs/development/tools/rtags/default.nix+1−1
@@ -32,6 +32,6 @@ stdenv.mkDerivation rec {
3232 description = "C/C++ client-server indexer based on clang";
3333 homepage = https://github.com/andersbakken/rtags;
3434 license = stdenv.lib.licenses.gpl3;
35− platforms = stdenv.lib.platforms.allBut [ "i686-linux" ];
35+ platforms = with stdenv.lib.platforms; x86_64 ++ aarch64;
3636 };
3737}
pkgs/games/endless-sky/default.nix+1−1
@@ -41,6 +41,6 @@ stdenv.mkDerivation rec {
4141 gpl3Plus cc-by-sa-30 cc-by-sa-40 publicDomain
4242 ];
4343 maintainers = with maintainers; [ lheckemann ];
44− platforms = with platforms; allBut darwin;
44+ platforms = platforms.linux; # Maybe other non-darwin Unix
4545 };
4646}
pkgs/misc/screensavers/alock/default.nix+1−1
@@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
3838 xscreensaver and never will. It's just for locking the current
3939 X session.
4040 '';
41− platforms = with platforms; allBut cygwin;
41+ platforms = platforms.unix; # Cygwin had problems at one point
4242 maintainers = with maintainers; [ ftrvxmtrx chris-martin ];
4343 };
4444}
pkgs/misc/screensavers/xscreensaver/default.nix+1−1
@@ -50,7 +50,7 @@ stdenv.mkDerivation rec {
5050 homepage = https://www.jwz.org/xscreensaver/;
5151 description = "A set of screensavers";
5252 maintainers = with stdenv.lib.maintainers; [ raskin ];
53− platforms = with stdenv.lib.platforms; allBut cygwin;
53+ platforms = stdenv.lib.platforms.unix; # Once had cygwin problems
5454 inherit version;
5555 downloadPage = "https://www.jwz.org/xscreensaver/download.html";
5656 updateWalker = true;
pkgs/tools/graphics/barcode/default.nix+1−1
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
1414 meta = with stdenv.lib; {
1515 description = "GNU barcode generator";
1616 maintainers = with maintainers; [ raskin ];
17− platforms = with platforms; allBut darwin;
17+ platforms = platforms.linux; # Maybe other non-darwin Unix
1818 downloadPage = "http://ftp.gnu.org/gnu/barcode/";
1919 updateWalker = true;
2020 homepage = http://ftp.gnu.org/gnu/barcode/;
pkgs/tools/graphics/dcraw/default.nix+1−1
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
2323 homepage = http://www.cybercom.net/~dcoffin/dcraw/;
2424 description = "Decoder for many camera raw picture formats";
2525 license = stdenv.lib.licenses.free;
26− platforms = with stdenv.lib.platforms; allBut cygwin;
26+ platforms = stdenv.lib.platforms.unix; # Once had cygwin problems
2727 maintainers = [ ];
2828 };
2929}
pkgs/tools/misc/mbuffer/default.nix+1−1
@@ -18,6 +18,6 @@ stdenv.mkDerivation rec {
1818 description = "A tool for buffering data streams with a large set of unique features";
1919 license = stdenv.lib.licenses.gpl3;
2020 maintainers = with stdenv.lib.maintainers; [ tokudan ];
21− platforms = with stdenv.lib.platforms; allBut darwin;
21+ platforms = stdenv.lib.platforms.linux; # Maybe other non-darwin Unix
2222 };
2323}
pkgs/tools/networking/dnscrypt-proxy/default.nix+1−1
@@ -32,6 +32,6 @@ stdenv.mkDerivation rec {
3232 license = licenses.isc;
3333 maintainers = with maintainers; [ joachifm jgeerds ];
3434 # upstream claims OSX support, but Hydra fails
35− platforms = with platforms; allBut darwin;
35+ platforms = platforms.linux; # Maybe other non-darwin Unix
3636 };
3737}
pkgs/tools/networking/zerotierone/default.nix+1−1
@@ -39,6 +39,6 @@ stdenv.mkDerivation rec {
3939 homepage = https://www.zerotier.com;
4040 license = licenses.gpl3;
4141 maintainers = with maintainers; [ sjmackenzie zimbatm ehmry ];
42− platforms = platforms.allBut [ "i686-linux" ];
42+ platforms = platforms.x86_64 ++ platforms.aarch64;
4343 };
4444}
pkgs/top-level/python-packages.nix+1−1
@@ -13322,7 +13322,7 @@ in {
1332213322 homepage = https://pypi.python.org/pypi/PyICU/;
1332313323 description = "Python extension wrapping the ICU C++ API";
1332413324 license = licenses.mit;
13325− platforms = with platforms; allBut darwin;
13325+ platforms = platforms.linux; # Maybe other non-darwin Unix
1332613326 maintainers = [ maintainers.rycee ];
1332713327 };
1332813328 };
pkgs/top-level/release-lib.nix+1−1
@@ -108,7 +108,7 @@ rec {
108108
109109
110110 /* Common platform groups on which to test packages. */
111− inherit (platforms) unix linux darwin cygwin allBut all mesaPlatforms;
111+ inherit (platforms) unix linux darwin cygwin all mesaPlatforms;
112112
113113 /* Platform groups for specific kinds of applications. */
114114 x11Supported = linux;
pkgs/top-level/release-small.nix+5−5
@@ -21,7 +21,7 @@ with import ./release-lib.nix { inherit supportedSystems; };
2121 atlas = linux;
2222 autoconf = all;
2323 automake = all;
24− avahi = allBut cygwin; # Cygwin builds fail
24+ avahi = unix; # Cygwin builds fail
2525 bash = all;
2626 bashInteractive = all;
2727 bc = all;
@@ -54,7 +54,7 @@ with import ./release-lib.nix { inherit supportedSystems; };
5454 gnumake = all;
5555 gnupatch = all;
5656 gnupg = linux;
57− gnuplot = allBut cygwin;
57+ gnuplot = unix; # Cygwin builds fail
5858 gnused = all;
5959 gnutar = all;
6060 gnutls = linux;
@@ -128,7 +128,7 @@ with import ./release-lib.nix { inherit supportedSystems; };
128128 pkgconfig = all;
129129 pmccabe = linux;
130130 procps = linux;
131− python = allBut cygwin;
131+ python = unix; # Cygwin builds fail
132132 readline = all;
133133 rlwrap = all;
134134 rpm = linux;
@@ -138,9 +138,9 @@ with import ./release-lib.nix { inherit supportedSystems; };
138138 scrot = linux;
139139 sdparm = linux;
140140 sharutils = all;
141− sloccount = allBut cygwin;
141+ sloccount = unix; # Cygwin builds fail
142142 smartmontools = all;
143− sqlite = allBut cygwin;
143+ sqlite = unix; # Cygwin builds fail
144144 squid = linux;
145145 ssmtp = linux;
146146 stdenv = all;