kubernetes-helmPlugins.helm-dt: init at 0.4.1 (#328979)

This commit is contained in:
Arne Keller
2024-12-15 18:57:58 +01:00
committed by GitHub
3 changed files with 57 additions and 0 deletions
+7
View File
@@ -1982,6 +1982,13 @@
githubId = 11493130;
name = "Asbjørn Olling";
};
ascii17 = {
name = "Allen Conlon";
email = "software@conlon.dev";
github = "a1994sc";
githubId = 1966320;
keys = [ { fingerprint = "E1F3 9B80 47A5 1EB9 01F8 C385 7FE3 F668 49737 F37"; } ];
};
asciimoth = {
name = "Andrew";
email = "ascii@moth.contact";
@@ -5,6 +5,8 @@
helm-diff = callPackage ./helm-diff.nix { };
helm-dt = callPackage ./helm-dt.nix { };
helm-git = callPackage ./helm-git.nix { };
helm-mapkubeapis = callPackage ./helm-mapkubeapis.nix { };
@@ -0,0 +1,48 @@
{
buildGoModule,
fetchFromGitHub,
lib,
}:
buildGoModule rec {
pname = "helm-dt";
version = "0.4.1";
src = fetchFromGitHub {
owner = "vmware-labs";
repo = "distribution-tooling-for-helm";
rev = "refs/tags/v${version}";
hash = "sha256-KrQAlB0ORNzKIG2vxych3gVBytTh3Hhnjsyn1ia1ZQM=";
};
vendorHash = "sha256-T8Kk+9NAhYOvSq94HOEE53BT7Xh9tU1gJ420o/tiVEo=";
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;
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;
};
}