21 gobject-introspection,
25 stdenv.mkDerivation rec {
26 pname = "modemmanager";
29 src = fetchFromGitLab {
30 domain = "gitlab.freedesktop.org";
31 owner = "mobile-broadband";
32 repo = "ModemManager";
34 hash = "sha256-OWP23EQ7a8rghhV7AC9yinCxRI0xwcntB5dl9XtgK6M=";
38 # Since /etc is the domain of NixOS, not Nix, we cannot install files there.
39 # But these are just placeholders so we do not need to install them at all.
40 ./no-dummy-dirs-in-sysconfdir.patch
66 nativeInstallCheckInputs = [
68 python3.pkgs.dbus-python
69 python3.pkgs.pygobject3
73 "-Dudevdir=${placeholder "out"}/lib/udev"
74 "-Ddbus_policy_dir=${placeholder "out"}/share/dbus-1/system.d"
76 "--localstatedir=/var"
82 tools/test-modemmanager-service.py
85 # In Nixpkgs g-ir-scanner is patched to produce absolute paths, and
86 # that interferes with ModemManager's tests, causing them to try to
87 # load libraries from the install path, which doesn't usually exist
88 # when `make check' is run. So to work around that, we run it as an
89 # install check instead, when those paths will have been created.
90 doInstallCheck = true;
92 export G_TEST_DBUS_DAEMON="${dbus}/bin/dbus-daemon"
93 patchShebangs tools/tests/test-wrapper.sh
95 installCheckTarget = "check";
98 description = "WWAN modem manager, part of NetworkManager";
99 homepage = "https://www.freedesktop.org/wiki/Software/ModemManager/";
100 license = licenses.gpl2Plus;
101 maintainers = teams.freedesktop.members;
102 platforms = platforms.linux;