diff options
author | Zhaofeng Li <hello@zhaofeng.li> | 2020-12-27 01:13:27 -0800 |
---|---|---|
committer | Zhaofeng Li <hello@zhaofeng.li> | 2021-05-31 14:55:35 -0700 |
commit | 6288319a3a4145a390fb3f0761328ec987ab76a5 (patch) | |
tree | de079e337fbb7feac2dc7c73c9613b0df6289b22 /pkgs/development/compilers/rust | |
parent | 8f80568885d1b37cccbede85143c00711b19390c (diff) | |
download | nixpkgs-6288319a3a4145a390fb3f0761328ec987ab76a5.tar nixpkgs-6288319a3a4145a390fb3f0761328ec987ab76a5.tar.gz nixpkgs-6288319a3a4145a390fb3f0761328ec987ab76a5.tar.bz2 nixpkgs-6288319a3a4145a390fb3f0761328ec987ab76a5.tar.lz nixpkgs-6288319a3a4145a390fb3f0761328ec987ab76a5.tar.xz nixpkgs-6288319a3a4145a390fb3f0761328ec987ab76a5.tar.zst nixpkgs-6288319a3a4145a390fb3f0761328ec987ab76a5.zip |
rust: Add support for riscv64
Diffstat (limited to 'pkgs/development/compilers/rust')
-rw-r--r-- | pkgs/development/compilers/rust/1_52.nix | 1 | ||||
-rw-r--r-- | pkgs/development/compilers/rust/default.nix | 1 | ||||
-rwxr-xr-x | pkgs/development/compilers/rust/print-hashes.sh | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/compilers/rust/1_52.nix b/pkgs/development/compilers/rust/1_52.nix index 775792d06f6..bfd6fc47ad2 100644 --- a/pkgs/development/compilers/rust/1_52.nix +++ b/pkgs/development/compilers/rust/1_52.nix @@ -47,6 +47,7 @@ import ./default.nix { x86_64-apple-darwin = "765212098a415996b767d1e372ce266caf94027402b269fec33291fffc085ca4"; aarch64-apple-darwin = "95d0410bbd20b05f8b7d5adf70e8737873995bc86611a90e643d7081ca35147f"; powerpc64le-unknown-linux-gnu = "7362f561104d7be4836507d3a53cd39444efcdf065813d559beb1f54ce9f7680"; + riscv64gc-unknown-linux-gnu = "9d0c2c4ab2397e78758de8b6b57051482bcf20b6748e0e16d9d5bd23ce73d72a"; }; selectRustPackage = pkgs: pkgs.rust_1_52; diff --git a/pkgs/development/compilers/rust/default.nix b/pkgs/development/compilers/rust/default.nix index c90f689e21c..fee21023c4c 100644 --- a/pkgs/development/compilers/rust/default.nix +++ b/pkgs/development/compilers/rust/default.nix @@ -36,6 +36,7 @@ "armv7l" = "armv7"; "armv6l" = "arm"; "armv5tel" = "armv5te"; + "riscv64" = "riscv64gc"; }.${cpu.name} or cpu.name; in platform.rustc.config or "${cpu_}-${vendor.name}-${kernel.name}${lib.optionalString (abi.name != "unknown") "-${abi.name}"}"; diff --git a/pkgs/development/compilers/rust/print-hashes.sh b/pkgs/development/compilers/rust/print-hashes.sh index c24052fcc05..ebf8d900bb3 100755 --- a/pkgs/development/compilers/rust/print-hashes.sh +++ b/pkgs/development/compilers/rust/print-hashes.sh @@ -18,6 +18,7 @@ PLATFORMS=( x86_64-apple-darwin aarch64-apple-darwin powerpc64le-unknown-linux-gnu + riscv64gc-unknown-linux-gnu ) BASEURL=https://static.rust-lang.org/dist VERSION=${1:-} |