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