3
0
Fork 0
forked from mirrors/nixpkgs

civo: install completions

This commit is contained in:
Mario Rodas 2022-09-23 04:20:00 +00:00
parent 7d6fc51550
commit e67243f1cf

View file

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "civo";
@ -13,6 +13,8 @@ buildGoModule rec {
vendorSha256 = "sha256-gBVSpjoAfbxlJnlrFrsBupJgVQ59sh1ipOry0Mgppig=";
nativeBuildInputs = [ installShellFiles ];
CGO_ENABLED = 0;
# Some lint checks fail
@ -29,6 +31,10 @@ buildGoModule rec {
postInstall = ''
mv $out/bin/cli $out/bin/civo
installShellCompletion --cmd civo \
--bash <($out/bin/civo completion bash) \
--fish <($out/bin/civo completion fish) \
--zsh <($out/bin/civo completion zsh)
'';
meta = with lib; {