2023-11-13 11:40:01 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kor";
|
2024-06-25 12:38:22 +01:00
|
|
|
version = "0.5.1";
|
2023-11-13 11:40:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yonahd";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-06-25 12:38:22 +01:00
|
|
|
hash = "sha256-mGHSfOW40NTFK1csckSNriCYF2bEQD/M1Zs34i3PptI=";
|
2023-11-13 11:40:01 +00:00
|
|
|
};
|
|
|
|
|
2024-06-18 14:02:34 +01:00
|
|
|
vendorHash = "sha256-9aZy1i0VrDRySt5A5aQHBXa0mPgD+rsyeqQrd6snWKc=";
|
2023-11-13 11:40:01 +00:00
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
HOME=$(mktemp -d)
|
|
|
|
export HOME
|
|
|
|
'';
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-07 08:46:46 +01:00
|
|
|
description = "Golang Tool to discover unused Kubernetes Resources";
|
2023-11-13 11:40:01 +00:00
|
|
|
homepage = "https://github.com/yonahd/kor";
|
|
|
|
changelog = "https://github.com/yonahd/kor/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.ivankovnatsky ];
|
|
|
|
mainProgram = "kor";
|
|
|
|
};
|
|
|
|
}
|