diff options
Diffstat (limited to 'pkgs/servers/monitoring/prometheus/nut-exporter.nix')
-rw-r--r-- | pkgs/servers/monitoring/prometheus/nut-exporter.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/servers/monitoring/prometheus/nut-exporter.nix b/pkgs/servers/monitoring/prometheus/nut-exporter.nix new file mode 100644 index 0000000000000..9877d7639bdce --- /dev/null +++ b/pkgs/servers/monitoring/prometheus/nut-exporter.nix @@ -0,0 +1,22 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "nut-exporter"; + version = "2.4.2"; + + src = fetchFromGitHub { + owner = "DRuggeri"; + repo = "nut_exporter"; + rev = "v${version}"; + sha256 = "sha256-fymVx6FJGII2PmWXVfeCRTxfO+35bmyn/9iL0iPuBgo="; + }; + + vendorSha256 = "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 ]; + }; +} |