diff options
author | Alyssa Ross <hi@alyssa.is> | 2022-04-27 14:04:08 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2022-04-28 08:17:02 +0000 |
commit | 2a6288d9b93f5b48782cac76d21f696bf5184cce (patch) | |
tree | 517ae33708df461a89be0bcb2bd6674eaf25c3f1 /lib/systems/inspect.nix | |
parent | ed24c902d0f01adb63626228d35666860f4f3f35 (diff) | |
download | nixpkgs-2a6288d9b93f5b48782cac76d21f696bf5184cce.tar nixpkgs-2a6288d9b93f5b48782cac76d21f696bf5184cce.tar.gz nixpkgs-2a6288d9b93f5b48782cac76d21f696bf5184cce.tar.bz2 nixpkgs-2a6288d9b93f5b48782cac76d21f696bf5184cce.tar.lz nixpkgs-2a6288d9b93f5b48782cac76d21f696bf5184cce.tar.xz nixpkgs-2a6288d9b93f5b48782cac76d21f696bf5184cce.tar.zst nixpkgs-2a6288d9b93f5b48782cac76d21f696bf5184cce.zip |
lib.systems: add riscv{32,64} sets and filters
For other platforms like Intel and ARM, we can do e.g. lib.platforms.aarch64 to get only the 64-bit ARM platorms, but until now there were no equivalents for RISC-V.
Diffstat (limited to 'lib/systems/inspect.nix')
-rw-r--r-- | lib/systems/inspect.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/systems/inspect.nix b/lib/systems/inspect.nix index 0ebaeba7bd8..27c25deafec 100644 --- a/lib/systems/inspect.nix +++ b/lib/systems/inspect.nix @@ -24,6 +24,8 @@ rec { isMips64n64 = { cpu = { family = "mips"; bits = 64; }; abi = { abi = "64"; }; }; isMmix = { cpu = { family = "mmix"; }; }; isRiscV = { cpu = { family = "riscv"; }; }; + isRiscV32 = { cpu = { family = "riscv"; bits = 32; }; }; + isRiscV64 = { cpu = { family = "riscv"; bits = 64; }; }; isSparc = { cpu = { family = "sparc"; }; }; isWasm = { cpu = { family = "wasm"; }; }; isMsp430 = { cpu = { family = "msp430"; }; }; |