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-12 19:56:06 +0000
committerAlyssa Ross <hi@alyssa.is>2023-04-14 10:05:27 +0000
commitecbbd3104f536083ae52bca1c6e9262b17ed79ff (patch)
treeff33df694bdf367e14e8ac753b8004dca106dea6 /pkgs/development/compilers/rust
parent46a39c48c0d04ecbfbf6f3aefa573e315b0ffb36 (diff)
downloadnixlib-ecbbd3104f536083ae52bca1c6e9262b17ed79ff.tar
nixlib-ecbbd3104f536083ae52bca1c6e9262b17ed79ff.tar.gz
nixlib-ecbbd3104f536083ae52bca1c6e9262b17ed79ff.tar.bz2
nixlib-ecbbd3104f536083ae52bca1c6e9262b17ed79ff.tar.lz
nixlib-ecbbd3104f536083ae52bca1c6e9262b17ed79ff.tar.xz
nixlib-ecbbd3104f536083ae52bca1c6e9262b17ed79ff.tar.zst
nixlib-ecbbd3104f536083ae52bca1c6e9262b17ed79ff.zip
rustc: put targetPrefix in pname
Our rustc package is not universal, because we only build std for the
host and target platforms.  This means that a build graph where cross
is involved will end up with multiple rustc packages in it, so it
would be helpful to have a way to tell them apart, just like we do for
e.g. gcc.
Diffstat (limited to 'pkgs/development/compilers/rust')
-rw-r--r--pkgs/development/compilers/rust/rustc.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/compilers/rust/rustc.nix b/pkgs/development/compilers/rust/rustc.nix
index f9068a7999a2..7ae053b74abc 100644
--- a/pkgs/development/compilers/rust/rustc.nix
+++ b/pkgs/development/compilers/rust/rustc.nix
@@ -21,7 +21,7 @@ let
   inherit (lib) optionals optional optionalString concatStringsSep;
   inherit (darwin.apple_sdk.frameworks) Security;
 in stdenv.mkDerivation rec {
-  pname = "rustc";
+  pname = "${pkgsBuildTarget.targetPackages.stdenv.cc.targetPrefix}rustc";
   inherit version;
 
   src = fetchurl {