Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / monitoring / prometheus / nut-exporter.nix
blobc9ec09a92172ab78fd7d6285015f0ef2773f61cc
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "nut-exporter";
5   version = "3.1.1";
7   src = fetchFromGitHub {
8     owner = "DRuggeri";
9     repo = "nut_exporter";
10     rev = "v${version}";
11     sha256 = "sha256-izD2Ks29/4/FBsZoH0raFzqb0DgPR8hXRYBZQEvET+s=";
12   };
14   vendorHash = "sha256-DGCNYklINPPzC7kCdEUS7TqVvg2SnKFqe0qHs5RSmzY=";
16   meta = with lib; {
17     description = "Prometheus exporter for Network UPS Tools";
18     mainProgram = "nut_exporter";
19     homepage = "https://github.com/DRuggeri/nut_exporter";
20     license = licenses.asl20;
21     maintainers = with maintainers; [ jhh ];
22   };