mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
26 lines
770 B
Nix
26 lines
770 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=";
|
|
};
|
|
|
|
vendorHash = "sha256-bvLwHLviIAGmxYY1O0wFDWAMginEUklicrbjIbbPuUw=";
|
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) apcupsd; };
|
|
|
|
meta = with lib; {
|
|
description = "Provides a Prometheus exporter for the apcupsd Network Information Server (NIS)";
|
|
mainProgram = "apcupsd_exporter";
|
|
homepage = "https://github.com/mdlayher/apcupsd_exporter";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ _1000101 mdlayher ];
|
|
};
|
|
}
|