summary refs log tree commit diff
path: root/pkgs/servers/monitoring/prometheus/modemmanager-exporter.nix
blob: e6178dd52a35eb3e913b9d8e6bf1568627a2a49e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:

buildGoModule rec {
  pname = "modemmanager-exporter";
  version = "0.1.0";

  src = fetchFromGitHub {
    owner = "mdlayher";
    repo = "modemmanager_exporter";
    rev = "v${version}";
    sha256 = "0d8z7qzk5j5jj0ixkwpi8dw9kki78mxrajdlzzcj2rcgbnwair91";
  };

  vendorSha256 = "0f6v97cvzdz7wygswpm87wf8r169x5rw28908vqhmqk644hli4zy";

  doCheck = false;

  passthru.tests = { inherit (nixosTests.prometheus-exporters) modemmanager; };

  meta = with lib; {
    homepage = "https://github.com/mdlayher/modemmanager_exporter";
    description = "Prometheus exporter for ModemManager and its devices";
    license = licenses.mit;
    maintainers = with maintainers; [ mdlayher ];
  };
}