helmfile: install autocompletion

main
Eric Bailey 2 years ago
parent 37e4ff1b4c
commit af1462f0a2
  1. 10
      pkgs/applications/networking/cluster/helmfile/default.nix

@ -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…
Cancel
Save