about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/monitoring/prometheus/apcupsd-exporter.nix
blob: c1d7f79283022e67c877264a89ed6419da13ea8d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  pname = "apcupsd-exporter";
  version = "unstable-2019-03-14";

  goPackagePath = "github.com/mdlayher/apcupsd_exporter";

  goDeps = ./apcupsd-exporter_deps.nix;

  src = fetchFromGitHub {
    owner = "mdlayher";
    repo = "apcupsd_exporter";
    rev = "cbd49be";
    sha256 = "1h5z295m9bddch5bc8fppn02b31h370yns6026a1d4ygfy3w46y0";
  };

  doCheck = true;

  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;
    maintainers = with maintainers; [ maintainers."1000101" ];
    platforms = platforms.all;
  };
}