2020-03-27 08:33:21 +01:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
2018-05-06 13:34:23 +02:00
|
|
|
|
2019-10-29 23:00:57 +01:00
|
|
|
buildGoModule rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "dnsmasq_exporter";
|
2019-10-29 23:00:57 +01:00
|
|
|
version = "0.2.0";
|
2018-05-06 13:34:23 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "dnsmasq_exporter";
|
2019-10-29 23:00:57 +01:00
|
|
|
sha256 = "1i7imid981l0a9k8lqyr9igm3qkk92kid4xzadkwry4857k6mgpj";
|
2019-01-07 16:59:27 +01:00
|
|
|
rev = "v${version}";
|
2018-05-06 13:34:23 +02:00
|
|
|
};
|
|
|
|
|
2019-10-29 23:00:57 +01:00
|
|
|
modSha256 = "1ag1k0z35zkazaxj8hh2wxfj73xg63xdybfm1565il2vxs5986dh";
|
2018-05-06 13:34:23 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "A dnsmasq exporter for Prometheus";
|
|
|
|
license = licenses.asl20;
|
2019-10-29 23:00:57 +01:00
|
|
|
maintainers = with maintainers; [ willibutz globin ma27 ];
|
2018-05-06 13:34:23 +02:00
|
|
|
};
|
|
|
|
}
|