2022-07-12 20:25:37 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
2018-05-22 16:38:05 +00:00
|
|
|
|
2020-06-27 09:20:00 +00:00
|
|
|
buildGoModule rec {
|
2019-06-06 22:03:33 +00:00
|
|
|
pname = "helmfile";
|
2022-07-12 19:58:30 +00:00
|
|
|
version = "0.145.2";
|
2018-05-22 16:38:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-07-12 19:58:30 +00:00
|
|
|
owner = "helmfile";
|
2018-05-22 16:38:05 +00:00
|
|
|
repo = "helmfile";
|
|
|
|
rev = "v${version}";
|
2022-07-12 19:58:30 +00:00
|
|
|
sha256 = "sha256-ipGMGby7qUoFJNc+7+Gq+JaBUdxm19NwhklWsTpslVI=";
|
2018-05-22 16:38:05 +00:00
|
|
|
};
|
|
|
|
|
2022-07-12 19:58:30 +00:00
|
|
|
vendorSha256 = "sha256-031Xdr3u35uirDBZhExdh8PMAZa1gfMTC2II8VMbr6Q=";
|
2019-06-06 22:03:33 +00:00
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-06-27 09:20:00 +00:00
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2022-07-12 19:58:30 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X github.com/helmfile/helmfile/pkg/app/version.Version=${version}" ];
|
2018-10-09 08:41:13 +00:00
|
|
|
|
2022-07-12 20:25:37 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --cmd helmfile \
|
|
|
|
--bash ./autocomplete/helmfile_bash_autocomplete \
|
|
|
|
--zsh ./autocomplete/helmfile_zsh_autocomplete
|
|
|
|
'';
|
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = {
|
2022-07-12 19:58:30 +00:00
|
|
|
description = "Declarative spec for deploying Helm charts";
|
|
|
|
longDescription = ''
|
|
|
|
Declaratively deploy your Kubernetes manifests, Kustomize configs,
|
|
|
|
and charts as Helm releases in one shot.
|
|
|
|
'';
|
|
|
|
homepage = "https://helmfile.readthedocs.io/";
|
2020-03-27 07:33:21 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ pneumaticat yurrriq ];
|
|
|
|
platforms = lib.platforms.unix;
|
2018-05-22 16:38:05 +00:00
|
|
|
};
|
2020-06-27 09:20:00 +00:00
|
|
|
}
|