2018-05-06 11:34:23 +00:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "dnsmasq_exporter";
|
2019-01-07 15:59:27 +00:00
|
|
|
version = "0.1.0";
|
2018-05-06 11:34:23 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/google/dnsmasq_exporter";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "dnsmasq_exporter";
|
2019-01-07 15:59:27 +00:00
|
|
|
sha256 = "0pl4jkp0kssplv32wbg8yk06x9c2hidilpix32hdvk287l3ys201";
|
|
|
|
rev = "v${version}";
|
2018-05-06 11:34:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
goDeps = ./dnsmasq-exporter-deps.nix;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "A dnsmasq exporter for Prometheus";
|
|
|
|
license = licenses.asl20;
|
2019-08-20 17:36:05 +00:00
|
|
|
maintainers = with maintainers; [ willibutz globin ];
|
2018-05-06 11:34:23 +00:00
|
|
|
};
|
|
|
|
}
|