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