1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/networking/cluster/helmfile/default.nix

38 lines
860 B
Nix
Raw Normal View History

{ lib, buildGoPackage, fetchFromGitHub, makeWrapper, kubernetes-helm, ... }:
2018-05-22 17:38:05 +01:00
2018-10-09 09:41:13 +01:00
let version = "0.40.1"; in
2018-05-22 17:38:05 +01:00
buildGoPackage {
name = "helmfile-${version}";
src = fetchFromGitHub {
owner = "roboll";
repo = "helmfile";
rev = "v${version}";
2018-10-09 09:41:13 +01:00
sha256 = "02ir10070rpayv9s53anldwjy5ggl268shgf085d188wl6vshaiv";
2018-05-22 17:38:05 +01:00
};
goPackagePath = "github.com/roboll/helmfile";
nativeBuildInputs = [ makeWrapper ];
2018-10-09 09:41:13 +01:00
buildFlagsArray = ''
-ldflags=
-X main.Version=${version}
'';
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;
};
}