mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
26 lines
759 B
Nix
26 lines
759 B
Nix
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
|
|
|
buildGoModule rec {
|
|
pname = "modemmanager-exporter";
|
|
version = "0.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mdlayher";
|
|
repo = "modemmanager_exporter";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-wQATmTjYsm1J2DicPryoa/jVpbLjXz+1TTQUH5yGV6w=";
|
|
};
|
|
|
|
vendorHash = "sha256-wGCRpFnt9bxc5Ygg6H1kI9sXB4mVFBdLeaahAFtvNbg=";
|
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) modemmanager; };
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/mdlayher/modemmanager_exporter";
|
|
description = "Prometheus exporter for ModemManager and its devices";
|
|
mainProgram = "modemmanager_exporter";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ mdlayher ];
|
|
};
|
|
}
|