2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2021-01-01 05:43:59 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "bird-exporter";
|
2021-07-05 14:55:24 +02:00
|
|
|
version = "1.2.6";
|
2021-01-01 05:43:59 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "czerwonk";
|
|
|
|
repo = "bird_exporter";
|
2021-05-11 05:39:13 +02:00
|
|
|
rev = version;
|
2021-07-05 14:55:24 +02:00
|
|
|
sha256 = "sha256-zQKdO1E5VKZaQLNOfL3e/iCdugwNx3xFy7R7vun/Efs=";
|
2021-01-01 05:43:59 +01:00
|
|
|
};
|
|
|
|
|
2021-07-05 14:55:24 +02:00
|
|
|
vendorSha256 = "sha256-o/OVWALLOw7eNH3xsQlQ5ZNFV3l9iD8lhyckBt6Qn3E=";
|
2021-01-01 05:43:59 +01:00
|
|
|
|
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) bird; };
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2021-01-01 05:43:59 +01:00
|
|
|
description = "Prometheus exporter for the bird routing daemon";
|
|
|
|
homepage = "https://github.com/czerwonk/bird_exporter";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lukegb ];
|
|
|
|
};
|
|
|
|
}
|