nixpkgs/pkgs/by-name/ko/kor/package.nix
2024-08-21 04:33:46 +00:00

35 lines
759 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "kor";
version = "0.5.5";
src = fetchFromGitHub {
owner = "yonahd";
repo = pname;
rev = "v${version}";
hash = "sha256-/GXTfArNaD1Y6hpec3tNUSSNVqIq6QLpsZS7jWFi5g4=";
};
vendorHash = "sha256-FrO+ZyisuDLplpoKsGOwpxz+jXd36MEs5bFz3RujZDY=";
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";
};
}