1 { lib, buildGoModule, fetchFromGitHub, nixosTests }:
4 pname = "fritzbox-exporter";
5 version = "unstable-2021-04-13";
7 src = fetchFromGitHub {
8 rev = "fd36539bd7db191b3734e17934b5f1e78e4e9829";
10 repo = "fritzbox_exporter";
11 hash = "sha256-NtxgOGoFZjvNCn+alZF9Ngen4Z0nllR/NTgY5ixrL3E=";
14 vendorHash = "sha256-VhQAEVxRJjIzFP67LUKhfGxdUbTQB7UCK8/JKwpoy0w=";
16 subPackages = [ "cmd/exporter" ];
18 passthru.tests = { inherit (nixosTests.prometheus-exporters) fritzbox; };
21 description = "Prometheus Exporter for FRITZ!Box (TR64 and UPnP)";
22 mainProgram = "exporter";
23 homepage = "https://github.com/mxschmitt/fritzbox_exporter";
24 license = licenses.asl20;
25 maintainers = with maintainers; [ bachp flokli sbruder ];