From f79f80dbf267036a96f8eae281c8501482756d03 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Tue, 13 Mar 2018 18:00:52 -0400 Subject: 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. --- lib/systems/doubles.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/systems') diff --git a/lib/systems/doubles.nix b/lib/systems/doubles.nix index 20294a28a110..0e1ee62ac950 100644 --- a/lib/systems/doubles.nix +++ b/lib/systems/doubles.nix @@ -24,10 +24,11 @@ let in rec { inherit all; - allBut = platforms: lists.filter (x: !(builtins.elem x platforms)) all; none = []; arm = filterDoubles predicates.isArm; + aarch64 = filterDoubles predicates.isAarch64; + x86 = filterDoubles predicates.isx86; i686 = filterDoubles predicates.isi686; mips = filterDoubles predicates.isMips; x86_64 = filterDoubles predicates.isx86_64; -- cgit 1.4.1