Files
nixpkgs/pkgs/development/compilers/rust/make-rust-platform.nix
Lily Ballard 8eb3c82575 rustPlatform.rust: undeprecate
These attributes were deprecated in #230951 because they confused things
with splicing, e.g. passing `rustPlatform.rust.rustc` to
`nativeBuildInputs` would get the wrong derivation when cross-compiling.
This was a consequence of the fact that they come from the buildPackages
set. But we still want to expose these packages as otherwise Rust
packages have no way to reference the rustc and cargo that build them,
which means they can't e.g. use `disallowedReferences` to ensure they
don't end up in the runtime closure.

Just as `stdenv.cc` itself isn't spliced, we can solve this problem by
unsplicing the packages.
2026-04-15 21:39:14 -07:00

2.1 KiB