From ecbbd3104f536083ae52bca1c6e9262b17ed79ff Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Wed, 12 Apr 2023 19:56:06 +0000 Subject: [PATCH] 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. --- pkgs/development/compilers/rust/rustc.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {