blob: 258a04c5e84bd553fffb5a949b3b57675236423e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{ lib
, buildGoModule
, fetchFromGitHub
, installShellFiles
, makeWrapper
, pluginsDir ? null
}:
buildGoModule rec {
pname = "helmfile";
version = "0.161.0";
src = fetchFromGitHub {
owner = "helmfile";
repo = "helmfile";
rev = "v${version}";
sha256 = "sha256-SoXpUAISYgB0qrw0urnVjPFfBc4jtkfDl41MmzfRG/g=";
};
vendorHash = "sha256-piGbC9cljBjJ0X2kzNqNnpFmcjnu6DdKizSRGrw/+2c=";
doCheck = false;
subPackages = [ "." ];
ldflags = [ "-s" "-w" "-X go.szostok.io/version.version=v${version}" ];
nativeBuildInputs =
[ installShellFiles ] ++
lib.optional (pluginsDir != null) makeWrapper;
postInstall = lib.optionalString (pluginsDir != null) ''
wrapProgram $out/bin/helmfile \
--set HELM_PLUGINS "${pluginsDir}"
'' + ''
installShellCompletion --cmd helmfile \
--bash <($out/bin/helmfile completion bash) \
--fish <($out/bin/helmfile completion fish) \
--zsh <($out/bin/helmfile completion zsh)
'';
meta = {
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/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pneumaticat yurrriq ];
};
}
|