mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-27 22:44:56 +00:00
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:
parent
2c78c378b7
commit
37804741b5
@ -1,4 +1,4 @@
|
|||||||
{ lib, buildGoPackage, fetchFromGitHub, ... }:
|
{ lib, buildGoPackage, fetchFromGitHub, makeWrapper, kubernetes-helm, ... }:
|
||||||
|
|
||||||
let version = "0.19.0"; in
|
let version = "0.19.0"; in
|
||||||
|
|
||||||
@ -14,6 +14,14 @@ buildGoPackage {
|
|||||||
|
|
||||||
goPackagePath = "github.com/roboll/helmfile";
|
goPackagePath = "github.com/roboll/helmfile";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram $bin/bin/helmfile \
|
||||||
|
--prefix PATH : ${lib.makeBinPath [ kubernetes-helm ]}
|
||||||
|
'';
|
||||||
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Deploy Kubernetes Helm charts";
|
description = "Deploy Kubernetes Helm charts";
|
||||||
homepage = https://github.com/roboll/helmfile;
|
homepage = https://github.com/roboll/helmfile;
|
||||||
|
Loading…
Reference in New Issue
Block a user