diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/monitoring/prometheus/dnsmasq-exporter.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/monitoring/prometheus/dnsmasq-exporter.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/monitoring/prometheus/dnsmasq-exporter.nix b/nixpkgs/pkgs/servers/monitoring/prometheus/dnsmasq-exporter.nix new file mode 100644 index 000000000000..eb2297648b56 --- /dev/null +++ b/nixpkgs/pkgs/servers/monitoring/prometheus/dnsmasq-exporter.nix @@ -0,0 +1,27 @@ +{ lib, buildGoModule, fetchFromGitHub, nixosTests }: + +buildGoModule rec { + pname = "dnsmasq_exporter"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "google"; + repo = "dnsmasq_exporter"; + rev = "v${version}"; + hash = "sha256-8r5q5imI+MxnU7+TFqdIc+JRX0zZY4pmUoAGlFqs8cQ="; + }; + + vendorHash = "sha256-dEM0mn3JJl0M6ImWmkuvwBSfGWkhpVvZE7GtC1BQF7c="; + + doCheck = false; + + passthru.tests = { inherit (nixosTests.prometheus-exporters) dnsmasq; }; + + meta = with lib; { + inherit (src.meta) homepage; + description = "A dnsmasq exporter for Prometheus"; + mainProgram = "dnsmasq_exporter"; + license = licenses.asl20; + maintainers = with maintainers; [ willibutz globin ]; + }; +} |