2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2020-07-16 19:36:52 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "modemmanager-exporter";
|
|
|
|
version = "0.1.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mdlayher";
|
|
|
|
repo = "modemmanager_exporter";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0d8z7qzk5j5jj0ixkwpi8dw9kki78mxrajdlzzcj2rcgbnwair91";
|
|
|
|
};
|
|
|
|
|
|
|
|
vendorSha256 = "0f6v97cvzdz7wygswpm87wf8r169x5rw28908vqhmqk644hli4zy";
|
|
|
|
|
2020-08-04 01:26:27 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-07-16 19:36:52 +01:00
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) modemmanager; };
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-07-16 19:36:52 +01:00
|
|
|
homepage = "https://github.com/mdlayher/modemmanager_exporter";
|
2020-10-11 06:55:05 +01:00
|
|
|
description = "Prometheus exporter for ModemManager and its devices";
|
2020-07-16 19:36:52 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mdlayher ];
|
|
|
|
};
|
|
|
|
}
|