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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
748 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2021-04-11 15:38:45 +00:00
buildGoModule rec {
2021-04-11 15:38:45 +00:00
pname = "kubepug";
2022-08-22 13:16:29 +00:00
version = "1.4.0";
2021-04-11 15:38:45 +00:00
src = fetchFromGitHub {
owner = "rikatz";
repo = "kubepug";
rev = "v${version}";
2022-08-22 13:16:29 +00:00
sha256 = "sha256-ySGNEs9PwkpjcLaCZ9M6ewE0/PRdwDksJMJ2GZUUrng=";
2021-04-11 15:38:45 +00:00
};
2022-08-22 13:16:29 +00:00
vendorSha256 = "sha256-faco4/6ldZiD2pkvjFgWDHbpCcNA4dGXxVhuO3PK77k=";
2021-04-11 15:38:45 +00:00
2021-08-26 06:45:51 +00:00
ldflags = [
"-s" "-w" "-X=github.com/rikatz/kubepug/version.Version=${src.rev}"
];
2021-04-11 15:38:45 +00:00
2022-01-05 16:03:23 +00:00
patches = [
./skip-external-network-tests.patch
];
2021-04-11 15:38:45 +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 ];
};
}