nixpkgs/pkgs/development/compilers/rust
Alyssa Ross 454b2058d4
rustc: fix name when cross compiled
I made a mistake when trying to add the target prefix to Rust cross
compilers: pkgsCross.aarch64-multiplatform.rustc ended up being called
"aarch64-unknown-linux-gnu-rustc-aarch64-unknown-linux-gnu-1.69.0",
which is a bit verbose.

With this change:

	nix-repl> rustc.name
	"rustc-1.69.0"

	nix-repl> pkgsCross.aarch64-multiplatform.buildPackages.rustc.name
	"aarch64-unknown-linux-gnu-rustc-1.69.0"

	nix-repl> pkgsCross.aarch64-multiplatform.rustc.name
	"rustc-aarch64-unknown-linux-gnu-1.69.0"

As intended.

Fixes: 57e73d23bb ("rustc,rustPlatform.buildRustPackage: broaden platforms")
2023-05-09 20:13:45 +00:00
..
1_69.nix rustc: 1.68.2 -> 1.69.0 2023-04-23 11:44:01 +10:00
binary.nix rustc: don't strip bootstrap on darwin 2022-10-20 09:02:51 +10:00
bootstrap.nix
cargo-auditable-cargo-wrapper.nix cargo-auditable-cargo-wrapper: use more descriptive name 2023-04-24 23:41:03 +00:00
cargo-auditable.nix rust/cargo.nix: set HOST_PKG_CONFIG_PATH for cross builds 2023-04-22 14:41:58 -07:00
cargo.nix rust/cargo.nix: set HOST_PKG_CONFIG_PATH for cross builds 2023-04-22 14:41:58 -07:00
clippy.nix clippy: enable debug info 2023-04-14 09:01:29 +00:00
default.nix clippy: use the right rustc when cross compiling 2023-04-13 10:19:53 +00:00
make-rust-platform.nix rustPlatform.buildRustPackage: fix auditable option when cargo-auditable is not provided to makeRustPlatform 2023-04-13 13:30:39 -04:00
print-hashes.sh rust: add mips64el to list of bootstrap tarballs 2022-03-18 13:00:34 +10:00
rust-lib-src.nix rust-{lib-}src: deprecate phases 2022-02-25 22:57:59 +01:00
rust-src.nix rust-{lib-}src: deprecate phases 2022-02-25 22:57:59 +01:00
rustc.nix rustc: fix name when cross compiled 2023-05-09 20:13:45 +00:00
rustfmt.nix rustfmt: fix build for 1.68 2023-03-27 08:08:40 +10:00
setup-hook.sh