2020-03-27 00:33:21 -07:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, kubernetes-helm, ... }:
|
2018-05-22 09:38:05 -07:00
|
|
|
|
2020-05-02 04:31:34 -07:00
|
|
|
let version = "0.114.0"; in
|
2020-03-27 00:33:21 -07:00
|
|
|
|
|
|
|
buildGoModule {
|
2019-06-06 15:03:33 -07:00
|
|
|
pname = "helmfile";
|
2020-03-27 00:33:21 -07:00
|
|
|
inherit version;
|
2018-05-22 09:38:05 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "roboll";
|
|
|
|
repo = "helmfile";
|
|
|
|
rev = "v${version}";
|
2020-05-02 04:31:34 -07:00
|
|
|
sha256 = "0486wcfizi8xljr29mznc4p11ggz4rvk5n53qvb30f7ry4ncc8n5";
|
2018-05-22 09:38:05 -07:00
|
|
|
};
|
|
|
|
|
2020-03-27 00:33:21 -07:00
|
|
|
goPackagePath = "github.com/roboll/helmfile";
|
|
|
|
|
2020-05-02 04:31:34 -07:00
|
|
|
modSha256 = "0j7w12rrnsv2h5v0bqh6sjq9anm51zs0p3nzlhwsksw9c98r9avk";
|
2019-06-06 15:03:33 -07:00
|
|
|
|
2018-06-16 05:38:50 -07:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2018-10-09 01:41:13 -07:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-X main.Version=${version}
|
|
|
|
'';
|
|
|
|
|
2018-06-16 05:38:50 -07:00
|
|
|
postInstall = ''
|
2019-06-06 15:03:33 -07:00
|
|
|
wrapProgram $out/bin/helmfile \
|
2020-03-27 00:33:21 -07:00
|
|
|
--prefix PATH : ${lib.makeBinPath [ kubernetes-helm ]}
|
2018-06-16 05:38:50 -07:00
|
|
|
'';
|
|
|
|
|
2020-03-27 00:33:21 -07:00
|
|
|
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";
|
2020-03-27 00:33:21 -07:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ pneumaticat yurrriq ];
|
|
|
|
platforms = lib.platforms.unix;
|
2018-05-22 09:38:05 -07:00
|
|
|
};
|
|
|
|
}
|