diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2019-06-04 11:29:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-04 11:29:48 -0400 |
commit | 760c9995b0601e8679d303ce5c301fdb33fb2c5d (patch) | |
tree | 9b6c72336df80af5becb13c3d5400102b18bac67 /lib/systems/for-meta.nix | |
parent | 9120dbf180fd173d8aa95ca4a89ac2ab529b675c (diff) | |
parent | 635b7625690d9f8f61da0a187e7ed4a7ec274fdc (diff) |
Merge pull request #60349 from matthewbauer/fix-60345
check-meta: use system tuple in platforms
Diffstat (limited to 'lib/systems/for-meta.nix')
-rw-r--r-- | lib/systems/for-meta.nix | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/lib/systems/for-meta.nix b/lib/systems/for-meta.nix deleted file mode 100644 index 17ae94deb7d1..000000000000 --- a/lib/systems/for-meta.nix +++ /dev/null @@ -1,38 +0,0 @@ -{ lib }: -let - inherit (lib.systems) parse; - inherit (lib.systems.inspect) patterns; - - abis = lib.mapAttrs (_: abi: builtins.removeAttrs abi [ "assertions" ]) parse.abis; - -in rec { - all = [ {} ]; # `{}` matches anything - none = []; - - arm = [ patterns.isAarch32 ]; - aarch64 = [ patterns.isAarch64 ]; - x86 = [ patterns.isx86 ]; - i686 = [ patterns.isi686 ]; - x86_64 = [ patterns.isx86_64 ]; - mips = [ patterns.isMips ]; - riscv = [ patterns.isRiscV ]; - - cygwin = [ patterns.isCygwin ]; - darwin = [ patterns.isDarwin ]; - freebsd = [ patterns.isFreeBSD ]; - # Should be better, but MinGW is unclear. - gnu = [ - { kernel = parse.kernels.linux; abi = abis.gnu; } - { kernel = parse.kernels.linux; abi = abis.gnueabi; } - { kernel = parse.kernels.linux; abi = abis.gnueabihf; } - ]; - illumos = [ patterns.isSunOS ]; - linux = [ patterns.isLinux ]; - netbsd = [ patterns.isNetBSD ]; - openbsd = [ patterns.isOpenBSD ]; - unix = patterns.isUnix; # Actually a list - windows = [ patterns.isWindows ]; - wasi = [ patterns.isWasi ]; - - inherit (lib.systems.doubles) mesaPlatforms; -} |