You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
872 B
34 lines
872 B
3 years ago
|
{ lib, buildGoModule, fetchFromGitHub }:
|
||
4 years ago
|
|
||
|
buildGoModule rec {
|
||
|
pname = "popeye";
|
||
3 years ago
|
version = "0.9.2";
|
||
4 years ago
|
|
||
|
src = fetchFromGitHub {
|
||
|
rev = "v${version}";
|
||
|
owner = "derailed";
|
||
|
repo = "popeye";
|
||
3 years ago
|
sha256 = "sha256-GSH9q0hnyuGiJAdbFWKbaaYoHKl4e0SNmBkOvpn5a6s=";
|
||
4 years ago
|
};
|
||
|
|
||
|
buildFlagsArray = ''
|
||
|
-ldflags=
|
||
|
-s -w
|
||
|
-X github.com/derailed/popeye/cmd.version=${version}
|
||
3 years ago
|
-X github.com/derailed/popeye/cmd.commit=${version}
|
||
4 years ago
|
'';
|
||
|
|
||
3 years ago
|
vendorSha256 = "sha256-pK04vGL9Izv1aK8UA+/3lSt/SjLyckjnfSCrOalRj3c=";
|
||
4 years ago
|
|
||
3 years ago
|
doCheck = true;
|
||
4 years ago
|
|
||
3 years ago
|
meta = with lib; {
|
||
4 years ago
|
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;
|
||
|
};
|
||
|
}
|