diff options
author | Robert Helgesson <robert@rycee.net> | 2020-06-27 00:56:11 +0200 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2020-09-29 11:52:14 +0000 |
commit | 0c605349d8d48f49f337bffee1c33796fdd07c73 (patch) | |
tree | 234ca31647be573e233c1b5e195217e82ade4ebb /nixpkgs | |
parent | 614eb69e0c42a94725c471586b0ed6889331babc (diff) | |
download | nixlib-0c605349d8d48f49f337bffee1c33796fdd07c73.tar nixlib-0c605349d8d48f49f337bffee1c33796fdd07c73.tar.gz nixlib-0c605349d8d48f49f337bffee1c33796fdd07c73.tar.bz2 nixlib-0c605349d8d48f49f337bffee1c33796fdd07c73.tar.lz nixlib-0c605349d8d48f49f337bffee1c33796fdd07c73.tar.xz nixlib-0c605349d8d48f49f337bffee1c33796fdd07c73.tar.zst nixlib-0c605349d8d48f49f337bffee1c33796fdd07c73.zip |
cargo: install bash and zsh completion scripts
(cherry picked from commit 82daa41e293caf9d88ae158f261bf7d8f523c4c1)
Diffstat (limited to 'nixpkgs')
-rw-r--r-- | nixpkgs/pkgs/development/compilers/rust/cargo.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/compilers/rust/cargo.nix b/nixpkgs/pkgs/development/compilers/rust/cargo.nix index dfea7f6c8ef6..e820b982620a 100644 --- a/nixpkgs/pkgs/development/compilers/rust/cargo.nix +++ b/nixpkgs/pkgs/development/compilers/rust/cargo.nix @@ -38,6 +38,11 @@ rustPlatform.buildRustPackage { --set SSL_CERT_FILE "${cacert}/etc/ssl/certs/ca-bundle.crt" installManPage src/tools/cargo/src/etc/man/* + + installShellCompletion --bash --name cargo \ + src/tools/cargo/src/etc/cargo.bashcomp.sh + + installShellCompletion --zsh src/tools/cargo/src/etc/_cargo ''; checkPhase = '' |