2024-01-02 11:29:13 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kor";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.4.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yonahd";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-OZSec1S583jVGqSET0y4WhKxWf9CyLKuhEwu39Zg9vE=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
vendorHash = "sha256-4XcmaW4H+IgZZx3PuG0aimqSG1eUnRtcbebKXuencnQ=";
|
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";
|
|
|
|
};
|
|
|
|
}
|