16 , gobject-introspection
20 stdenv.mkDerivation rec {
21 pname = "modemmanager";
25 url = "https://www.freedesktop.org/software/ModemManager/ModemManager-${version}.tar.xz";
26 sha256 = "sha256-tGTkkl2VWmyobdCGFudjsmrkbX/Tfb4oFnjjQGWx5DA=";
29 nativeBuildInputs = [ vala gobject-introspection gettext pkg-config ];
31 buildInputs = [ glib udev libgudev polkit ppp libmbim libqmi systemd ];
33 nativeInstallCheckInputs = [
35 python3.pkgs.dbus-python
36 python3.pkgs.pygobject3
41 "--with-udev-base-dir=${placeholder "out"}/lib/udev"
42 "--with-dbus-sys-dir=${placeholder "out"}/share/dbus-1/system.d"
43 "--with-systemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
45 "--localstatedir=/var"
46 "--with-systemd-suspend-resume"
47 "--with-systemd-journal"
51 patchShebangs tools/test-modemmanager-service.py
54 # In Nixpkgs g-ir-scanner is patched to produce absolute paths, and
55 # that interferes with ModemManager's tests, causing them to try to
56 # load libraries from the install path, which doesn't usually exist
57 # when `make check' is run. So to work around that, we run it as an
58 # install check instead, when those paths will have been created.
59 doInstallCheck = false;
62 export G_TEST_DBUS_DAEMON="${dbus}/bin/dbus-daemon"
63 patchShebangs tools/tests/test-wrapper.sh
65 installCheckTarget = "check";
67 enableParallelBuilding = true;
70 description = "WWAN modem manager, part of NetworkManager";
71 homepage = "https://www.freedesktop.org/wiki/Software/ModemManager/";
72 license = licenses.gpl2Plus;
73 maintainers = teams.freedesktop.members;
74 platforms = platforms.linux;