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
49 lines
944 B
Nix
49 lines
944 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "helm-cm-push";
|
|
version = "0.10.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "chartmuseum";
|
|
repo = "helm-push";
|
|
rev = "v${version}";
|
|
hash = "sha256-YnhI1/BDk9swr3YFm5ajGf4LLgPty7blA2tlsMH0erY=";
|
|
};
|
|
|
|
vendorHash = "sha256-7bUDKqkvBV1Upcrj4DQnVCP74QtKlSwF0Kl2sPFZpjc=";
|
|
|
|
subPackage = [ "cmd/helm-cm-push" ];
|
|
|
|
# Remove hooks.
|
|
postPatch = ''
|
|
sed -e '/^hooks:/,+2 d' -i plugin.yaml
|
|
'';
|
|
|
|
env.CGO_ENABLED = 0;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
];
|
|
|
|
postInstall = ''
|
|
install -Dm644 plugin.yaml $out/helm-cm-push/plugin.yaml
|
|
mv $out/bin $out/helm-cm-push
|
|
'';
|
|
|
|
# Tests require the ChartMuseum service.
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Helm plugin to push chart package to ChartMuseum";
|
|
homepage = "https://github.com/chartmuseum/helm-push";
|
|
license = licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
}
|