summary refs log tree commit diff
path: root/lib/systems/parse.nix
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2018-01-25 16:30:03 -0500
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-01-26 12:44:05 -0500
commitd1478c91c34287a7c9a94c6027b88b81eb1117f5 (patch)
treea08946097ff4f73f54255a836ca8e5f4b3e647da /lib/systems/parse.nix
parent931a0b8be80661902baefb3e7d55403be893e0e6 (diff)
downloadnixpkgs-d1478c91c34287a7c9a94c6027b88b81eb1117f5.tar
nixpkgs-d1478c91c34287a7c9a94c6027b88b81eb1117f5.tar.gz
nixpkgs-d1478c91c34287a7c9a94c6027b88b81eb1117f5.tar.bz2
nixpkgs-d1478c91c34287a7c9a94c6027b88b81eb1117f5.tar.lz
nixpkgs-d1478c91c34287a7c9a94c6027b88b81eb1117f5.tar.xz
nixpkgs-d1478c91c34287a7c9a94c6027b88b81eb1117f5.tar.zst
nixpkgs-d1478c91c34287a7c9a94c6027b88b81eb1117f5.zip
lib: Allow parsing platform configs with arch of `{riscv,wasm}{32,64}`
Also add `isRiscv` and `isWasm` predicates.
Diffstat (limited to 'lib/systems/parse.nix')
-rw-r--r--lib/systems/parse.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/systems/parse.nix b/lib/systems/parse.nix
index d14ca04bfb9..f59549ec2f3 100644
--- a/lib/systems/parse.nix
+++ b/lib/systems/parse.nix
@@ -44,6 +44,10 @@ rec {
     x86_64   = { bits = 64; significantByte = littleEndian; family = "x86"; };
     mips64el = { bits = 32; significantByte = littleEndian; family = "mips"; };
     powerpc  = { bits = 32; significantByte = bigEndian;    family = "power"; };
+    riscv32  = { bits = 32; significantByte = littleEndian; family = "riscv"; };
+    riscv64  = { bits = 64; significantByte = littleEndian; family = "riscv"; };
+    wasm32   = { bits = 32; significantByte = littleEndian; family = "wasm"; };
+    wasm64   = { bits = 64; significantByte = littleEndian; family = "wasm"; };
   };
 
   isVendor = isType "vendor";