15 stdenv.mkDerivation (finalAttrs: {
16 pname = "lomiri-notifications";
19 src = fetchFromGitLab {
21 repo = "development/core/lomiri-notifications";
22 rev = finalAttrs.version;
23 hash = "sha256-EGslfTgfADrmVGhNLG7HWqcDKhu52H/r41j7fxoliko=";
27 # Drop use of deprecated qt5_use_modules
28 # Remove when https://gitlab.com/ubports/development/core/lomiri-notifications/-/merge_requests/11 merged & in release
30 url = "https://gitlab.com/OPNA2608/lomiri-notifications/-/commit/5d164d6d8d68efe1d14154eca4d0d736ce2a1265.patch";
31 hash = "sha256-nUg0zUft1n4AlotOaZgDqWbiVDvWvMizdlClavwygoI=";
36 substituteInPlace CMakeLists.txt \
37 --replace "\''${CMAKE_INSTALL_LIBDIR}/qt5/qml" "\''${CMAKE_INSTALL_PREFIX}/${qtbase.qtQmlPrefix}"
39 # Need to replace prefix to not try to install into lomiri-api prefix
40 substituteInPlace src/CMakeLists.txt \
41 --replace '--variable=plugindir' '--define-variable=prefix=''${CMAKE_INSTALL_PREFIX} --variable=plugindir'
42 '' + lib.optionalString (!finalAttrs.finalPackage.doCheck) ''
43 sed -i CMakeLists.txt -e '/add_subdirectory(test)/d'
67 dontWrapQtApps = true;
70 # In case anything still depends on deprecated hints
71 "-DENABLE_UBUNTU_COMPAT=ON"
74 doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
77 enableParallelChecking = false;
80 export QT_PLUGIN_PATH=${lib.getBin qtbase}/${qtbase.qtPluginPrefix}
83 passthru.updateScript = gitUpdater { };
86 description = "Free Desktop Notification server QML implementation for Lomiri";
87 homepage = "https://gitlab.com/ubports/development/core/lomiri-notifications";
88 license = licenses.gpl3Only;
89 maintainers = teams.lomiri.members;
90 platforms = platforms.linux;