1 { lib, buildGoModule, fetchFromGitHub, nixosTests }:
4 pname = "dnsmasq_exporter";
5 version = "unstable-2024-05-06";
7 src = fetchFromGitHub {
9 repo = "dnsmasq_exporter";
10 rev = "03f84edc208fa88e31cf00533db42e7e0c9717ca";
11 hash = "sha256-YFQ4XO3vnj2Ka3D/LS5aG6WX+qOCVTlq5khDxLoQllo=";
14 vendorHash = "sha256-oD68TCNJKwjY3iwE/pUosMIMGOhsWj9cHC/+hq3xxI4=";
18 passthru.tests = { inherit (nixosTests.prometheus-exporters) dnsmasq; };
21 inherit (src.meta) homepage;
22 description = "Dnsmasq exporter for Prometheus";
23 mainProgram = "dnsmasq_exporter";
24 license = licenses.asl20;
25 maintainers = with maintainers; [ willibutz globin ];