about summary refs log tree commit diff
path: root/pkgs/development/compilers/rust
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-04-24 17:35:35 +0000
committerAlyssa Ross <hi@alyssa.is>2023-04-25 08:27:59 +0000
commit57e73d23bb6cc89a25293e5cfb26787438b4efba (patch)
tree895545cd09b8d9fed770e9ef5db1d8b8c541f9f7 /pkgs/development/compilers/rust
parenta9c543c469879145760aeb3ee8ee2194e3821e19 (diff)
downloadnixlib-57e73d23bb6cc89a25293e5cfb26787438b4efba.tar
nixlib-57e73d23bb6cc89a25293e5cfb26787438b4efba.tar.gz
nixlib-57e73d23bb6cc89a25293e5cfb26787438b4efba.tar.bz2
nixlib-57e73d23bb6cc89a25293e5cfb26787438b4efba.tar.lz
nixlib-57e73d23bb6cc89a25293e5cfb26787438b4efba.tar.xz
nixlib-57e73d23bb6cc89a25293e5cfb26787438b4efba.tar.zst
nixlib-57e73d23bb6cc89a25293e5cfb26787438b4efba.zip
rustc,rustPlatform.buildRustPackage: broaden platforms
rustc supports way more platforms than Linux and Darwin.  We might not
be able to build it for every platform at the moment, but that's what
meta.broken is for.

There are other platforms that rustc can produce binaries for, but
can't run on itself, so those are listed in the defaults for
buildRustPackage.
Diffstat (limited to 'pkgs/development/compilers/rust')
-rw-r--r--pkgs/development/compilers/rust/rustc.nix15
1 files changed, 14 insertions, 1 deletions
diff --git a/pkgs/development/compilers/rust/rustc.nix b/pkgs/development/compilers/rust/rustc.nix
index a1c618979934..75e8a451105c 100644
--- a/pkgs/development/compilers/rust/rustc.nix
+++ b/pkgs/development/compilers/rust/rustc.nix
@@ -232,6 +232,19 @@ in stdenv.mkDerivation rec {
     description = "A safe, concurrent, practical language";
     maintainers = with maintainers; [ cstrahan globin havvy ] ++ teams.rust.members;
     license = [ licenses.mit licenses.asl20 ];
-    platforms = platforms.linux ++ platforms.darwin;
+    platforms = [
+      # Platforms with host tools from
+      # https://doc.rust-lang.org/nightly/rustc/platform-support.html
+      "x86_64-darwin" "i686-darwin" "aarch64-darwin"
+      "i686-freebsd13" "x86_64-freebsd13"
+      "x86_64-solaris"
+      "aarch64-linux" "armv7l-linux" "i686-linux" "mipsel-linux"
+      "mips64el-linux" "powerpc64-linux" "powerpc64le-linux"
+      "riscv64-linux" "s390x-linux" "x86_64-linux"
+      "aarch64-netbsd" "armv7l-netbsd" "i686-netbsd" "powerpc-netbsd"
+      "x86_64-netbsd"
+      "i686-openbsd" "x86_64-openbsd"
+      "i686-windows" "x86_64-windows"
+    ];
   };
 }