mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
novops: add autocompletion
This commit is contained in:
parent
4dfe798dec
commit
dd6c0ee128
1 changed files with 9 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
, pkg-config
|
||||
, openssl
|
||||
, stdenv
|
||||
, installShellFiles
|
||||
, libiconv
|
||||
, darwin
|
||||
}:
|
||||
|
@ -29,6 +30,7 @@ rustPlatform.buildRustPackage rec {
|
|||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
pkg-config # required for openssl-sys
|
||||
];
|
||||
|
||||
|
@ -38,6 +40,13 @@ rustPlatform.buildRustPackage rec {
|
|||
"--lib"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd novops \
|
||||
--bash <($out/bin/novops completion bash) \
|
||||
--fish <($out/bin/novops completion fish) \
|
||||
--zsh <($out/bin/novops completion zsh)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Cross-platform secret & config manager for development and CI environments";
|
||||
homepage = "https://github.com/PierreBeucher/novops";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue