2019-06-07 21:08:21 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, kubernetes-helm, ... }:
|
2018-05-22 17:38:05 +01:00
|
|
|
|
2019-09-16 22:07:32 +01:00
|
|
|
let version = "0.85.0"; in
|
2018-05-22 17:38:05 +01:00
|
|
|
|
2019-06-06 23:03:33 +01:00
|
|
|
buildGoModule {
|
|
|
|
pname = "helmfile";
|
|
|
|
inherit version;
|
2018-05-22 17:38:05 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "roboll";
|
|
|
|
repo = "helmfile";
|
|
|
|
rev = "v${version}";
|
2019-09-16 22:07:32 +01:00
|
|
|
sha256 = "0k1019ddzhhl8kn70ibqf6srlfv92jkc26m78pic5c7ibqyq5fds";
|
2018-05-22 17:38:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
goPackagePath = "github.com/roboll/helmfile";
|
|
|
|
|
2019-09-16 22:07:32 +01:00
|
|
|
modSha256 = "1npjm3rs32c1rwx8xb9s03jhd156da6p66hpaqccm7b6zxsm32nv";
|
2019-06-06 23:03:33 +01:00
|
|
|
|
2018-06-16 13:38:50 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2018-10-09 09:41:13 +01:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-X main.Version=${version}
|
|
|
|
'';
|
|
|
|
|
2018-06-16 13:38:50 +01:00
|
|
|
postInstall = ''
|
2019-06-06 23:03:33 +01:00
|
|
|
wrapProgram $out/bin/helmfile \
|
2018-06-16 13:38:50 +01:00
|
|
|
--prefix PATH : ${lib.makeBinPath [ kubernetes-helm ]}
|
|
|
|
'';
|
|
|
|
|
2018-05-22 17:38:05 +01:00
|
|
|
meta = {
|
|
|
|
description = "Deploy Kubernetes Helm charts";
|
|
|
|
homepage = https://github.com/roboll/helmfile;
|
|
|
|
license = lib.licenses.mit;
|
2019-05-23 11:21:12 +01:00
|
|
|
maintainers = with lib.maintainers; [ pneumaticat yurrriq ];
|
2018-05-22 17:38:05 +01:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|