nixpkgs-suyu/pkgs/applications/networking/cluster/helmfile/default.nix
2020-10-25 15:38:58 +00:00

36 lines
955 B
Nix

{ lib, buildGoModule, fetchFromGitHub, makeWrapper, kubernetes-helm }:
buildGoModule rec {
pname = "helmfile";
version = "0.132.1";
src = fetchFromGitHub {
owner = "roboll";
repo = "helmfile";
rev = "v${version}";
sha256 = "03i9pl3iwqk5az73qm9rxdq8c5nd9l4w3c28yk55bfgpwpnxcwjc";
};
vendorSha256 = "0r4p4nwhmxg06qyf86gd2g61l4r1mlpblh4vhsc1shbz9iigykzi";
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;
};
}