diff options
author | Peter Hoeg <peter@hoeg.com> | 2023-06-21 11:27:26 +0800 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2023-07-05 10:15:06 +0800 |
commit | 023b1df882979a413a3f7e2009424db30d51a0fe (patch) | |
tree | 8798283b9eeb49399715302bc9490aa9762b239f | |
parent | fe5a67a1d18a27d485ea26957b8a213c6155d407 (diff) |
baloo: patch to support btrfs better
-rw-r--r-- | pkgs/development/libraries/kde-frameworks/baloo.nix | 43 |
1 files changed, 34 insertions, 9 deletions
diff --git a/pkgs/development/libraries/kde-frameworks/baloo.nix b/pkgs/development/libraries/kde-frameworks/baloo.nix index 4b0ac0391936a..3543fef66337e 100644 --- a/pkgs/development/libraries/kde-frameworks/baloo.nix +++ b/pkgs/development/libraries/kde-frameworks/baloo.nix @@ -1,20 +1,45 @@ -{ - mkDerivation, lib, - extra-cmake-modules, - kauth, kconfig, kcoreaddons, kcrash, kdbusaddons, kfilemetadata, ki18n, - kidletime, kio, lmdb, qtbase, qtdeclarative, solid, +{ mkDerivation +, lib +, fetchpatch +, extra-cmake-modules +, kauth +, kconfig +, kcoreaddons +, kcrash +, kdbusaddons +, kfilemetadata +, ki18n +, kidletime +, kio +, lmdb +, qtbase +, qtdeclarative +, solid +, }: mkDerivation { pname = "baloo"; nativeBuildInputs = [ extra-cmake-modules ]; - buildInputs = [ - kauth kconfig kcrash kdbusaddons ki18n kio kidletime lmdb qtdeclarative - solid - ]; + buildInputs = [ kauth kconfig kcrash kdbusaddons ki18n kio kidletime lmdb qtdeclarative solid ]; outputs = [ "out" "dev" ]; propagatedBuildInputs = [ kcoreaddons kfilemetadata qtbase ]; + # baloo suffers from issues when running on btrfs as well as with certain LVM/dm-crypt setups + # where the device id will change on reboot causing baloo to reindex all the files and then having + # duplicate files. A patch has been proposed that addresses this, which has not been accepted yet. + # However, without this patch, people tend to disable baloo rather than dealing with the constant + # reindexing. + # + # https://bugs.kde.org/show_bug.cgi?id=402154 + patches = [ + (fetchpatch { + url = "https://bugsfiles.kde.org/attachment.cgi?id=159031"; + hash = "sha256-hCtNXUpRhIP94f7gpwTGWWh1h/7JRRJaRASIwHWQjnY="; + name = "use_fsid.patch"; + }) + ]; + # kde-baloo.service uses `ExecCondition=@KDE_INSTALL_FULL_BINDIR@/kde-systemd-start-condition ...` # which comes from the "plasma-workspace" derivation, but KDE_INSTALL_* all point at the "baloo" one # (`${lib.getBin pkgs.plasma-workspace}` would cause infinite recursion) |