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

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

33 lines
755 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";
2023-07-17 07:00:28 +00:00
version = "1.5.1";
2021-04-11 15:38:45 +00:00
src = fetchFromGitHub {
owner = "rikatz";
repo = "kubepug";
rev = "v${version}";
2023-07-17 07:00:28 +00:00
hash = "sha256-HjnkGEzTobtILqML5xcjpYVtg6a5PqMKYyaGTYrqEDo=";
2021-04-11 15:38:45 +00:00
};
2023-07-17 07:00:28 +00:00
vendorHash = "sha256-w2WwJa8qaXmgFwZJo2r2TowcTehgQY0nGY4u1UROaxM=";
2021-04-11 15:38:45 +00:00
2021-08-26 06:45:51 +00:00
ldflags = [
2023-07-10 02:03:47 +00:00
"-s"
"-w"
"-X sigs.k8s.io/release-utils/version.gitVersion=${version}"
2021-08-26 06:45:51 +00:00
];
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 ];
};
}