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

40 lines
948 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, makeWrapper, kubernetes-helm, ... }:
2018-05-22 17:38:05 +01:00
2020-03-14 06:33:28 +00:00
let version = "0.102.0"; 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}";
2020-03-14 06:33:28 +00:00
sha256 = "0v7mhsnhswiqd62wrmkcpzsg9nfi6wvkh9danngs5rqjiz1zffhy";
2018-05-22 17:38:05 +01:00
};
goPackagePath = "github.com/roboll/helmfile";
2020-03-14 06:33:28 +00:00
modSha256 = "0s7j7jbgr8gdc0s9dnl6zjwkpywqj05xyb7mkcank54kgrz0g5vq";
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";
2020-03-14 06:33:28 +00:00
homepage = "https://github.com/roboll/helmfile";
2018-05-22 17:38:05 +01:00
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pneumaticat yurrriq ];
2018-05-22 17:38:05 +01:00
platforms = lib.platforms.unix;
};
}