mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
34 lines
759 B
Nix
34 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";
|
|
};
|
|
}
|