Merge pull request #276715 from doronbehar/pkg/goverview

goverview: install shell completion files
This commit is contained in:
Fabian Affolter 2023-12-28 16:25:08 +01:00 committed by GitHub
commit e175d18339
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;