depot/third_party/nixpkgs/pkgs/development/tools/kubepug/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

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 ];
};
}