mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 08:01:31 +00:00
cargo: disallow references to bootstrap cargo, rustc
cargo recently accidentally gained a runtime dependency on cargo-bootstrap, we don't want to let that happen again.
This commit is contained in:
@@ -109,6 +109,13 @@ rustPlatform.buildRustPackage.override
|
||||
runHook postInstallCheck
|
||||
'';
|
||||
|
||||
# Make sure our build rustc/cargo never make it into our runtime closure
|
||||
disallowedReferences = [
|
||||
rustPlatform.rust.cargo
|
||||
rustPlatform.rust.rustc
|
||||
rustPlatform.rust.rustc.unwrapped
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = "https://crates.io";
|
||||
description = "Downloads your Rust project's dependencies and builds your project";
|
||||
|
||||
Reference in New Issue
Block a user