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";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.7.1";
|
2021-04-13 19:44:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-01-02 11:29:13 +00:00
|
|
|
owner = "kubepug";
|
2021-04-13 19:44:15 +00:00
|
|
|
repo = "kubepug";
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-VNxaYQy81U0JWd6KS0jCvMexpyWL4v1cKpjxLRkxBLE=";
|
2021-04-13 19:44:15 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
vendorHash = "sha256-HVsaQBd7fSZp2fOpOOmlDhYrHcHqWKiYWPFLQX0azEw=";
|
2021-04-13 19:44:15 +00:00
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [
|
2023-07-15 17:15:38 +00:00
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X sigs.k8s.io/release-utils/version.gitVersion=${version}"
|
2021-08-27 14:25:00 +00:00
|
|
|
];
|
2021-04-13 19:44:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Checks a Kubernetes cluster for objects using deprecated API versions";
|
2024-01-02 11:29:13 +00:00
|
|
|
homepage = "https://github.com/kubepug/kubepug";
|
2021-04-13 19:44:15 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ mausch ];
|
|
|
|
};
|
|
|
|
}
|