2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2017-03-07 23:47:05 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "unifi-exporter";
|
2017-08-23 20:24:09 +02:00
|
|
|
version = "0.4.0+git1";
|
|
|
|
rev = "9a4e69fdea91dd0033bda4842998d751b40a6130";
|
2017-03-07 23:47:05 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/mdlayher/unifi_exporter";
|
|
|
|
|
|
|
|
src= fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "mdlayher";
|
|
|
|
repo = "unifi_exporter";
|
2017-08-23 20:24:09 +02:00
|
|
|
sha256 = "08zqvwvdqnc301f8jfh7bdvc138szw6xszx884b2v8w2x38w3rmn";
|
2017-03-07 23:47:05 +01:00
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-03-07 23:47:05 +01:00
|
|
|
description = "Prometheus exporter that exposes metrics from a Ubiquiti UniFi Controller and UniFi devices";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/mdlayher/unifi_exporter";
|
2017-03-07 23:47:05 +01:00
|
|
|
license = licenses.mit;
|
2019-08-20 19:36:05 +02:00
|
|
|
maintainers = with maintainers; [ bachp globin ];
|
2017-03-07 23:47:05 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|