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