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.
This commit is contained in:
Kevin Liu 2018-06-16 08:38:50 -04:00
parent 2c78c378b7
commit 37804741b5
No known key found for this signature in database
GPG key ID: 5A824102DFE3DD86

View file

@ -1,4 +1,4 @@
{ lib, buildGoPackage, fetchFromGitHub, ... }:
{ lib, buildGoPackage, fetchFromGitHub, makeWrapper, kubernetes-helm, ... }:
let version = "0.19.0"; in
@ -14,6 +14,14 @@ buildGoPackage {
goPackagePath = "github.com/roboll/helmfile";
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $bin/bin/helmfile \
--prefix PATH : ${lib.makeBinPath [ kubernetes-helm ]}
'';
meta = {
description = "Deploy Kubernetes Helm charts";
homepage = https://github.com/roboll/helmfile;