infra/pkgs/prometheus-fail2ban-exporter/default.nix

29 lines
667 B
Nix
Raw Normal View History

{
buildGoModule,
fetchFromGitLab,
lib,
2024-09-18 16:10:20 +02:00
}:
let
version = "0.10.1";
in
2024-09-18 16:10:20 +02:00
buildGoModule {
pname = "prometheus-fail2ban-exporter";
inherit version;
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-18 16:10:20 +02:00
vendorHash = "sha256-5o8p5p0U/c0WAIV5dACnWA3ThzSh2tt5LIFMb59i9GY=";
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;
};
}