cargo: remove runtime references to cargo-bootstrap

The shell completions were being generated by cargo-bootstrap instead of
by the just-built cargo, which meant they were embedding the
cargo-bootstrap path and causing it to be part of the runtime closure.
This commit is contained in:
Lily Ballard 2026-04-14 21:40:50 -07:00
commit e749b0a6c7

View file

@ -80,9 +80,9 @@ rustPlatform.buildRustPackage.override
if stdenv.buildPlatform.canExecute stdenv.hostPlatform then
''
installShellCompletion --cmd cargo \
--bash <(CARGO_COMPLETE=bash cargo) \
--fish <(CARGO_COMPLETE=fish cargo) \
--zsh <(CARGO_COMPLETE=zsh cargo)
--bash <(CARGO_COMPLETE=bash $out/bin/cargo) \
--fish <(CARGO_COMPLETE=fish $out/bin/cargo) \
--zsh <(CARGO_COMPLETE=zsh $out/bin/cargo)
''
else
''