4 inherit (lib.systems) parse;
5 inherit (lib.systems.inspect) predicates;
6 inherit (lib.attrsets) matchAttrs;
10 "i686-cygwin" "x86_64-cygwin"
13 "x86_64-darwin" "i686-darwin" "aarch64-darwin" "armv7a-darwin"
16 "i686-freebsd13" "x86_64-freebsd13"
19 "aarch64-genode" "i686-genode" "x86_64-genode"
28 "aarch64-linux" "armv5tel-linux" "armv6l-linux" "armv7a-linux"
29 "armv7l-linux" "i686-linux" "m68k-linux" "microblaze-linux"
30 "microblazeel-linux" "mipsel-linux" "mips64el-linux" "powerpc64-linux"
31 "powerpc64le-linux" "riscv32-linux" "riscv64-linux" "s390-linux"
32 "s390x-linux" "x86_64-linux"
38 "aarch64-netbsd" "armv6l-netbsd" "armv7a-netbsd" "armv7l-netbsd"
39 "i686-netbsd" "m68k-netbsd" "mipsel-netbsd" "powerpc-netbsd"
40 "riscv32-netbsd" "riscv64-netbsd" "x86_64-netbsd"
43 "aarch64_be-none" "aarch64-none" "arm-none" "armv6l-none" "avr-none" "i686-none"
44 "microblaze-none" "microblazeel-none" "msp430-none" "or1k-none" "m68k-none"
45 "powerpc-none" "powerpcle-none" "riscv32-none" "riscv64-none" "rx-none"
46 "s390-none" "s390x-none" "vc4-none" "x86_64-none"
49 "i686-openbsd" "x86_64-openbsd"
55 "wasm64-wasi" "wasm32-wasi"
58 "x86_64-windows" "i686-windows"
61 allParsed = map parse.mkSystemFromString all;
63 filterDoubles = f: map parse.doubleFromSystem (lists.filter f allParsed);
70 arm = filterDoubles predicates.isAarch32;
71 aarch64 = filterDoubles predicates.isAarch64;
72 x86 = filterDoubles predicates.isx86;
73 i686 = filterDoubles predicates.isi686;
74 x86_64 = filterDoubles predicates.isx86_64;
75 microblaze = filterDoubles predicates.isMicroBlaze;
76 mips = filterDoubles predicates.isMips;
77 mmix = filterDoubles predicates.isMmix;
78 riscv = filterDoubles predicates.isRiscV;
79 riscv32 = filterDoubles predicates.isRiscV32;
80 riscv64 = filterDoubles predicates.isRiscV64;
81 rx = filterDoubles predicates.isRx;
82 vc4 = filterDoubles predicates.isVc4;
83 or1k = filterDoubles predicates.isOr1k;
84 m68k = filterDoubles predicates.isM68k;
85 s390 = filterDoubles predicates.isS390;
86 js = filterDoubles predicates.isJavaScript;
88 bigEndian = filterDoubles predicates.isBigEndian;
89 littleEndian = filterDoubles predicates.isLittleEndian;
91 cygwin = filterDoubles predicates.isCygwin;
92 darwin = filterDoubles predicates.isDarwin;
93 freebsd = filterDoubles predicates.isFreeBSD;
94 # Should be better, but MinGW is unclear.
95 gnu = filterDoubles (matchAttrs { kernel = parse.kernels.linux; abi = parse.abis.gnu; })
96 ++ filterDoubles (matchAttrs { kernel = parse.kernels.linux; abi = parse.abis.gnueabi; })
97 ++ filterDoubles (matchAttrs { kernel = parse.kernels.linux; abi = parse.abis.gnueabihf; })
98 ++ filterDoubles (matchAttrs { kernel = parse.kernels.linux; abi = parse.abis.gnuabin32; })
99 ++ filterDoubles (matchAttrs { kernel = parse.kernels.linux; abi = parse.abis.gnuabi64; })
100 ++ filterDoubles (matchAttrs { kernel = parse.kernels.linux; abi = parse.abis.gnuabielfv1; })
101 ++ filterDoubles (matchAttrs { kernel = parse.kernels.linux; abi = parse.abis.gnuabielfv2; });
102 illumos = filterDoubles predicates.isSunOS;
103 linux = filterDoubles predicates.isLinux;
104 netbsd = filterDoubles predicates.isNetBSD;
105 openbsd = filterDoubles predicates.isOpenBSD;
106 unix = filterDoubles predicates.isUnix;
107 wasi = filterDoubles predicates.isWasi;
108 redox = filterDoubles predicates.isRedox;
109 windows = filterDoubles predicates.isWindows;
110 genode = filterDoubles predicates.isGenode;
112 embedded = filterDoubles predicates.isNone;
114 mesaPlatforms = ["i686-linux" "x86_64-linux" "x86_64-darwin" "armv5tel-linux" "armv6l-linux" "armv7l-linux" "armv7a-linux" "aarch64-linux" "powerpc64-linux" "powerpc64le-linux" "aarch64-darwin" "riscv64-linux"];