nixpkgs/pkgs/by-name/ko/kor/package.nix
2024-08-07 10:53:48 +00:00

35 lines
759 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "kor";
version = "0.5.4";
src = fetchFromGitHub {
owner = "yonahd";
repo = pname;
rev = "v${version}";
hash = "sha256-ZjFLcxp5keL4N8B7hZC8/x2Xk0c87p44yCfGunjLUNA=";
};
vendorHash = "sha256-rlDaQPR9sReAX4gAlbDGAsA1ei9Fo2sXoU9cbBCexfc=";
preCheck = ''
HOME=$(mktemp -d)
export HOME
'';
ldflags = [
"-s"
"-w"
];
meta = with lib; {
description = "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";
};
}