2017-07-29 02:05:35 +02:00
|
|
|
{ lib }:
|
2017-02-09 22:09:47 +01:00
|
|
|
let
|
2017-07-29 02:05:35 +02:00
|
|
|
inherit (lib) lists;
|
2018-01-31 04:10:34 +01:00
|
|
|
inherit (lib.systems) parse;
|
|
|
|
inherit (lib.systems.inspect) predicates;
|
2017-07-29 02:05:35 +02:00
|
|
|
inherit (lib.attrsets) matchAttrs;
|
2017-05-21 19:39:23 +02:00
|
|
|
|
2017-02-09 22:09:47 +01:00
|
|
|
all = [
|
|
|
|
"aarch64-linux"
|
2019-10-01 18:51:57 +02:00
|
|
|
"armv5tel-linux" "armv6l-linux" "armv7a-linux" "armv7l-linux"
|
2017-02-09 22:09:47 +01:00
|
|
|
|
2017-12-05 11:27:45 +01:00
|
|
|
"mipsel-linux"
|
2017-02-09 22:09:47 +01:00
|
|
|
|
|
|
|
"i686-cygwin" "i686-freebsd" "i686-linux" "i686-netbsd" "i686-openbsd"
|
|
|
|
|
2019-07-10 20:38:55 +02:00
|
|
|
"x86_64-cygwin" "x86_64-freebsd" "x86_64-linux"
|
2017-02-09 22:09:47 +01:00
|
|
|
"x86_64-netbsd" "x86_64-openbsd" "x86_64-solaris"
|
2018-10-17 04:56:58 +02:00
|
|
|
|
2019-07-10 20:38:55 +02:00
|
|
|
"x86_64-darwin" "i686-darwin" "aarch64-darwin" "armv7a-darwin"
|
|
|
|
|
2018-10-18 00:03:00 +02:00
|
|
|
"x86_64-windows" "i686-windows"
|
2019-01-30 03:01:24 +01:00
|
|
|
|
|
|
|
"wasm64-wasi" "wasm32-wasi"
|
2019-04-30 17:50:45 +02:00
|
|
|
|
2020-07-21 22:11:36 +02:00
|
|
|
"x86_64-redox"
|
|
|
|
|
2021-01-30 04:23:04 +01:00
|
|
|
"powerpc64-linux"
|
2019-06-04 19:34:40 +02:00
|
|
|
"powerpc64le-linux"
|
|
|
|
|
2019-04-30 17:50:45 +02:00
|
|
|
"riscv32-linux" "riscv64-linux"
|
2019-06-04 19:34:40 +02:00
|
|
|
|
2020-03-12 14:56:17 +01:00
|
|
|
"arm-none" "armv6l-none" "aarch64-none"
|
|
|
|
"avr-none"
|
|
|
|
"i686-none" "x86_64-none"
|
|
|
|
"powerpc-none"
|
|
|
|
"msp430-none"
|
|
|
|
"riscv64-none" "riscv32-none"
|
|
|
|
"vc4-none"
|
2020-11-09 21:06:44 +01:00
|
|
|
"or1k-none"
|
2019-11-25 00:07:20 +01:00
|
|
|
|
2020-11-04 15:13:06 +01:00
|
|
|
"mmix-mmixware"
|
|
|
|
|
2019-11-25 00:07:20 +01:00
|
|
|
"js-ghcjs"
|
2020-03-24 09:02:18 +01:00
|
|
|
|
2020-08-04 17:50:55 +02:00
|
|
|
"aarch64-genode" "i686-genode" "x86_64-genode"
|
2017-02-09 22:09:47 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
allParsed = map parse.mkSystemFromString all;
|
|
|
|
|
|
|
|
filterDoubles = f: map parse.doubleFromSystem (lists.filter f allParsed);
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
in {
|
2017-02-09 22:09:47 +01:00
|
|
|
inherit all;
|
2009-09-23 21:45:02 +02:00
|
|
|
|
2016-02-26 19:53:03 +01:00
|
|
|
none = [];
|
|
|
|
|
2020-02-24 14:35:27 +01:00
|
|
|
arm = filterDoubles predicates.isAarch32;
|
|
|
|
aarch64 = filterDoubles predicates.isAarch64;
|
|
|
|
x86 = filterDoubles predicates.isx86;
|
|
|
|
i686 = filterDoubles predicates.isi686;
|
|
|
|
x86_64 = filterDoubles predicates.isx86_64;
|
|
|
|
mips = filterDoubles predicates.isMips;
|
2020-11-04 15:13:06 +01:00
|
|
|
mmix = filterDoubles predicates.isMmix;
|
2020-02-24 14:35:27 +01:00
|
|
|
riscv = filterDoubles predicates.isRiscV;
|
|
|
|
vc4 = filterDoubles predicates.isVc4;
|
2020-11-09 21:06:44 +01:00
|
|
|
or1k = filterDoubles predicates.isOr1k;
|
2020-02-24 14:35:27 +01:00
|
|
|
js = filterDoubles predicates.isJavaScript;
|
|
|
|
|
|
|
|
bigEndian = filterDoubles predicates.isBigEndian;
|
|
|
|
littleEndian = filterDoubles predicates.isLittleEndian;
|
|
|
|
|
|
|
|
cygwin = filterDoubles predicates.isCygwin;
|
|
|
|
darwin = filterDoubles predicates.isDarwin;
|
|
|
|
freebsd = filterDoubles predicates.isFreeBSD;
|
2018-08-28 23:17:54 +02:00
|
|
|
# Should be better, but MinGW is unclear.
|
2021-01-30 04:23:04 +01:00
|
|
|
gnu = filterDoubles (matchAttrs { kernel = parse.kernels.linux; abi = parse.abis.gnu; }) ++ filterDoubles (matchAttrs { kernel = parse.kernels.linux; abi = parse.abis.gnueabi; }) ++ filterDoubles (matchAttrs { kernel = parse.kernels.linux; abi = parse.abis.gnueabihf; }) ++ filterDoubles (matchAttrs { kernel = parse.kernels.linux; abi = parse.abis.elfv1; }) ++ filterDoubles (matchAttrs { kernel = parse.kernels.linux; abi = parse.abis.elfv2; });
|
2020-02-24 14:35:27 +01:00
|
|
|
illumos = filterDoubles predicates.isSunOS;
|
|
|
|
linux = filterDoubles predicates.isLinux;
|
|
|
|
netbsd = filterDoubles predicates.isNetBSD;
|
|
|
|
openbsd = filterDoubles predicates.isOpenBSD;
|
|
|
|
unix = filterDoubles predicates.isUnix;
|
|
|
|
wasi = filterDoubles predicates.isWasi;
|
|
|
|
redox = filterDoubles predicates.isRedox;
|
|
|
|
windows = filterDoubles predicates.isWindows;
|
|
|
|
genode = filterDoubles predicates.isGenode;
|
|
|
|
|
|
|
|
embedded = filterDoubles predicates.isNone;
|
2019-06-04 20:49:58 +02:00
|
|
|
|
2021-01-30 04:23:04 +01:00
|
|
|
mesaPlatforms = ["i686-linux" "x86_64-linux" "x86_64-darwin" "armv5tel-linux" "armv6l-linux" "armv7l-linux" "armv7a-linux" "aarch64-linux" "powerpc64-linux" "powerpc64le-linux"];
|
2009-08-25 10:28:08 +02:00
|
|
|
}
|