2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2018-05-06 11:34:23 +00:00
|
|
|
|
2019-10-29 22:00:57 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "dnsmasq_exporter";
|
2019-10-29 22:00:57 +00:00
|
|
|
version = "0.2.0";
|
2018-05-06 11:34:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "dnsmasq_exporter";
|
2019-10-29 22:00:57 +00:00
|
|
|
sha256 = "1i7imid981l0a9k8lqyr9igm3qkk92kid4xzadkwry4857k6mgpj";
|
2019-01-07 15:59:27 +00:00
|
|
|
rev = "v${version}";
|
2018-05-06 11:34:23 +00:00
|
|
|
};
|
|
|
|
|
2020-05-01 01:59:00 +00:00
|
|
|
vendorSha256 = "1dqpa180pbdi2gcmp991d4cry560mx5rm5l9x065s9n9gnd38hvl";
|
2018-05-06 11:34:23 +00:00
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-06-18 10:48:40 +00:00
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) dnsmasq; };
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-05-06 11:34:23 +00:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "A dnsmasq exporter for Prometheus";
|
|
|
|
license = licenses.asl20;
|
2019-10-29 22:00:57 +00:00
|
|
|
maintainers = with maintainers; [ willibutz globin ma27 ];
|
2018-05-06 11:34:23 +00:00
|
|
|
};
|
2020-06-18 10:48:40 +00:00
|
|
|
}
|