mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 21:13:40 +00:00
42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
|
|
|
buildGoModule rec {
|
|
pname = "helmfile";
|
|
version = "0.154.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "helmfile";
|
|
repo = "helmfile";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-AKrTpV5Ky94H610iYO31/CBuZkTd1OcxX5Tl0GjNWaA=";
|
|
};
|
|
|
|
vendorHash = "sha256-PenQxs5Ds5GQ2LSlFRdpNUN8Y+jKCFSllMncWZwaL4c=";
|
|
|
|
doCheck = false;
|
|
|
|
subPackages = [ "." ];
|
|
|
|
ldflags = [ "-s" "-w" "-X go.szostok.io/version.version=v${version}" ];
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = ''
|
|
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 ];
|
|
};
|
|
}
|