helmfile: add helm to path with wrapProgram

Helmfile makes direct calls to `helm` as an implicit dependency. Now helmfile
can work without Helm also being explicitly installed.

+9 -1
+9 -1
pkgs/applications/networking/cluster/helmfile/default.nix
··· 1 - { lib, buildGoPackage, fetchFromGitHub, ... }: 1 + { lib, buildGoPackage, fetchFromGitHub, makeWrapper, kubernetes-helm, ... }: 2 2 3 3 let version = "0.19.0"; in 4 4 ··· 13 13 }; 14 14 15 15 goPackagePath = "github.com/roboll/helmfile"; 16 + 17 + nativeBuildInputs = [ makeWrapper ]; 18 + 19 + postInstall = '' 20 + wrapProgram $bin/bin/helmfile \ 21 + --prefix PATH : ${lib.makeBinPath [ kubernetes-helm ]} 22 + ''; 23 + 16 24 17 25 meta = { 18 26 description = "Deploy Kubernetes Helm charts";