gmailctl: install completion files
This commit is contained in:
parent
77382d5ebf
commit
d95f44adf2
1 changed files with 12 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
|
@ -14,6 +15,17 @@ buildGoModule rec {
|
|||
sha256 = "sha256-1gOixuOvPHEjnnDNNda9sktnhffovOfeG4XDrLRRMlE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd gmailctl \
|
||||
--bash <($out/bin/gmailctl completion bash) \
|
||||
--fish <($out/bin/gmailctl completion fish) \
|
||||
--zsh <($out/bin/gmailctl completion zsh)
|
||||
'';
|
||||
|
||||
vendorSha256 = "sha256-Yv3OGHFOmenst/ujUgvCaSEjwwBf3W9n+55ztVhuWjo=";
|
||||
|
||||
doCheck = false;
|
||||
|
|
Loading…
Reference in a new issue