17 gobject-introspection,
21 stdenv.mkDerivation rec {
22 pname = "modemmanager";
26 url = "https://www.freedesktop.org/software/ModemManager/ModemManager-${version}.tar.xz";
27 sha256 = "sha256-tGTkkl2VWmyobdCGFudjsmrkbX/Tfb4oFnjjQGWx5DA=";
48 nativeInstallCheckInputs = [
50 python3.pkgs.dbus-python
51 python3.pkgs.pygobject3
56 "--with-udev-base-dir=${placeholder "out"}/lib/udev"
57 "--with-dbus-sys-dir=${placeholder "out"}/share/dbus-1/system.d"
58 "--with-systemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
60 "--localstatedir=/var"
61 "--with-systemd-suspend-resume"
62 "--with-systemd-journal"
66 patchShebangs tools/test-modemmanager-service.py
69 # In Nixpkgs g-ir-scanner is patched to produce absolute paths, and
70 # that interferes with ModemManager's tests, causing them to try to
71 # load libraries from the install path, which doesn't usually exist
72 # when `make check' is run. So to work around that, we run it as an
73 # install check instead, when those paths will have been created.
74 doInstallCheck = false;
77 export G_TEST_DBUS_DAEMON="${dbus}/bin/dbus-daemon"
78 patchShebangs tools/tests/test-wrapper.sh
80 installCheckTarget = "check";
82 enableParallelBuilding = true;
85 description = "WWAN modem manager, part of NetworkManager";
86 homepage = "https://www.freedesktop.org/wiki/Software/ModemManager/";
87 license = licenses.gpl2Plus;
88 maintainers = teams.freedesktop.members;
89 platforms = platforms.linux;