mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
35 lines
761 B
Nix
35 lines
761 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "kor";
|
|
version = "0.3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "yonahd";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-4lXLmh8BP7h6k8Tt/oklvv7fmDvmdKQP0P7gaCM2TK0=";
|
|
};
|
|
|
|
vendorHash = "sha256-ScV12Xb+tVluXC2Jat44atkKXZIzIcUdZ+lyD1Y3dIM=";
|
|
|
|
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";
|
|
};
|
|
}
|