3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/cluster/helmfile/default.nix

40 lines
945 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, makeWrapper, kubernetes-helm, ... }:
2018-05-22 17:38:05 +01:00
let version = "0.79.3"; in
2018-05-22 17:38:05 +01:00
buildGoModule {
pname = "helmfile";
inherit version;
2018-05-22 17:38:05 +01:00
src = fetchFromGitHub {
owner = "roboll";
repo = "helmfile";
rev = "v${version}";
sha256 = "0wgfpidpqyvh41dnw351v91z4szi1s6lqak9li2pmddz1rdkx66v";
2018-05-22 17:38:05 +01:00
};
goPackagePath = "github.com/roboll/helmfile";
modSha256 = "1ksz1c4j7mhsbq6ifqab04588d48c9glyhr4d3d4jyvi19qhwx1d";
nativeBuildInputs = [ makeWrapper ];
2018-10-09 09:41:13 +01:00
buildFlagsArray = ''
-ldflags=
-X main.Version=${version}
'';
postInstall = ''
wrapProgram $out/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 yurrriq ];
2018-05-22 17:38:05 +01:00
platforms = lib.platforms.unix;
};
}