3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/cluster/helmfile/default.nix

35 lines
935 B
Nix
Raw Normal View History

2020-06-27 10:20:00 +01:00
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, kubernetes-helm }:
2018-05-22 17:38:05 +01:00
2020-06-27 10:20:00 +01:00
buildGoModule rec {
pname = "helmfile";
2020-06-27 10:21:00 +01:00
version = "0.119.1";
2018-05-22 17:38:05 +01:00
src = fetchFromGitHub {
owner = "roboll";
repo = "helmfile";
rev = "v${version}";
2020-06-27 10:21:00 +01:00
sha256 = "1j9b0xw59w5ailwa7dqgbsdigviw8ng5r4jbsk9b80izcig805zz";
2018-05-22 17:38:05 +01:00
};
2020-06-26 12:39:22 +01:00
vendorSha256 = "11bw10s5wifzw2cy1100hyjv4xv7an7b05lcw6sphwyy56gsp2fy";
nativeBuildInputs = [ makeWrapper ];
2020-06-27 10:20:00 +01:00
subPackages = [ "." ];
buildFlagsArray = [ "-ldflags=-s -w -X github.com/roboll/helmfile/pkg/app/version.Version=${version}" ];
2018-10-09 09:41:13 +01:00
postInstall = ''
wrapProgram $out/bin/helmfile \
--prefix PATH : ${lib.makeBinPath [ kubernetes-helm ]}
'';
meta = {
2018-05-22 17:38:05 +01:00
description = "Deploy Kubernetes Helm charts";
2020-03-14 06:33:28 +00:00
homepage = "https://github.com/roboll/helmfile";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pneumaticat yurrriq ];
platforms = lib.platforms.unix;
2018-05-22 17:38:05 +01:00
};
2020-06-27 10:20:00 +01:00
}