Files
nixpkgs/pkgs/servers/monitoring/prometheus/dnsmasq-exporter.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
673 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
buildGoModule rec {
pname = "dnsmasq_exporter";
version = "0.2.0";
src = fetchFromGitHub {
owner = "google";
repo = "dnsmasq_exporter";
rev = "v${version}";
2023-09-21 22:23:40 +08:00
hash = "sha256-8r5q5imI+MxnU7+TFqdIc+JRX0zZY4pmUoAGlFqs8cQ=";
};
2023-09-21 22:23:40 +08:00
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";
license = licenses.asl20;
maintainers = with maintainers; [ willibutz globin ];
};
}