nixpkgs/pkgs/by-name/ku/kubent/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
982 B
Nix
Raw Normal View History

{
buildGoModule,
fetchFromGitHub,
kubent,
lib,
testers,
}:
2022-03-24 08:18:02 +00:00
buildGoModule rec {
pname = "kubent";
version = "0.7.3";
2022-03-24 08:18:02 +00:00
src = fetchFromGitHub {
owner = "doitintl";
repo = "kube-no-trouble";
rev = version;
hash = "sha256-7bn7DxbZ/Nqob7ZEWRy1UVg97FiJN5JWEgpH1CDz6jQ=";
2022-03-24 08:18:02 +00:00
};
vendorHash = "sha256-+V+/TK60V8NYUDfF5/EgSZg4CLBn6Mt57diiyXm179k=";
2022-03-24 08:18:02 +00:00
ldflags = [
"-w"
"-s"
2022-03-24 08:18:02 +00:00
"-X main.version=v${version}"
];
subPackages = [ "cmd/kubent" ];
passthru.tests.version = testers.testVersion {
package = kubent;
command = "kubent --version";
version = "v${version}";
};
meta = {
2022-03-24 08:18:02 +00:00
description = "Easily check your cluster for use of deprecated APIs";
2024-10-14 15:21:29 +00:00
changelog = "https://github.com/doitintl/kube-no-trouble/releases/tag/${version}";
homepage = "https://github.com/doitintl/kube-no-trouble";
license = lib.licenses.mit;
mainProgram = "kubent";
maintainers = with lib.maintainers; [ peterromfeldhk ];
2022-03-24 08:18:02 +00:00
};
}