nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "nut-exporter";
9 version = "3.2.3";
10
11 src = fetchFromGitHub {
12 owner = "DRuggeri";
13 repo = "nut_exporter";
14 rev = "v${version}";
15 sha256 = "sha256-tgYxkVen2aegX+py9goQIQtw1eNZJ7K8CqgaKOsDgxA=";
16 };
17
18 vendorHash = "sha256-cMZ4GSal03LIZi7ESr/sQx8zLHNepOTZGEEsdvsNhec=";
19
20 meta = {
21 description = "Prometheus exporter for Network UPS Tools";
22 mainProgram = "nut_exporter";
23 homepage = "https://github.com/DRuggeri/nut_exporter";
24 license = lib.licenses.asl20;
25 maintainers = with lib.maintainers; [ jhh ];
26 };
27}