gmailctl: install completion files

This commit is contained in:
Doron Behar 2021-10-27 22:38:17 +03:00
parent 77382d5ebf
commit d95f44adf2

View file

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