2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, glib, udev, libgudev, polkit, ppp, gettext, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, libmbim, libqmi, systemd, vala, gobject-introspection, dbus }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "modem-manager";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "1.14.12";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
package = "ModemManager";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.freedesktop.org/software/${package}/${package}-${version}.tar.xz";
|
2021-05-20 23:08:51 +00:00
|
|
|
sha256 = "sha256-0QqXEZndwl3N8VbFasCOkWEsCVOdVlIueu1G1G5IO7E=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ vala gobject-introspection gettext pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ glib udev libgudev polkit ppp libmbim libqmi systemd ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-polkit"
|
|
|
|
"--with-udev-base-dir=${placeholder "out"}/lib/udev"
|
|
|
|
"--with-dbus-sys-dir=${placeholder "out"}/share/dbus-1/system.d"
|
|
|
|
"--with-systemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--with-systemd-suspend-resume"
|
|
|
|
"--with-systemd-journal"
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export G_TEST_DBUS_DAEMON="${dbus.daemon}/bin/dbus-daemon"
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "WWAN modem manager, part of NetworkManager";
|
|
|
|
homepage = "https://www.freedesktop.org/wiki/Software/ModemManager/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|