depot/pkgs/servers/monitoring/prometheus/unbound-exporter.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

35 lines
871 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, nixosTests
}:
let
version = "0.4.6";
in
buildGoModule {
pname = "unbound_exporter";
inherit version;
src = fetchFromGitHub {
owner = "letsencrypt";
repo = "unbound_exporter";
rev = "refs/tags/v${version}";
hash = "sha256-p2VSIQXTnNGgqUSvWQ4J3SbrnWGBO21ps4VCWOjioLM=";
};
vendorHash = "sha256-q3JqAGeEU5WZWTzdFE9hR2dAnsFjMM44JiYdodZrnhs=";
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";
mainProgram = "unbound_exporter";
homepage = "https://github.com/letsencrypt/unbound_exporter/tree/main";
license = licenses.asl20;
maintainers = with maintainers; [ hexa ];
};
}