2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub, nixosTests }:
|
2017-03-07 22:59:57 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "fritzbox-exporter";
|
2019-05-03 11:26:05 +02:00
|
|
|
version = "v1.0-32-g90fc0c5";
|
|
|
|
rev = "90fc0c572d3340803f7c2aafc4b097db7af1f871";
|
2017-03-07 22:59:57 +01:00
|
|
|
|
2019-05-03 11:26:05 +02:00
|
|
|
src = fetchFromGitHub {
|
2017-03-07 22:59:57 +01:00
|
|
|
inherit rev;
|
2019-05-03 11:26:05 +02:00
|
|
|
owner = "mxschmitt";
|
2017-03-07 22:59:57 +01:00
|
|
|
repo = "fritzbox_exporter";
|
2019-05-03 11:26:05 +02:00
|
|
|
sha256 = "08gcc60g187x1d14vh7n7s52zkqgj3fvg5v84i6dw55rmb6zzxri";
|
2017-03-07 22:59:57 +01:00
|
|
|
};
|
|
|
|
|
2019-05-03 11:26:05 +02:00
|
|
|
goPackagePath = "github.com/mxschmitt/fritzbox_exporter";
|
|
|
|
|
|
|
|
goDeps = ./fritzbox-exporter-deps.nix;
|
|
|
|
|
2020-06-18 12:48:40 +02:00
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) fritzbox; };
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-05-03 11:26:05 +02:00
|
|
|
description = "Prometheus Exporter for FRITZ!Box (TR64 and UPnP)";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/ndecker/fritzbox_exporter";
|
2017-03-07 22:59:57 +01:00
|
|
|
license = licenses.asl20;
|
2019-05-03 11:26:05 +02:00
|
|
|
maintainers = with maintainers; [ bachp flokli ];
|
2017-03-07 22:59:57 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|