2018-06-16 13:38:50 +01:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub, makeWrapper, kubernetes-helm, ... }:
|
2018-05-22 17:38:05 +01:00
|
|
|
|
2018-06-16 13:38:32 +01:00
|
|
|
let version = "0.19.0"; in
|
2018-05-22 17:38:05 +01:00
|
|
|
|
|
|
|
buildGoPackage {
|
|
|
|
name = "helmfile-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "roboll";
|
|
|
|
repo = "helmfile";
|
|
|
|
rev = "v${version}";
|
2018-06-16 13:38:32 +01:00
|
|
|
sha256 = "0wjzzaygdnnvyi5a78bhmz2sxc4gykdl00h78dkgvj7aaw05s9yd";
|
2018-05-22 17:38:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
goPackagePath = "github.com/roboll/helmfile";
|
|
|
|
|
2018-06-16 13:38:50 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $bin/bin/helmfile \
|
|
|
|
--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;
|
|
|
|
maintainers = with lib.maintainers; [ pneumaticat ];
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|