2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2020-07-16 18:36:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "modemmanager-exporter";
|
2022-11-25 13:08:50 +00:00
|
|
|
version = "0.2.0";
|
2020-07-16 18:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mdlayher";
|
|
|
|
repo = "modemmanager_exporter";
|
|
|
|
rev = "v${version}";
|
2022-11-25 13:08:50 +00:00
|
|
|
sha256 = "sha256-wQATmTjYsm1J2DicPryoa/jVpbLjXz+1TTQUH5yGV6w=";
|
2020-07-16 18:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-09-13 04:44:46 +00:00
|
|
|
vendorHash = "sha256-wGCRpFnt9bxc5Ygg6H1kI9sXB4mVFBdLeaahAFtvNbg=";
|
2020-08-04 00:26:27 +00:00
|
|
|
|
2020-07-16 18:36:52 +00:00
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) modemmanager; };
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-07-16 18:36:52 +00:00
|
|
|
homepage = "https://github.com/mdlayher/modemmanager_exporter";
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "Prometheus exporter for ModemManager and its devices";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "modemmanager_exporter";
|
2020-07-16 18:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mdlayher ];
|
|
|
|
};
|
|
|
|
}
|