diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2023-12-28 16:25:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-28 16:25:08 +0100 |
commit | e175d183399cbf35568ab1f2bfbefd285e88d32a (patch) | |
tree | 3aef586c03cd30b12215d6f6c65eb74a8b4745be /pkgs/tools/security | |
parent | 60b1621fc1100b00d65643edf24a23056b3e2edc (diff) | |
parent | 1b807b609b37371a057646b8bfdd13c17449e2c7 (diff) |
Merge pull request #276715 from doronbehar/pkg/goverview
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; |