mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
23 lines
582 B
Nix
23 lines
582 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";
|
|
homepage = "https://github.com/DRuggeri/nut_exporter";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ jhh ];
|
|
};
|
|
}
|