mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 04:13:01 +00:00
c52b0593cf
The previous exporter was archived in 2022, the one from Let's encrypt is now recommended.
35 lines
833 B
Nix
35 lines
833 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, nixosTests
|
|
}:
|
|
|
|
let
|
|
version = "0.4.4";
|
|
in
|
|
buildGoModule {
|
|
pname = "unbound_exporter";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "letsencrypt";
|
|
repo = "unbound_exporter";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-0eo56z5b+hzKCY5OKg/9F7rjLyoSKPJoHLoXeMjCuFU=";
|
|
};
|
|
|
|
vendorHash = "sha256-4aWuf9UTPQseEwDJfWIcQW4uGMffRnWlHhiu0yMz4vk=";
|
|
|
|
passthru.tests = {
|
|
inherit (nixosTests.prometheus-exporters) unbound;
|
|
};
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/letsencrypt/unbound_exporter/releases/tag/v${version}";
|
|
description = "Prometheus exporter for Unbound DNS resolver";
|
|
homepage = "https://github.com/letsencrypt/unbound_exporter/tree/main";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|