diff --git a/pkgs/by-name/no/novops/package.nix b/pkgs/by-name/no/novops/package.nix index 326b9c3be266..a254f734178a 100644 --- a/pkgs/by-name/no/novops/package.nix +++ b/pkgs/by-name/no/novops/package.nix @@ -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";