2024-01-02 11:29:13 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kor";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.3.5";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yonahd";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-Y8k7tpKqs/X5ePa2kFkKxrYb1E4Z5h8+o229eD6YQ/M=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
vendorHash = "sha256-DRbwM6fKTIlefD0rUmNLlUXrK+t3vNCl4rxHF7m8W10=";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
HOME=$(mktemp -d)
|
|
|
|
export HOME
|
|
|
|
'';
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Golang Tool to discover unused Kubernetes Resources";
|
|
|
|
homepage = "https://github.com/yonahd/kor";
|
|
|
|
changelog = "https://github.com/yonahd/kor/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.ivankovnatsky ];
|
|
|
|
mainProgram = "kor";
|
|
|
|
};
|
|
|
|
}
|