3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/kubepug/default.nix

31 lines
755 B
Nix
Raw Normal View History

2022-01-05 16:03:23 +00:00
{ lib, buildGo117Module, fetchFromGitHub }:
2021-04-11 16:38:45 +01:00
2022-01-05 16:03:23 +00:00
buildGo117Module rec {
2021-04-11 16:38:45 +01:00
pname = "kubepug";
2022-01-05 16:03:23 +00:00
version = "1.3.2";
2021-04-11 16:38:45 +01:00
src = fetchFromGitHub {
owner = "rikatz";
repo = "kubepug";
rev = "v${version}";
2022-01-05 16:03:23 +00:00
sha256 = "sha256-cjL718xTgtYev/lYL24vwZcB+joY3wIY4ixRCwAHQ4E=";
2021-04-11 16:38:45 +01:00
};
2022-01-05 16:03:23 +00:00
vendorSha256 = "0hynxj3q4aa1gx3w4ak56z6j5iplxi2hzqzsjkgz20fy34nfd41s";
2021-04-11 16:38:45 +01:00
2021-08-26 07:45:51 +01:00
ldflags = [
"-s" "-w" "-X=github.com/rikatz/kubepug/version.Version=${src.rev}"
];
2021-04-11 16:38:45 +01:00
2022-01-05 16:03:23 +00:00
patches = [
./skip-external-network-tests.patch
];
2021-04-11 16:38:45 +01:00
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 ];
};
}