nixpkgs/pkgs/development/tools/kubepug/default.nix

29 lines
727 B
Nix
Raw Normal View History

2021-04-11 17:38:45 +02:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "kubepug";
2021-11-03 09:12:10 +01:00
version = "1.2.2";
2021-04-11 17:38:45 +02:00
src = fetchFromGitHub {
owner = "rikatz";
repo = "kubepug";
rev = "v${version}";
2021-11-03 09:12:10 +01:00
sha256 = "sha256-jQ/LzwxYxfCKiu+2VhjQ3YWwLEqZkYrH7+olBOMUA1A=";
2021-04-11 17:38:45 +02:00
};
2021-11-03 09:12:10 +01:00
vendorSha256 = "sha256-P5HoU9AAGFrSrp9iymjW+r8w5L90KUOrmaXM8p+Wn44=";
2021-04-11 17:38:45 +02:00
2021-08-26 08:45:51 +02:00
ldflags = [
"-s" "-w" "-X=github.com/rikatz/kubepug/version.Version=${src.rev}"
];
2021-04-11 17:38:45 +02:00
subPackages = [ "cmd/kubepug.go" ];
meta = with lib; {
description = "Checks a Kubernetes cluster for objects using deprecated API versions";
homepage = "https://github.com/rikatz/kubepug";
license = licenses.asl20;
maintainers = with maintainers; [ mausch ];
};
}