mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
goverview: install shell completion files
This commit is contained in:
parent
4fa6181085
commit
1b807b609b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user