35 lines
935 B
Nix
35 lines
935 B
Nix
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, kubernetes-helm }:
|
|
|
|
buildGoModule rec {
|
|
pname = "helmfile";
|
|
version = "0.119.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "roboll";
|
|
repo = "helmfile";
|
|
rev = "v${version}";
|
|
sha256 = "1j9b0xw59w5ailwa7dqgbsdigviw8ng5r4jbsk9b80izcig805zz";
|
|
};
|
|
|
|
vendorSha256 = "11bw10s5wifzw2cy1100hyjv4xv7an7b05lcw6sphwyy56gsp2fy";
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
subPackages = [ "." ];
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X github.com/roboll/helmfile/pkg/app/version.Version=${version}" ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/helmfile \
|
|
--prefix PATH : ${lib.makeBinPath [ kubernetes-helm ]}
|
|
'';
|
|
|
|
meta = {
|
|
description = "Deploy Kubernetes Helm charts";
|
|
homepage = "https://github.com/roboll/helmfile";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ pneumaticat yurrriq ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|