1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 19:45:54 +00:00
nixpkgs/pkgs/servers/monitoring/prometheus/unifi-exporter/default.nix
Vladimír Čunát 2e6bf42a22
Merge branch 'master' into staging-next
There ver very many conflicts, basically all due to
name -> pname+version.  Fortunately, almost everything was auto-resolved
by kdiff3, and for now I just fixed up a couple evaluation problems,
as verified by the tarball job.  There might be some fallback to these
conflicts, but I believe it should be minimal.

Hydra nixpkgs: ?compare=1538299
2019-08-24 08:55:37 +02:00

25 lines
722 B
Nix

{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "unifi-exporter";
version = "0.4.0+git1";
rev = "9a4e69fdea91dd0033bda4842998d751b40a6130";
goPackagePath = "github.com/mdlayher/unifi_exporter";
src= fetchFromGitHub {
inherit rev;
owner = "mdlayher";
repo = "unifi_exporter";
sha256 = "08zqvwvdqnc301f8jfh7bdvc138szw6xszx884b2v8w2x38w3rmn";
};
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 globin ];
platforms = platforms.unix;
};
}