summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2018-03-20 11:46:12 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-03-20 12:46:19 -0400
commit3c8ae01a45196759cd01de639f0d200fdfcb6d77 (patch)
tree30cc26ec8e9ce9b3cffbc2b5777051c719b5a79d /lib
parent2ce3df3f5d0358d29fbb568800318ef70b27dfc0 (diff)
lib: Make `platforms.all` actually match all platforms
Otherwise obscure cross-compilations are hampered. `all` breaks all but the initial derivation (which we can't even write yet) in an open world setting however, so we really shouldn't have it.
Diffstat (limited to 'lib')
-rw-r--r--lib/systems/for-meta.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/systems/for-meta.nix b/lib/systems/for-meta.nix
index fa713b1e6136..3402fa0ca19b 100644
--- a/lib/systems/for-meta.nix
+++ b/lib/systems/for-meta.nix
@@ -4,8 +4,8 @@ let
inherit (lib.systems.inspect) patterns;
in rec {
- inherit (lib.systems.doubles) all mesaPlatforms;
- none = [];
+ all = [ {} ]; # `{}` matches anything
+ none = [];
arm = [ patterns.isArm ];
aarch64 = [ patterns.isAarch64 ];
@@ -24,4 +24,6 @@ in rec {
netbsd = [ patterns.isNetBSD ];
openbsd = [ patterns.isOpenBSD ];
unix = patterns.isUnix; # Actually a list
+
+ inherit (lib.systems.doubles) mesaPlatforms;
}