mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
0f89cfb395
Signed-off-by: Matt Layher <mdlayher@gmail.com>
25 lines
734 B
Nix
25 lines
734 B
Nix
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
|
|
|
buildGoModule rec {
|
|
pname = "apcupsd-exporter";
|
|
version = "0.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mdlayher";
|
|
repo = "apcupsd_exporter";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-c0LsUqpJbmWQmbmSGdEy7Bbk20my6iWNLeqtU5BjYlw=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-bvLwHLviIAGmxYY1O0wFDWAMginEUklicrbjIbbPuUw=";
|
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) apcupsd; };
|
|
|
|
meta = with 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; [ _1000101 mdlayher ];
|
|
};
|
|
}
|