about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorAlyssa Ross2024-09-02 12:53:54 +0200
committerAlyssa Ross2024-09-02 15:15:37 +0200
commit4b6c89a6702e4feb361491ed932f4d42b12a6d71 (patch)
treeab0e420f05ac33a9aaba30c6232d6bb1d3aa15d9 /lib
parent12cad819db9d2320018be4a78c3e694cfe940d0b (diff)
lib.systems: add rustTarget for riscv32
Fixes buildPackages.rustc when cross compiling to riscv32.
Diffstat (limited to 'lib')
-rw-r--r--lib/systems/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/systems/default.nix b/lib/systems/default.nix
index cee09791bf54..955bfa73e8bf 100644
--- a/lib/systems/default.nix
+++ b/lib/systems/default.nix
@@ -376,6 +376,7 @@ let
               "armv7l" = "armv7";
               "armv6l" = "arm";
               "armv5tel" = "armv5te";
+              "riscv32" = "riscv32gc";
               "riscv64" = "riscv64gc";
             }.${cpu.name} or cpu.name;
             vendor_ = final.rust.platform.vendor;