mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 19:44:09 +00:00
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.
This commit is contained in:
parent
46a39c48c0
commit
ecbbd3104f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user