mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 00:04:11 +00:00
703c75f4a9
Signed-off-by: Matt Layher <mdlayher@gmail.com>
25 lines
731 B
Nix
25 lines
731 B
Nix
{ stdenv, buildGoModule, fetchFromGitHub, nixosTests }:
|
|
|
|
buildGoModule rec {
|
|
pname = "modemmanager-exporter";
|
|
version = "0.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mdlayher";
|
|
repo = "modemmanager_exporter";
|
|
rev = "v${version}";
|
|
sha256 = "0d8z7qzk5j5jj0ixkwpi8dw9kki78mxrajdlzzcj2rcgbnwair91";
|
|
};
|
|
|
|
vendorSha256 = "0f6v97cvzdz7wygswpm87wf8r169x5rw28908vqhmqk644hli4zy";
|
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) modemmanager; };
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://github.com/mdlayher/modemmanager_exporter";
|
|
description = "Prometheus exporter for ModemManager and its devices.";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ mdlayher ];
|
|
};
|
|
}
|