Merge pull request #267199 from ivankovnatsky/patch-46
kor: initial at 0.3.0
This commit is contained in:
commit
e62e1b3ad3
34
pkgs/by-name/ko/kor/package.nix
Normal file
34
pkgs/by-name/ko/kor/package.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "kor";
|
||||
version = "0.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "yonahd";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-emijYJL054UCOAUobspDqSc7LuQjUjT2E/rQKqJDvA8=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-iAqptugku3qX6e45+YYf1bU9j2YntNQj82vR04bFMOQ=";
|
||||
|
||||
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";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user