Merge pull request #143214 from doronbehar/pkg/gmailctl

This commit is contained in:
Doron Behar 2021-10-29 05:12:10 +00:00 committed by GitHub
commit f00a6fdb82
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 {
@ -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;