2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-09-21 04:58:36 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "popeye";
|
2021-05-12 01:40:54 +00:00
|
|
|
version = "0.9.2";
|
2020-09-21 04:58:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "derailed";
|
|
|
|
repo = "popeye";
|
2021-05-12 01:40:54 +00:00
|
|
|
sha256 = "sha256-GSH9q0hnyuGiJAdbFWKbaaYoHKl4e0SNmBkOvpn5a6s=";
|
2020-09-21 04:58:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-s -w
|
|
|
|
-X github.com/derailed/popeye/cmd.version=${version}
|
2021-05-12 01:40:54 +00:00
|
|
|
-X github.com/derailed/popeye/cmd.commit=${version}
|
2020-09-21 04:58:36 +00:00
|
|
|
'';
|
|
|
|
|
2021-05-12 01:40:54 +00:00
|
|
|
vendorSha256 = "sha256-pK04vGL9Izv1aK8UA+/3lSt/SjLyckjnfSCrOalRj3c=";
|
2020-09-21 04:58:36 +00:00
|
|
|
|
2021-05-12 01:40:54 +00:00
|
|
|
doCheck = true;
|
2020-09-21 04:58:36 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-09-21 04:58:36 +00:00
|
|
|
description = "A Kubernetes cluster resource sanitizer";
|
|
|
|
homepage = "https://github.com/derailed/popeye";
|
|
|
|
changelog = "https://github.com/derailed/popeye/releases/tag/v${version}";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.bryanasdev000 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|