Skip to content

Commit

Permalink
lomiri.mediascanner2: Apply patch for desktop-independance
Browse files Browse the repository at this point in the history
  • Loading branch information
OPNA2608 committed Jan 24, 2025
1 parent 4717b0e commit 8f661eb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkgs/desktops/lomiri/services/mediascanner2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
stdenv,
lib,
fetchFromGitLab,
fetchpatch,
gitUpdater,
nixosTests,
testers,
Expand Down Expand Up @@ -45,6 +46,14 @@ stdenv.mkDerivation (finalAttrs: {
"dev"
];

patches = [
(fetchpatch {
name = "0001-mediascanner2-scannerdaemon-Drop-desktop-and-MEDIASCANNER_RUN-check.patch";
url = "https://gitlab.com/ubports/development/core/mediascanner2/-/commit/1e65b32e32a0536b9e2f283ba563fa78b6ef6d61.patch";
hash = "sha256-Xhm5+/E/pP+mn+4enqdsor1oRqfYTzabg1ODVfIhra4=";
})
];

postPatch = ''
substituteInPlace src/qml/MediaScanner.*/CMakeLists.txt \
--replace-fail "\''${CMAKE_INSTALL_LIBDIR}/qt5/qml" "\''${CMAKE_INSTALL_PREFIX}/${qtbase.qtQmlPrefix}"
Expand Down

0 comments on commit 8f661eb

Please sign in to comment.