summary refs log tree commit diff
path: root/lib/systems/examples.nix
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2018-02-18 00:09:25 -0500
committerShea Levy <shea@shealevy.com>2018-02-18 00:09:25 -0500
commite288febee0809db7c594ceb42e655dd5d43a6369 (patch)
treeb05498dd2dd238358b5017625746209530215875 /lib/systems/examples.nix
parent5be93a588335082d0610c739067035dfc1ddd260 (diff)
downloadnixpkgs-e288febee0809db7c594ceb42e655dd5d43a6369.tar
nixpkgs-e288febee0809db7c594ceb42e655dd5d43a6369.tar.gz
nixpkgs-e288febee0809db7c594ceb42e655dd5d43a6369.tar.bz2
nixpkgs-e288febee0809db7c594ceb42e655dd5d43a6369.tar.lz
nixpkgs-e288febee0809db7c594ceb42e655dd5d43a6369.tar.xz
nixpkgs-e288febee0809db7c594ceb42e655dd5d43a6369.tar.zst
nixpkgs-e288febee0809db7c594ceb42e655dd5d43a6369.zip
Add riscv{32,64} crossSystems.
Diffstat (limited to 'lib/systems/examples.nix')
-rw-r--r--lib/systems/examples.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/systems/examples.nix b/lib/systems/examples.nix
index f5562e28a09..bd68ee9460e 100644
--- a/lib/systems/examples.nix
+++ b/lib/systems/examples.nix
@@ -68,6 +68,14 @@ rec {
   musl64 = { config = "x86_64-unknown-linux-musl"; };
   musl32  = { config = "i686-unknown-linux-musl"; };
 
+  riscv = bits: {
+    config = "riscv${bits}-unknown-linux-gnu";
+    platform = platforms.riscv-multiplatform bits;
+  };
+  riscv64 = riscv "64";
+  riscv32 = riscv "32";
+
+
   #
   # Darwin
   #