clusterlint: init at 0.12.0

Co-authored-by: Aleksana <me@aleksana.moe>
This commit is contained in:
Johan Herland 2025-07-01 10:41:29 +00:00
parent ce557ce4ac
commit f7ecabbb66
No known key found for this signature in database

View File

@ -0,0 +1,37 @@
{
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
}:
buildGoModule (finalAttrs: {
pname = "clusterlint";
version = "0.12.0";
src = fetchFromGitHub {
owner = "digitalocean";
repo = "clusterlint";
tag = "v${finalAttrs.version}";
hash = "sha256-R6Dm7raIYxpulVtadU5AsSwCd5waOBOJRdD3o2vgGM4=";
};
vendorHash = null;
ldflags = [ "-X main.Version=${finalAttrs.version}" ];
# One subpackage fails to build
excludedPackages = [ "example-plugin" ];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
meta = {
description = "Best practices checker for Kubernetes clusters";
homepage = "https://github.com/digitalocean/clusterlint";
changelog = "https://github.com/digitalocean/clusterlint/releases/tag/v${finalAttrs.version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ jherland ];
mainProgram = "clusterlint";
};
})