mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 12:23:02 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
35 lines
759 B
Nix
35 lines
759 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "kor";
|
|
version = "0.4.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "yonahd";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-fyVMRHDzP7od+cwC01vNP/TOiDctD8E0y8uNWtgiEeA=";
|
|
};
|
|
|
|
vendorHash = "sha256-NPmsXS7P+pCF97N8x3nQhCRoHJLMO5plNtcUqxxexVE=";
|
|
|
|
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";
|
|
};
|
|
}
|