nixpkgs/pkgs/servers/monitoring/prometheus/nut-exporter.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
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.
2024-03-19 03:14:51 +01:00

24 lines
616 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "nut-exporter";
version = "3.1.1";
src = fetchFromGitHub {
owner = "DRuggeri";
repo = "nut_exporter";
rev = "v${version}";
sha256 = "sha256-izD2Ks29/4/FBsZoH0raFzqb0DgPR8hXRYBZQEvET+s=";
};
vendorHash = "sha256-DGCNYklINPPzC7kCdEUS7TqVvg2SnKFqe0qHs5RSmzY=";
meta = with lib; {
description = "Prometheus exporter for Network UPS Tools";
mainProgram = "nut_exporter";
homepage = "https://github.com/DRuggeri/nut_exporter";
license = licenses.asl20;
maintainers = with maintainers; [ jhh ];
};
}