mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-07 14:00:59 +03:00
27 lines
714 B
Nix
27 lines
714 B
Nix
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
name = "unifi-exporter-${version}";
|
|
version = "0.4.0";
|
|
rev = version;
|
|
|
|
goPackagePath = "github.com/mdlayher/unifi_exporter";
|
|
|
|
src= fetchFromGitHub {
|
|
inherit rev;
|
|
owner = "mdlayher";
|
|
repo = "unifi_exporter";
|
|
sha256 = "0mbav3dkrwrgzzl80q590467nbq5j61v5v7mpsbhcn2p7ak0swx4";
|
|
};
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
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;
|
|
};
|
|
}
|