···1{ lib
2, stdenv
3, fetchFromGitLab
04, glib
5, udev
6, libgudev
···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
00000041 ];
4243 strictDeps = true;
···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;
95- preInstallCheck = ''
096 export G_TEST_DBUS_DAEMON="${dbus}/bin/dbus-daemon"
97 patchShebangs tools/tests/test-wrapper.sh
0098 '';
99- installCheckTarget = "check";
100101 meta = with lib; {
102 description = "WWAN modem manager, part of NetworkManager";
···1{ lib
2, stdenv
3, fetchFromGitLab
4+, fetchpatch
5, glib
6, udev
7, libgudev
···39 # Since /etc is the domain of NixOS, not Nix, we cannot install files there.
40 # But these are just placeholders so we do not need to install them at all.
41 ./no-dummy-dirs-in-sysconfdir.patch
42+43+ (fetchpatch {
44+ name = "GI_TYPELIB_PATH.patch";
45+ url = "https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/commit/daa829287894273879799a383ed4dc373c6111b0.patch";
46+ hash = "sha256-tPQokiZO2SpTlX8xMlkWjP1AIXgoLHW3rJwnmG33z/k=";
47+ })
48 ];
4950 strictDeps = true;
···96 # In Nixpkgs g-ir-scanner is patched to produce absolute paths, and
97 # that interferes with ModemManager's tests, causing them to try to
98 # load libraries from the install path, which doesn't usually exist
99+ # when `meson test' is run. So to work around that, we run it as an
100 # install check instead, when those paths will have been created.
101 doInstallCheck = true;
102+ installCheckPhase = ''
103+ runHook preInstallCheck
104 export G_TEST_DBUS_DAEMON="${dbus}/bin/dbus-daemon"
105 patchShebangs tools/tests/test-wrapper.sh
106+ mesonCheckPhase
107+ runHook postInstallCheck
108 '';
0109110 meta = with lib; {
111 description = "WWAN modem manager, part of NetworkManager";