Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / monitoring / prometheus / modemmanager-exporter.nix
blob6975f25704355252d6f0c61b9ca17aa3530c0fdb
1 { lib, buildGoModule, fetchFromGitHub, nixosTests }:
3 buildGoModule rec {
4   pname = "modemmanager-exporter";
5   version = "0.2.0";
7   src = fetchFromGitHub {
8     owner = "mdlayher";
9     repo = "modemmanager_exporter";
10     rev = "v${version}";
11     sha256 = "sha256-wQATmTjYsm1J2DicPryoa/jVpbLjXz+1TTQUH5yGV6w=";
12   };
14   vendorHash = "sha256-wGCRpFnt9bxc5Ygg6H1kI9sXB4mVFBdLeaahAFtvNbg=";
16   passthru.tests = { inherit (nixosTests.prometheus-exporters) modemmanager; };
18   meta = with lib; {
19     homepage = "https://github.com/mdlayher/modemmanager_exporter";
20     description = "Prometheus exporter for ModemManager and its devices";
21     mainProgram = "modemmanager_exporter";
22     license = licenses.mit;
23     maintainers = with maintainers; [ mdlayher ];
24   };