mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
36 lines
871 B
Nix
36 lines
871 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, nixosTests
|
|
}:
|
|
|
|
let
|
|
version = "0.4.5";
|
|
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 ];
|
|
};
|
|
}
|