2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub, nixosTests }:
|
2017-02-18 12:43:59 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "bind_exporter";
|
2021-01-15 07:07:56 +00:00
|
|
|
version = "20161221-${lib.strings.substring 0 7 rev}";
|
2017-02-18 12:43:59 +00:00
|
|
|
rev = "4e1717c7cd5f31c47d0c37274464cbaabdd462ba";
|
|
|
|
|
|
|
|
goPackagePath = "github.com/digitalocean/bind_exporter";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "digitalocean";
|
|
|
|
repo = "bind_exporter";
|
|
|
|
sha256 = "1nd6pc1z627w4x55vd42zfhlqxxjmfsa9lyn0g6qq19k4l85v1qm";
|
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|