clusterlint: init at 0.12.0
Co-authored-by: Aleksana <me@aleksana.moe>
This commit is contained in:
parent
ce557ce4ac
commit
f7ecabbb66
37
pkgs/by-name/cl/clusterlint/package.nix
Normal file
37
pkgs/by-name/cl/clusterlint/package.nix
Normal 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";
|
||||
};
|
||||
})
|
||||
Loading…
x
Reference in New Issue
Block a user