nixpkgs/pkgs/servers/monitoring/prometheus/nut-exporter.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
582 B
Nix
Raw Normal View History

2022-11-24 12:48:45 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "nut-exporter";
version = "3.0.0";
2022-11-24 12:48:45 +00:00
src = fetchFromGitHub {
owner = "DRuggeri";
repo = "nut_exporter";
rev = "v${version}";
sha256 = "sha256-Y8G8nFhZ9Onxx40DJSTi0rnef8ulNTkj4bsPfqylOjQ=";
2022-11-24 12:48:45 +00:00
};
vendorHash = "sha256-DGCNYklINPPzC7kCdEUS7TqVvg2SnKFqe0qHs5RSmzY=";
2022-11-24 12:48:45 +00:00
meta = with lib; {
description = "Prometheus exporter for Network UPS Tools";
homepage = "https://github.com/DRuggeri/nut_exporter";
license = licenses.asl20;
maintainers = with maintainers; [ jhh ];
};
}