Files
nixpkgs/pkgs/by-name/he/helmfile/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

65 lines
1.5 KiB
Nix

{
lib,
stdenv,
buildGoModule,
fetchFromGitHub,
installShellFiles,
makeWrapper,
pluginsDir ? null,
}:
buildGoModule rec {
pname = "helmfile";
version = "1.1.7";
src = fetchFromGitHub {
owner = "helmfile";
repo = "helmfile";
rev = "v${version}";
hash = "sha256-DOLlibBuwzP31ZMakcuaeG/fdMDOXqgd8PKts4/gFVo=";
};
vendorHash = "sha256-l7KQ67Rx2lsaUkpTHBJM6PRqqTdbwkkaeOhsUxj1MMI=";
proxyVendor = true; # darwin/linux hash mismatch
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}"
''
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
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
];
};
}