nixpkgs/pkgs/servers/monitoring/prometheus/dnsmasq-exporter.nix
2020-03-21 06:27:00 -05:00

24 lines
661 B
Nix

{ stdenv, buildGoModule, fetchFromGitHub, Security }:
buildGoModule rec {
pname = "dnsmasq_exporter";
version = "0.2.0";
src = fetchFromGitHub {
owner = "google";
repo = "dnsmasq_exporter";
sha256 = "1i7imid981l0a9k8lqyr9igm3qkk92kid4xzadkwry4857k6mgpj";
rev = "v${version}";
};
modSha256 = "1ag1k0z35zkazaxj8hh2wxfj73xg63xdybfm1565il2vxs5986dh";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
meta = with stdenv.lib; {
inherit (src.meta) homepage;
description = "A dnsmasq exporter for Prometheus";
license = licenses.asl20;
maintainers = with maintainers; [ willibutz globin ma27 ];
};
}