2017-03-07 22:47:05 +00:00
|
|
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "unifi-exporter-${version}";
|
2017-08-23 19:24:09 +01:00
|
|
|
version = "0.4.0+git1";
|
|
|
|
rev = "9a4e69fdea91dd0033bda4842998d751b40a6130";
|
2017-03-07 22:47:05 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/mdlayher/unifi_exporter";
|
|
|
|
|
|
|
|
src= fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "mdlayher";
|
|
|
|
repo = "unifi_exporter";
|
2017-08-23 19:24:09 +01:00
|
|
|
sha256 = "08zqvwvdqnc301f8jfh7bdvc138szw6xszx884b2v8w2x38w3rmn";
|
2017-03-07 22:47:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Prometheus exporter that exposes metrics from a Ubiquiti UniFi Controller and UniFi devices";
|
|
|
|
homepage = https://github.com/mdlayher/unifi_exporter;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ bachp ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|