about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/monitoring/prometheus/modemmanager-exporter.nix
blob: 271be41aee9765736e871f665715fd3056cb57f7 (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
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:

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

  src = fetchFromGitHub {
    owner = "mdlayher";
    repo = "modemmanager_exporter";
    rev = "v${version}";
    sha256 = "sha256-wQATmTjYsm1J2DicPryoa/jVpbLjXz+1TTQUH5yGV6w=";
  };

  vendorHash = "sha256-wGCRpFnt9bxc5Ygg6H1kI9sXB4mVFBdLeaahAFtvNbg=";

  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 ];
  };
}