2020-06-08 15:06:07 +01:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
2019-09-20 09:34:00 +01:00
|
|
|
|
2020-06-08 15:06:07 +01:00
|
|
|
buildGoModule rec {
|
2019-09-20 09:34:00 +01:00
|
|
|
pname = "apcupsd-exporter";
|
2020-06-08 15:06:07 +01:00
|
|
|
version = "0.2.0";
|
2019-09-20 09:34:00 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mdlayher";
|
|
|
|
repo = "apcupsd_exporter";
|
2020-06-08 15:06:07 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0gjj23qdjs7rqimq95rbfw43m4l6g73j840svxjlmpd1vzzz2v2q";
|
2019-09-20 09:34:00 +01:00
|
|
|
};
|
|
|
|
|
2020-06-08 15:06:07 +01:00
|
|
|
vendorSha256 = "09x8y8pmgfn897hvnk122ry460y12b8a7y5fafri5wn9vxab9r82";
|
2019-09-20 09:34:00 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Provides a Prometheus exporter for the apcupsd Network Information Server (NIS)";
|
|
|
|
homepage = "https://github.com/mdlayher/apcupsd_exporter";
|
|
|
|
license = licenses.mit;
|
2020-06-08 15:06:07 +01:00
|
|
|
maintainers = with maintainers; [ "1000101" mdlayher ];
|
2019-09-20 09:34:00 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|