mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
6fed86581c
Also, ditch vgo2nix in favor of buildGoModule.
42 lines
1 KiB
Nix
42 lines
1 KiB
Nix
{ stdenv, lib, buildGoModule, fetchFromGitHub, makeWrapper, kubernetes-helm, ... }:
|
|
|
|
let version = "0.73.0"; in
|
|
|
|
buildGoModule {
|
|
pname = "helmfile";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "roboll";
|
|
repo = "helmfile";
|
|
rev = "v${version}";
|
|
sha256 = "0mg88mqdmfvg10iips6xz4pw82w88pyf3b73g9kwzlv9v9vhgdzd";
|
|
};
|
|
|
|
goPackagePath = "github.com/roboll/helmfile";
|
|
|
|
modSha256 = if stdenv.isDarwin
|
|
then "0jqss8bgwvggygmr5y2yj98apkqs8z3vmwyfh2f6s67k68h57m57"
|
|
else "1ksz1c4j7mhsbq6ifqab04588d48c9glyhr4d3d4jyvi19qhwx1d";
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildFlagsArray = ''
|
|
-ldflags=
|
|
-X main.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;
|
|
};
|
|
}
|