2024-09-13 02:28:10 +02:00
|
|
|
{
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitLab,
|
|
|
|
lib,
|
2024-09-18 16:10:20 +02:00
|
|
|
}:
|
|
|
|
let
|
2024-09-13 02:28:10 +02:00
|
|
|
version = "0.10.1";
|
|
|
|
in
|
2024-09-18 16:10:20 +02:00
|
|
|
buildGoModule {
|
|
|
|
pname = "prometheus-fail2ban-exporter";
|
|
|
|
inherit version;
|
2024-09-13 02:28:10 +02:00
|
|
|
|
2024-09-18 16:10:20 +02:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "hectorjsmith";
|
|
|
|
repo = "fail2ban-prometheus-exporter";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-zGEhDy3uXIbvx4agSA8Mx7bRtiZZtoDZGbNbHc9L+yI=";
|
|
|
|
};
|
2024-09-13 02:28:10 +02:00
|
|
|
|
2024-09-18 16:10:20 +02:00
|
|
|
vendorHash = "sha256-5o8p5p0U/c0WAIV5dACnWA3ThzSh2tt5LIFMb59i9GY=";
|
2024-09-13 02:28:10 +02:00
|
|
|
|
2024-09-18 16:10:20 +02:00
|
|
|
meta = with lib; {
|
|
|
|
mainProgram = "fail2ban-prometheus-exporter";
|
|
|
|
description = "Collect and export metrics on Fail2Ban";
|
|
|
|
homepage = "https://gitlab.com/hectorjsmith/fail2ban-prometheus-exporter";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|