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