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