treewide: get rid of platforms.allBut

Negative reasoning like `allBut` is a bad idea with an open world of
platforms. Concretely, if we add a new, quite different sort of
platform, existing packages with `allBut` will claim they work on it
even though they probably won't.
This commit is contained in:
John Ericson 2018-03-13 18:00:52 -04:00
parent 2d1d83d836
commit f79f80dbf2
24 changed files with 31 additions and 28 deletions

View File

@ -24,10 +24,11 @@ let
in rec { in rec {
inherit all; inherit all;
allBut = platforms: lists.filter (x: !(builtins.elem x platforms)) all;
none = []; none = [];
arm = filterDoubles predicates.isArm; arm = filterDoubles predicates.isArm;
aarch64 = filterDoubles predicates.isAarch64;
x86 = filterDoubles predicates.isx86;
i686 = filterDoubles predicates.isi686; i686 = filterDoubles predicates.isi686;
mips = filterDoubles predicates.isMips; mips = filterDoubles predicates.isMips;
x86_64 = filterDoubles predicates.isx86_64; x86_64 = filterDoubles predicates.isx86_64;

View File

@ -37,7 +37,9 @@ stdenv.mkDerivation rec {
description = "A GTK2 image viewer, manga reader, and booru browser"; description = "A GTK2 image viewer, manga reader, and booru browser";
maintainers = with maintainers; [ skrzyp xzfc ]; maintainers = with maintainers; [ skrzyp xzfc ];
license = licenses.mit; license = licenses.mit;
platforms = platforms.allBut [ "darwin" "cygwin" ]; # Unintentionally not working on Darwin:
# https://github.com/ahodesuka/ahoviewer/issues/62
platforms = platforms.linux;
}; };
} }

View File

@ -34,6 +34,6 @@ stdenv.mkDerivation rec {
# Needs the SSE2 instruction set. See upstream issue # Needs the SSE2 instruction set. See upstream issue
# https://github.com/chrjguill/i3lock-color/issues/44 # https://github.com/chrjguill/i3lock-color/issues/44
platforms = platforms.i686 ++ platforms.x86_64; platforms = platforms.x86;
}; };
} }

View File

@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
description = "Numix icon theme (square version)"; description = "Numix icon theme (square version)";
homepage = https://numixproject.org; homepage = https://numixproject.org;
license = licenses.gpl3; license = licenses.gpl3;
platforms = with platforms; allBut darwin; platforms = platforms.linux; # Maybe other non-darwin Unix
maintainers = with maintainers; [ romildo ]; maintainers = with maintainers; [ romildo ];
}; };
} }

View File

@ -63,7 +63,7 @@ stdenv.mkDerivation {
homepage = http://www.call-cc.org/; homepage = http://www.call-cc.org/;
license = stdenv.lib.licenses.bsd3; license = stdenv.lib.licenses.bsd3;
maintainers = with stdenv.lib.maintainers; [ the-kenny ]; maintainers = with stdenv.lib.maintainers; [ the-kenny ];
platforms = with stdenv.lib.platforms; allBut darwin; platforms = stdenv.lib.platforms.linux; # Maybe other non-darwin Unix
description = "A portable compiler for the Scheme programming language"; description = "A portable compiler for the Scheme programming language";
longDescription = '' longDescription = ''
CHICKEN is a compiler for the Scheme programming language. CHICKEN is a compiler for the Scheme programming language.

View File

@ -88,7 +88,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
homepage = http://mono-project.com/; homepage = http://mono-project.com/;
description = "Cross platform, open source .NET development framework"; description = "Cross platform, open source .NET development framework";
platforms = with stdenv.lib.platforms; allBut [ "aarch64-linux" ]; platforms = stdenv.lib.platforms.x86;
maintainers = with stdenv.lib.maintainers; [ viric thoughtpolice obadz vrthra ]; maintainers = with stdenv.lib.maintainers; [ viric thoughtpolice obadz vrthra ];
license = stdenv.lib.licenses.free; # Combination of LGPL/X11/GPL ? license = stdenv.lib.licenses.free; # Combination of LGPL/X11/GPL ?
}; };

View File

@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
description = "Binary decision diagram package"; description = "Binary decision diagram package";
license = "as-is"; license = "as-is";
platforms = with stdenv.lib.platforms; allBut cygwin; platforms = stdenv.lib.platforms.unix; # Once had cygwin problems
maintainers = [ stdenv.lib.maintainers.peti ]; maintainers = [ stdenv.lib.maintainers.peti ];
}; };
} }

View File

@ -15,6 +15,6 @@ stdenv.mkDerivation rec {
description = "C/C++ library for numbers, a part of GiNaC"; description = "C/C++ library for numbers, a part of GiNaC";
homepage = http://www.ginac.de/CLN/; homepage = http://www.ginac.de/CLN/;
maintainers = [ ]; maintainers = [ ];
platforms = with stdenv.lib.platforms; allBut cygwin; platforms = stdenv.lib.platforms.unix; # Once had cygwin problems
}; };
} }

