1
0
Fork 0
mirror of https://github.com/numtide/flake-utils.git synced 2024-12-14 11:47:31 +00:00

split out allSystems.nix

Make it easier to maintain
This commit is contained in:
zimbatm 2023-04-09 12:45:24 +02:00
parent 471aed544a
commit 575419ad23
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7
2 changed files with 69 additions and 69 deletions

67
allSystems.nix Normal file
View file

@ -0,0 +1,67 @@
[
"aarch64-darwin"
"aarch64-genode"
"aarch64-linux"
"aarch64-netbsd"
"aarch64-none"
"aarch64_be-none"
"arm-none"
"armv5tel-linux"
"armv6l-linux"
"armv6l-netbsd"
"armv6l-none"
"armv7a-darwin"
"armv7a-linux"
"armv7a-netbsd"
"armv7l-linux"
"armv7l-netbsd"
"avr-none"
"i686-cygwin"
"i686-darwin"
"i686-freebsd"
"i686-genode"
"i686-linux"
"i686-netbsd"
"i686-none"
"i686-openbsd"
"i686-windows"
"js-ghcjs"
"m68k-linux"
"m68k-netbsd"
"m68k-none"
"mips64el-linux"
"mipsel-linux"
"mipsel-netbsd"
"mmix-mmixware"
"msp430-none"
"or1k-none"
"powerpc-netbsd"
"powerpc-none"
"powerpc64-linux"
"powerpc64le-linux"
"powerpcle-none"
"riscv32-linux"
"riscv32-netbsd"
"riscv32-none"
"riscv64-linux"
"riscv64-netbsd"
"riscv64-none"
"s390-linux"
"s390-none"
"s390x-linux"
"s390x-none"
"vc4-none"
"wasm32-wasi"
"wasm64-wasi"
"x86_64-cygwin"
"x86_64-darwin"
"x86_64-freebsd"
"x86_64-genode"
"x86_64-linux"
"x86_64-netbsd"
"x86_64-none"
"x86_64-openbsd"
"x86_64-redox"
"x86_64-solaris"
"x86_64-windows"
]

71
lib.nix
View file

@ -12,75 +12,8 @@ let
# List of all systems defined in nixpkgs
# Keep in sync with nixpkgs wit the following command:
# $ nix-instantiate --json --eval --expr "with import <nixpkgs> {}; lib.platforms.all" | jq 'sort' | sed 's!,!!'
allSystems = [
"aarch64-darwin"
"aarch64-genode"
"aarch64-linux"
"aarch64-netbsd"
"aarch64-none"
"aarch64_be-none"
"arm-none"
"armv5tel-linux"
"armv6l-linux"
"armv6l-netbsd"
"armv6l-none"
"armv7a-darwin"
"armv7a-linux"
"armv7a-netbsd"
"armv7l-linux"
"armv7l-netbsd"
"avr-none"
"i686-cygwin"
"i686-darwin"
"i686-freebsd"
"i686-genode"
"i686-linux"
"i686-netbsd"
"i686-none"
"i686-openbsd"
"i686-windows"
"js-ghcjs"
"m68k-linux"
"m68k-netbsd"
"m68k-none"
"mips64el-linux"
"mipsel-linux"
"mipsel-netbsd"
"mmix-mmixware"
"msp430-none"
"or1k-none"
"powerpc-netbsd"
"powerpc-none"
"powerpc64-linux"
"powerpc64le-linux"
"powerpcle-none"
"riscv32-linux"
"riscv32-netbsd"
"riscv32-none"
"riscv64-linux"
"riscv64-netbsd"
"riscv64-none"
"s390-linux"
"s390-none"
"s390x-linux"
"s390x-none"
"vc4-none"
"wasm32-wasi"
"wasm64-wasi"
"x86_64-cygwin"
"x86_64-darwin"
"x86_64-freebsd"
"x86_64-genode"
"x86_64-linux"
"x86_64-netbsd"
"x86_64-none"
"x86_64-openbsd"
"x86_64-redox"
"x86_64-solaris"
"x86_64-windows"
];
# $ nix-instantiate --json --eval --expr "with import <nixpkgs> {}; lib.platforms.all" | jq 'sort' | sed 's!,!!' > allSystems.nix
allSystems = import ./allSystems.nix;
# A map from system to system. It's useful to detect typos.
#