diff --git a/pkgs/by-name/he/helmify/package.nix b/pkgs/by-name/he/helmify/package.nix new file mode 100644 index 000000000000..09b6b9505417 --- /dev/null +++ b/pkgs/by-name/he/helmify/package.nix @@ -0,0 +1,44 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + nix-update-script, + versionCheckHook, +}: + +buildGoModule (finalAttrs: { + pname = "helmify"; + version = "0.4.20"; + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "arttor"; + repo = "helmify"; + tag = "v${finalAttrs.version}"; + hash = "sha256-Az/rNrNwWkQCZ8iy2qkix8xqsWA+eUbFw7YstA9usdw="; + }; + + vendorHash = "sha256-a2uA2P9eenpgb2bFMvy3ioI9crG0FpvD1vEXqCwwwyw="; + + ldflags = [ + "-s" + "-X main.version=${finalAttrs.version}" + "-X main.commit=${finalAttrs.src.tag}" + "-X main.date=19700101" + ]; + + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Creates Helm chart from Kubernetes yaml"; + homepage = "https://github.com/arttor/helmify"; + changelog = "https://github.com/arttor/helmify/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ jlesquembre ]; + mainProgram = "helmify"; + platforms = lib.platforms.unix; + }; +})