2021-05-11 04:35:22 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2017-02-18 12:43:59 +00:00
|
|
|
|
2021-05-11 04:35:22 +01:00
|
|
|
buildGoModule rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "bind_exporter";
|
2021-05-11 04:35:22 +01:00
|
|
|
version = "0.4.0";
|
2017-02-18 12:43:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-05-11 04:35:22 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
owner = "prometheus-community";
|
2017-02-18 12:43:59 +00:00
|
|
|
repo = "bind_exporter";
|
2021-05-11 04:35:22 +01:00
|
|
|
sha256 = "152xi6kf1wzb7663ixv27hsdbf1x6s51fdp85zhghg1y700ln63v";
|
2017-02-18 12:43:59 +00:00
|
|
|
};
|
|
|
|
|
2021-05-11 04:35:22 +01:00
|
|
|
vendorSha256 = "172aqrckkhlyhpkanrcs66m13p5qp4fd2w8xv02j2kqq13klwm1a";
|
|
|
|
|
2020-06-18 11:48:40 +01:00
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) bind; };
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-02-18 12:43:59 +00:00
|
|
|
description = "Prometheus exporter for bind9 server";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/digitalocean/bind_exporter";
|
2017-02-18 12:43:59 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ rtreffer ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|