02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
30 lines
748 B
Nix
30 lines
748 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "kubepug";
|
|
version = "1.3.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rikatz";
|
|
repo = "kubepug";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-BljDmyueGtQztdHnix4YP+zvhor1+ofahQ8971/o1xY=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-SZckJDFYGsjYEzpJOZ1BE0gNLqn4so23OcOUnPo6zdU=";
|
|
|
|
ldflags = [
|
|
"-s" "-w" "-X=github.com/rikatz/kubepug/version.Version=${src.rev}"
|
|
];
|
|
|
|
patches = [
|
|
./skip-external-network-tests.patch
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|