mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 04:49:01 +02:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
54 lines
1.4 KiB
Nix
54 lines
1.4 KiB
Nix
{ lib
|
|
, buildGo122Module
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
, makeWrapper
|
|
, pluginsDir ? null
|
|
}:
|
|
|
|
buildGo122Module rec {
|
|
pname = "helmfile";
|
|
version = "0.162.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "helmfile";
|
|
repo = "helmfile";
|
|
rev = "v${version}";
|
|
hash = "sha256-BiouIaiYveQe0sTgvuf1R1S0qydLpoxWl958zyVFvWE=";
|
|
};
|
|
|
|
vendorHash = "sha256-z6UfyruXLzcH9iLgsM6Wmb1i8PWrroAbhGi2fphYBoA=";
|
|
|
|
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";
|
|
mainProgram = "helmfile";
|
|
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 ];
|
|
};
|
|
}
|