···11{ lib
22, stdenv
33, fetchFromGitLab
44+, fetchpatch
45, glib
56, udev
67, libgudev
···3839 # Since /etc is the domain of NixOS, not Nix, we cannot install files there.
3940 # But these are just placeholders so we do not need to install them at all.
4041 ./no-dummy-dirs-in-sysconfdir.patch
4242+4343+ (fetchpatch {
4444+ name = "GI_TYPELIB_PATH.patch";
4545+ url = "https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/commit/daa829287894273879799a383ed4dc373c6111b0.patch";
4646+ hash = "sha256-tPQokiZO2SpTlX8xMlkWjP1AIXgoLHW3rJwnmG33z/k=";
4747+ })
4148 ];
42494350 strictDeps = true;
···8996 # In Nixpkgs g-ir-scanner is patched to produce absolute paths, and
9097 # that interferes with ModemManager's tests, causing them to try to
9198 # load libraries from the install path, which doesn't usually exist
9292- # when `make check' is run. So to work around that, we run it as an
9999+ # when `meson test' is run. So to work around that, we run it as an
93100 # install check instead, when those paths will have been created.
94101 doInstallCheck = true;
9595- preInstallCheck = ''
102102+ installCheckPhase = ''
103103+ runHook preInstallCheck
96104 export G_TEST_DBUS_DAEMON="${dbus}/bin/dbus-daemon"
97105 patchShebangs tools/tests/test-wrapper.sh
106106+ mesonCheckPhase
107107+ runHook postInstallCheck
98108 '';
9999- installCheckTarget = "check";
100109101110 meta = with lib; {
102111 description = "WWAN modem manager, part of NetworkManager";