From ddb143ae14a07231b159b86e4e3dd356de91d08f Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Wed, 15 Jan 2025 22:42:59 +0100 Subject: [PATCH] lomiri.lomiri-notifications: 1.3.0 -> 1.3.1 --- .../qml/lomiri-notifications/default.nix | 34 +++++++------------ 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/pkgs/desktops/lomiri/qml/lomiri-notifications/default.nix b/pkgs/desktops/lomiri/qml/lomiri-notifications/default.nix index 353eb1a30b86dd..61bf4d6db240ec 100644 --- a/pkgs/desktops/lomiri/qml/lomiri-notifications/default.nix +++ b/pkgs/desktops/lomiri/qml/lomiri-notifications/default.nix @@ -2,7 +2,6 @@ stdenv, lib, fetchFromGitLab, - fetchpatch, gitUpdater, cmake, dbus, @@ -15,35 +14,27 @@ stdenv.mkDerivation (finalAttrs: { pname = "lomiri-notifications"; - version = "1.3.0"; + version = "1.3.1"; src = fetchFromGitLab { owner = "ubports"; repo = "development/core/lomiri-notifications"; - rev = finalAttrs.version; - hash = "sha256-EGslfTgfADrmVGhNLG7HWqcDKhu52H/r41j7fxoliko="; + tag = finalAttrs.version; + hash = "sha256-d3fJiYGAYF5e6XPuZ26Lrjj8tUiquunMLDLs9PdAYcA="; }; - patches = [ - # Drop use of deprecated qt5_use_modules - # Remove when https://gitlab.com/ubports/development/core/lomiri-notifications/-/merge_requests/11 merged & in release - (fetchpatch { - url = "https://gitlab.com/OPNA2608/lomiri-notifications/-/commit/5d164d6d8d68efe1d14154eca4d0d736ce2a1265.patch"; - hash = "sha256-nUg0zUft1n4AlotOaZgDqWbiVDvWvMizdlClavwygoI="; - }) - ]; - postPatch = '' substituteInPlace CMakeLists.txt \ - --replace "\''${CMAKE_INSTALL_LIBDIR}/qt5/qml" "\''${CMAKE_INSTALL_PREFIX}/${qtbase.qtQmlPrefix}" + --replace-fail "\''${CMAKE_INSTALL_LIBDIR}/qt5/qml" "\''${CMAKE_INSTALL_PREFIX}/${qtbase.qtQmlPrefix}" # Need to replace prefix to not try to install into lomiri-api prefix substituteInPlace src/CMakeLists.txt \ - --replace '--variable=plugindir' '--define-variable=prefix=''${CMAKE_INSTALL_PREFIX} --variable=plugindir' + --replace-fail '--variable=plugindir' '--define-variable=prefix=''${CMAKE_INSTALL_PREFIX} --variable=plugindir' '' + lib.optionalString (!finalAttrs.finalPackage.doCheck) '' - sed -i CMakeLists.txt -e '/add_subdirectory(test)/d' + substituteInPlace CMakeLists.txt \ + --replace-fail 'add_subdirectory(test)' "" ''; strictDeps = true; @@ -71,7 +62,7 @@ stdenv.mkDerivation (finalAttrs: { cmakeFlags = [ # In case anything still depends on deprecated hints - "-DENABLE_UBUNTU_COMPAT=ON" + (lib.cmakeBool "ENABLE_UBUNTU_COMPAT" true) ]; doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; @@ -85,11 +76,12 @@ stdenv.mkDerivation (finalAttrs: { passthru.updateScript = gitUpdater { }; - meta = with lib; { + meta = { description = "Free Desktop Notification server QML implementation for Lomiri"; homepage = "https://gitlab.com/ubports/development/core/lomiri-notifications"; - license = licenses.gpl3Only; - maintainers = teams.lomiri.members; - platforms = platforms.linux; + changelog = "https://gitlab.com/ubports/development/core/lomiri-notifications/-/blob/${finalAttrs.version}/ChangeLog"; + license = lib.licenses.gpl3Only; + maintainers = lib.teams.lomiri.members; + platforms = lib.platforms.linux; }; })