diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2018-03-13 18:00:52 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2018-03-14 18:44:42 -0400 |
commit | f79f80dbf267036a96f8eae281c8501482756d03 (patch) | |
tree | d2e37a9947ee5b952282025a5f5f5c4bf2090a7f /lib/systems/doubles.nix | |
parent | 2d1d83d836e09e50469302101955ea6c58dcd206 (diff) |
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.
Diffstat (limited to 'lib/systems/doubles.nix')
-rw-r--r-- | lib/systems/doubles.nix | 3 |
1 files changed, 2 insertions, 1 deletions
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; |