depot/third_party/nixpkgs/pkgs/by-name/ko/kor/package.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

34 lines
761 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "kor";
version = "0.4.0";
src = fetchFromGitHub {
owner = "yonahd";
repo = pname;
rev = "v${version}";
hash = "sha256-OZSec1S583jVGqSET0y4WhKxWf9CyLKuhEwu39Zg9vE=";
};
vendorHash = "sha256-4XcmaW4H+IgZZx3PuG0aimqSG1eUnRtcbebKXuencnQ=";
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";
};
}