diff options
author | Doron Behar <doron.behar@gmail.com> | 2023-12-25 16:11:38 +0200 |
---|---|---|
committer | Doron Behar <doron.behar@gmail.com> | 2023-12-25 16:11:38 +0200 |
commit | 1b807b609b37371a057646b8bfdd13c17449e2c7 (patch) | |
tree | b812c982b1ceb1b7d49c1c66875fd5294c149a05 /pkgs/tools/security | |
parent | 4fa61810859ac4bbcdf0e8a1014040fac21a83c7 (diff) |
goverview: install shell completion files
Diffstat (limited to 'pkgs/tools/security')
-rw-r--r-- | pkgs/tools/security/goverview/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/tools/security/goverview/default.nix b/pkgs/tools/security/goverview/default.nix index 77f46526d95d6..02038bf27b99a 100644 --- a/pkgs/tools/security/goverview/default.nix +++ b/pkgs/tools/security/goverview/default.nix @@ -1,6 +1,7 @@ { lib , buildGoModule , fetchFromGitHub +, installShellFiles }: buildGoModule rec { @@ -20,6 +21,15 @@ buildGoModule rec { "-w" "-s" ]; + nativeBuildInputs = [ + installShellFiles + ]; + postInstall = '' + installShellCompletion --cmd goverview \ + --bash <($out/bin/goverview completion bash) \ + --fish <($out/bin/goverview completion fish) \ + --zsh <($out/bin/goverview completion zsh) + ''; # Tests require network access doCheck = false; |