ch9344: 2.0 -> 0-unstable-2024-11-15 (#354536)
[NixPkgs.git] / pkgs / servers / monitoring / prometheus / modemmanager-exporter.nix
blobe6b2afa7500a47cc4a997e2ffed6caf70f4df579
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5   nixosTests,
6 }:
8 buildGoModule rec {
9   pname = "modemmanager-exporter";
10   version = "0.2.0";
12   src = fetchFromGitHub {
13     owner = "mdlayher";
14     repo = "modemmanager_exporter";
15     rev = "v${version}";
16     sha256 = "sha256-wQATmTjYsm1J2DicPryoa/jVpbLjXz+1TTQUH5yGV6w=";
17   };
19   vendorHash = "sha256-wGCRpFnt9bxc5Ygg6H1kI9sXB4mVFBdLeaahAFtvNbg=";
21   passthru.tests = { inherit (nixosTests.prometheus-exporters) modemmanager; };
23   meta = with lib; {
24     homepage = "https://github.com/mdlayher/modemmanager_exporter";
25     description = "Prometheus exporter for ModemManager and its devices";
26     mainProgram = "modemmanager_exporter";
27     license = licenses.mit;
28     maintainers = with maintainers; [ mdlayher ];
29   };