diff options
author | Kevin Liu <kevin@potatofrom.space> | 2018-06-16 08:38:50 -0400 |
---|---|---|
committer | Kevin Liu <kevin@potatofrom.space> | 2018-06-16 08:40:17 -0400 |
commit | 37804741b518f889eecde85f8c5cc17f0a83d640 (patch) | |
tree | 5ee2ed363e7bf92a4352845e548d88843002ac92 /pkgs/applications/networking/cluster | |
parent | 2c78c378b7c45b8b59fa420e9bac53655dd9164b (diff) | |
download | nixlib-37804741b518f889eecde85f8c5cc17f0a83d640.tar nixlib-37804741b518f889eecde85f8c5cc17f0a83d640.tar.gz nixlib-37804741b518f889eecde85f8c5cc17f0a83d640.tar.bz2 nixlib-37804741b518f889eecde85f8c5cc17f0a83d640.tar.lz nixlib-37804741b518f889eecde85f8c5cc17f0a83d640.tar.xz nixlib-37804741b518f889eecde85f8c5cc17f0a83d640.tar.zst nixlib-37804741b518f889eecde85f8c5cc17f0a83d640.zip |
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.
Diffstat (limited to 'pkgs/applications/networking/cluster')
-rw-r--r-- | pkgs/applications/networking/cluster/helmfile/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/applications/networking/cluster/helmfile/default.nix b/pkgs/applications/networking/cluster/helmfile/default.nix index 7f07fcc486dd..358f4cdb7df7 100644 --- a/pkgs/applications/networking/cluster/helmfile/default.nix +++ b/pkgs/applications/networking/cluster/helmfile/default.nix @@ -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; |