20 , 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-/D9b2rCCUhpDCUfSNAWR65+3EyUywzFdH1R17eSKRDo=";
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
67 bash # shebangs in share/ModemManager/fcc-unlock.available.d/
70 nativeInstallCheckInputs = [
72 python3.pkgs.dbus-python
73 python3.pkgs.pygobject3
77 "-Dudevdir=${placeholder "out"}/lib/udev"
78 "-Ddbus_policy_dir=${placeholder "out"}/share/dbus-1/system.d"
80 "--localstatedir=/var"
86 tools/test-modemmanager-service.py
89 # In Nixpkgs g-ir-scanner is patched to produce absolute paths, and
90 # that interferes with ModemManager's tests, causing them to try to
91 # load libraries from the install path, which doesn't usually exist
92 # when `make check' is run. So to work around that, we run it as an
93 # install check instead, when those paths will have been created.
94 doInstallCheck = true;
96 export G_TEST_DBUS_DAEMON="${dbus}/bin/dbus-daemon"
97 patchShebangs tools/tests/test-wrapper.sh
99 installCheckTarget = "check";
102 description = "WWAN modem manager, part of NetworkManager";
103 homepage = "https://www.freedesktop.org/wiki/Software/ModemManager/";
104 license = licenses.gpl2Plus;
105 maintainers = teams.freedesktop.members;
106 platforms = platforms.linux;