2022-02-10 20:34:41 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2021-04-13 19:44:15 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
buildGoModule rec {
|
2021-04-13 19:44:15 +00:00
|
|
|
pname = "kubepug";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "1.4.0";
|
2021-04-13 19:44:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rikatz";
|
|
|
|
repo = "kubepug";
|
|
|
|
rev = "v${version}";
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-ySGNEs9PwkpjcLaCZ9M6ewE0/PRdwDksJMJ2GZUUrng=";
|
2021-04-13 19:44:15 +00:00
|
|
|
};
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
vendorSha256 = "sha256-faco4/6ldZiD2pkvjFgWDHbpCcNA4dGXxVhuO3PK77k=";
|
2021-04-13 19:44:15 +00:00
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s" "-w" "-X=github.com/rikatz/kubepug/version.Version=${src.rev}"
|
|
|
|
];
|
2021-04-13 19:44:15 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
patches = [
|
|
|
|
./skip-external-network-tests.patch
|
|
|
|
];
|
2021-04-13 19:44:15 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|