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