View File

@ -69,6 +69,6 @@ stdenv.mkDerivation rec {
make[3]: *** [Box.lo] Error 1 make[3]: *** [Box.lo] Error 1
*/ */
platforms = with stdenv.lib.platforms; allBut cygwin; platforms = stdenv.lib.platforms.unix; # Once had cygwin problems
}; };
} }

View File

@ -58,6 +58,6 @@ stdenv.mkDerivation rec {
make[3]: *** [Box.lo] Error 1 make[3]: *** [Box.lo] Error 1
*/ */
platforms = with stdenv.lib.platforms; allBut cygwin; platforms = stdenv.lib.platforms.unix; # Once had cygwin problems
}; };
} }

View File

@ -59,6 +59,6 @@ stdenv.mkDerivation rec {
make[3]: *** [Box.lo] Error 1 make[3]: *** [Box.lo] Error 1
*/ */
platforms = with stdenv.lib.platforms; allBut cygwin; platforms = stdenv.lib.platforms.unix; # Once had cygwin problems
}; };
} }

View File

@ -73,7 +73,7 @@ stdenv.mkDerivation rec {
homepage = http://rocksdb.org; homepage = http://rocksdb.org;
description = "A library that provides an embeddable, persistent key-value store for fast storage"; description = "A library that provides an embeddable, persistent key-value store for fast storage";
license = licenses.bsd3; license = licenses.bsd3;
platforms = platforms.allBut [ "i686-linux" ]; platforms = platforms.x86_64 ++ platforms.aarch64;
maintainers = with maintainers; [ adev wkennington ]; maintainers = with maintainers; [ adev wkennington ];
}; };
} }

View File

@ -32,6 +32,6 @@ stdenv.mkDerivation rec {
description = "C/C++ client-server indexer based on clang"; description = "C/C++ client-server indexer based on clang";
homepage = https://github.com/andersbakken/rtags; homepage = https://github.com/andersbakken/rtags;
license = stdenv.lib.licenses.gpl3; license = stdenv.lib.licenses.gpl3;
platforms = stdenv.lib.platforms.allBut [ "i686-linux" ]; platforms = with stdenv.lib.platforms; x86_64 ++ aarch64;
}; };
} }

View File

@ -41,6 +41,6 @@ stdenv.mkDerivation rec {
gpl3Plus cc-by-sa-30 cc-by-sa-40 publicDomain gpl3Plus cc-by-sa-30 cc-by-sa-40 publicDomain
]; ];
maintainers = with maintainers; [ lheckemann ]; maintainers = with maintainers; [ lheckemann ];
platforms = with platforms; allBut darwin; platforms = platforms.linux; # Maybe other non-darwin Unix
}; };
} }

View File

@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
xscreensaver and never will. It's just for locking the current xscreensaver and never will. It's just for locking the current
X session. X session.
''; '';
platforms = with platforms; allBut cygwin; platforms = platforms.unix; # Cygwin had problems at one point
maintainers = with maintainers; [ ftrvxmtrx chris-martin ]; maintainers = with maintainers; [ ftrvxmtrx chris-martin ];
}; };
} }

View File

@ -50,7 +50,7 @@ stdenv.mkDerivation rec {
homepage = https://www.jwz.org/xscreensaver/; homepage = https://www.jwz.org/xscreensaver/;
description = "A set of screensavers"; description = "A set of screensavers";
maintainers = with stdenv.lib.maintainers; [ raskin ]; maintainers = with stdenv.lib.maintainers; [ raskin ];
platforms = with stdenv.lib.platforms; allBut cygwin; platforms = stdenv.lib.platforms.unix; # Once had cygwin problems
inherit version; inherit version;
downloadPage = "https://www.jwz.org/xscreensaver/download.html"; downloadPage = "https://www.jwz.org/xscreensaver/download.html";
updateWalker = true; updateWalker = true;

View File

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "GNU barcode generator"; description = "GNU barcode generator";
maintainers = with maintainers; [ raskin ]; maintainers = with maintainers; [ raskin ];
platforms = with platforms; allBut darwin; platforms = platforms.linux; # Maybe other non-darwin Unix
downloadPage = "http://ftp.gnu.org/gnu/barcode/"; downloadPage = "http://ftp.gnu.org/gnu/barcode/";
updateWalker = true; updateWalker = true;
homepage = http://ftp.gnu.org/gnu/barcode/; homepage = http://ftp.gnu.org/gnu/barcode/;

View File

@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
homepage = http://www.cybercom.net/~dcoffin/dcraw/; homepage = http://www.cybercom.net/~dcoffin/dcraw/;
description = "Decoder for many camera raw picture formats"; description = "Decoder for many camera raw picture formats";
license = stdenv.lib.licenses.free; license = stdenv.lib.licenses.free;
platforms = with stdenv.lib.platforms; allBut cygwin; platforms = stdenv.lib.platforms.unix; # Once had cygwin problems
maintainers = [ ]; maintainers = [ ];
}; };
} }

