nixpkgs/pkgs/applications/networking/cluster/helmfile/default.nix
2020-08-22 09:07:16 +00:00

37 lines
955 B
Nix

{ lib, buildGoModule, fetchFromGitHub, makeWrapper, kubernetes-helm }:
buildGoModule rec {
pname = "helmfile";
version = "0.125.7";
src = fetchFromGitHub {
owner = "roboll";
repo = "helmfile";
rev = "v${version}";
sha256 = "1m030gjrd98z4vbj7l927qi55vgr11czrb8wmw56ifkqwfi6h9hi";
};
vendorSha256 = "0w72nlf26k64cq1hrqycks0pyp18y4wh3h40jpn5qnysi5pb2ndj";
doCheck = false;
nativeBuildInputs = [ makeWrapper ];
subPackages = [ "." ];
buildFlagsArray = [ "-ldflags=-s -w -X github.com/roboll/helmfile/pkg/app/version.Version=${version}" ];
postInstall = ''
wrapProgram $out/bin/helmfile \
--prefix PATH : ${lib.makeBinPath [ kubernetes-helm ]}
'';
meta = {
description = "Deploy Kubernetes Helm charts";
homepage = "https://github.com/roboll/helmfile";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pneumaticat yurrriq ];
platforms = lib.platforms.unix;
};
}