1 { lib, buildGoModule, fetchFromGitHub, nixosTests }:
4 pname = "apcupsd-exporter";
7 src = fetchFromGitHub {
9 repo = "apcupsd_exporter";
11 sha256 = "sha256-c0LsUqpJbmWQmbmSGdEy7Bbk20my6iWNLeqtU5BjYlw=";
14 vendorHash = "sha256-bvLwHLviIAGmxYY1O0wFDWAMginEUklicrbjIbbPuUw=";
16 passthru.tests = { inherit (nixosTests.prometheus-exporters) apcupsd; };
19 description = "Provides a Prometheus exporter for the apcupsd Network Information Server (NIS)";
20 mainProgram = "apcupsd_exporter";
21 homepage = "https://github.com/mdlayher/apcupsd_exporter";
22 license = licenses.mit;
23 maintainers = with maintainers; [ _1000101 mdlayher ];