mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-01 01:57:37 +03:00
Merge pull request #276715 from doronbehar/pkg/goverview
goverview: install shell completion files
This commit is contained in:
commit
e175d18339
@ -1,6 +1,7 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildGoModule
|
, buildGoModule
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, installShellFiles
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
@ -20,6 +21,15 @@ buildGoModule rec {
|
|||||||
"-w"
|
"-w"
|
||||||
"-s"
|
"-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
|
# Tests require network access
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user