helmfile: install autocompletion

This commit is contained in:
Eric Bailey 2022-07-12 15:25:37 -05:00
parent 37e4ff1b4c
commit af1462f0a2

View file

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "helmfile";
@ -19,6 +19,14 @@ buildGoModule rec {
ldflags = [ "-s" "-w" "-X github.com/helmfile/helmfile/pkg/app/version.Version=${version}" ];
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --cmd helmfile \
--bash ./autocomplete/helmfile_bash_autocomplete \
--zsh ./autocomplete/helmfile_zsh_autocomplete
'';
meta = {
description = "Declarative spec for deploying Helm charts";
longDescription = ''