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