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

39 lines
950 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, makeWrapper, kubernetes-helm, ... }:
2018-05-22 17:38:05 +01:00
2020-06-08 20:50:22 +01:00
let version = "0.118.6"; in
buildGoModule {
pname = "helmfile";
inherit version;
2018-05-22 17:38:05 +01:00
src = fetchFromGitHub {
owner = "roboll";
repo = "helmfile";
rev = "v${version}";
2020-06-08 20:50:22 +01:00
sha256 = "0zbvz8kn52c1q4yn8n9z4rrf761h495fhjw72x9q1nh44hr7npwd";
2018-05-22 17:38:05 +01:00
};
goPackagePath = "github.com/roboll/helmfile";
2020-06-08 20:50:22 +01:00
vendorSha256 = "0xj14f0yx7x9ziijd1yka1n6kbmmhbibsk3ppp8cn1pqrwgqk7pr";
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 ]}
'';
meta = {
2018-05-22 17:38:05 +01:00
description = "Deploy Kubernetes Helm charts";
2020-03-14 06:33:28 +00:00
homepage = "https://github.com/roboll/helmfile";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pneumaticat yurrriq ];
platforms = lib.platforms.unix;
2018-05-22 17:38:05 +01:00
};
}