mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-04 03:53:56 +00:00
23 lines
582 B
Nix
23 lines
582 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "nut-exporter";
|
|
version = "2.5.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "DRuggeri";
|
|
repo = "nut_exporter";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-imO++i4bfxQnMNh+BOZRYvJAzqgehFIElpQX3NyQF+8=";
|
|
};
|
|
|
|
vendorHash = "sha256-ji8JlEYChPBakt5y6+zcm1l04VzZ0/fjfGFJ9p+1KHE=";
|
|
|
|
meta = with lib; {
|
|
description = "Prometheus exporter for Network UPS Tools";
|
|
homepage = "https://github.com/DRuggeri/nut_exporter";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ jhh ];
|
|
};
|
|
}
|