Files
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

49 lines
1.1 KiB
Nix

{
buildGoModule,
fetchFromGitHub,
lib,
}:
buildGoModule rec {
pname = "helm-dt";
version = "0.4.9";
src = fetchFromGitHub {
owner = "vmware-labs";
repo = "distribution-tooling-for-helm";
rev = "refs/tags/v${version}";
hash = "sha256-3zEu4fnvjM1SvyOyj6NzQteyfEh5X7ro/G0gkzt7ghY=";
};
vendorHash = "sha256-CIVgNS74V75etC9WBzoxu6aoMHlUYxWd22h2NG1uNn0=";
ldflags = [
"-s"
"-w"
"-X 'main.BuildDate=1970-01-01 00:00:00 UTC'"
"-X 'main.Commit=v${version}'"
];
# NOTE: Remove the install and upgrade hooks.
postPatch = ''
sed -i '/^hooks:/,+2 d' plugin.yaml
'';
# require network/login
doCheck = false;
env.CGO_ENABLED = 1;
postInstall = ''
install -dm755 $out/helm-dt/bin
mv $out/bin/dt $out/helm-dt/bin/dt
rmdir $out/bin
install -m644 -Dt $out/helm-dt plugin.yaml
'';
meta = {
description = "Helm Distribution plugin is is a set of utilities and Helm Plugin for making offline work with Helm Charts easier";
homepage = "https://github.com/vmware-labs/distribution-tooling-for-helm";
maintainers = with lib.maintainers; [ ascii17 ];
license = lib.licenses.mit;
};
}