nixpkgs/pkgs/applications/networking/cluster/helmfile/default.nix

37 lines
955 B
Nix
Raw Normal View History

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