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