Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / monitoring / prometheus / apcupsd-exporter.nix
blob1f6dd51d8989ad1c0aa53507828ca90792794aa0
1 { lib, buildGoModule, fetchFromGitHub, nixosTests }:
3 buildGoModule rec {
4   pname = "apcupsd-exporter";
5   version = "0.3.0";
7   src = fetchFromGitHub {
8     owner = "mdlayher";
9     repo = "apcupsd_exporter";
10     rev = "v${version}";
11     sha256 = "sha256-c0LsUqpJbmWQmbmSGdEy7Bbk20my6iWNLeqtU5BjYlw=";
12   };
14   vendorHash = "sha256-bvLwHLviIAGmxYY1O0wFDWAMginEUklicrbjIbbPuUw=";
16   passthru.tests = { inherit (nixosTests.prometheus-exporters) apcupsd; };
18   meta = with lib; {
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 ];
24   };