helmfile: install autocompletion
This commit is contained in:
parent
37e4ff1b4c
commit
af1462f0a2
@ -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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user