View File

@ -18,6 +18,6 @@ stdenv.mkDerivation rec {
description = "A tool for buffering data streams with a large set of unique features"; description = "A tool for buffering data streams with a large set of unique features";
license = stdenv.lib.licenses.gpl3; license = stdenv.lib.licenses.gpl3;
maintainers = with stdenv.lib.maintainers; [ tokudan ]; maintainers = with stdenv.lib.maintainers; [ tokudan ];
platforms = with stdenv.lib.platforms; allBut darwin; platforms = stdenv.lib.platforms.linux; # Maybe other non-darwin Unix
}; };
} }

View File

@ -32,6 +32,6 @@ stdenv.mkDerivation rec {
license = licenses.isc; license = licenses.isc;
maintainers = with maintainers; [ joachifm jgeerds ]; maintainers = with maintainers; [ joachifm jgeerds ];
# upstream claims OSX support, but Hydra fails # upstream claims OSX support, but Hydra fails
platforms = with platforms; allBut darwin; platforms = platforms.linux; # Maybe other non-darwin Unix
}; };
} }

View File

@ -39,6 +39,6 @@ stdenv.mkDerivation rec {
homepage = https://www.zerotier.com; homepage = https://www.zerotier.com;
license = licenses.gpl3; license = licenses.gpl3;
maintainers = with maintainers; [ sjmackenzie zimbatm ehmry ]; maintainers = with maintainers; [ sjmackenzie zimbatm ehmry ];
platforms = platforms.allBut [ "i686-linux" ]; platforms = platforms.x86_64 ++ platforms.aarch64;
}; };
} }

View File

@ -13517,7 +13517,7 @@ in {
homepage = https://pypi.python.org/pypi/PyICU/; homepage = https://pypi.python.org/pypi/PyICU/;
description = "Python extension wrapping the ICU C++ API"; description = "Python extension wrapping the ICU C++ API";
license = licenses.mit; license = licenses.mit;
platforms = with platforms; allBut darwin; platforms = platforms.linux; # Maybe other non-darwin Unix
maintainers = [ maintainers.rycee ]; maintainers = [ maintainers.rycee ];
}; };
}; };

View File

@ -108,7 +108,7 @@ rec {
/* Common platform groups on which to test packages. */ /* Common platform groups on which to test packages. */
inherit (platforms) unix linux darwin cygwin allBut all mesaPlatforms; inherit (platforms) unix linux darwin cygwin all mesaPlatforms;
/* Platform groups for specific kinds of applications. */ /* Platform groups for specific kinds of applications. */
x11Supported = linux; x11Supported = linux;

View File

@ -21,7 +21,7 @@ with import ./release-lib.nix { inherit supportedSystems; };
atlas = linux; atlas = linux;
autoconf = all; autoconf = all;
automake = all; automake = all;
avahi = allBut cygwin; # Cygwin builds fail avahi = unix; # Cygwin builds fail
bash = all; bash = all;
bashInteractive = all; bashInteractive = all;
bc = all; bc = all;
@ -54,7 +54,7 @@ with import ./release-lib.nix { inherit supportedSystems; };
gnumake = all; gnumake = all;
gnupatch = all; gnupatch = all;
gnupg = linux; gnupg = linux;
gnuplot = allBut cygwin; gnuplot = unix; # Cygwin builds fail
gnused = all; gnused = all;
gnutar = all; gnutar = all;
gnutls = linux; gnutls = linux;
@ -128,7 +128,7 @@ with import ./release-lib.nix { inherit supportedSystems; };
pkgconfig = all; pkgconfig = all;
pmccabe = linux; pmccabe = linux;
procps = linux; procps = linux;
python = allBut cygwin; python = unix; # Cygwin builds fail
readline = all; readline = all;
rlwrap = all; rlwrap = all;
rpm = linux; rpm = linux;
@ -138,9 +138,9 @@ with import ./release-lib.nix { inherit supportedSystems; };
scrot = linux; scrot = linux;
sdparm = linux; sdparm = linux;
sharutils = all; sharutils = all;
sloccount = allBut cygwin; sloccount = unix; # Cygwin builds fail
smartmontools = all; smartmontools = all;
sqlite = allBut cygwin; sqlite = unix; # Cygwin builds fail
squid = linux; squid = linux;
ssmtp = linux; ssmtp = linux;
stdenv = all; stdenv = all;