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.

+1 -1
+1 -1
pkgs/development/compilers/rust/rustc.nix
··· 21 inherit (lib) optionals optional optionalString concatStringsSep; 22 inherit (darwin.apple_sdk.frameworks) Security; 23 in stdenv.mkDerivation rec { 24 - pname = "rustc"; 25 inherit version; 26 27 src = fetchurl {
··· 21 inherit (lib) optionals optional optionalString concatStringsSep; 22 inherit (darwin.apple_sdk.frameworks) Security; 23 in stdenv.mkDerivation rec { 24 + pname = "${pkgsBuildTarget.targetPackages.stdenv.cc.targetPrefix}rustc"; 25 inherit version; 26 27 src = fetchurl {