diff --git a/pkgs/development/libraries/kde-frameworks/baloo.nix b/pkgs/development/libraries/kde-frameworks/baloo.nix index d608785027e8..73df056516e8 100644 --- a/pkgs/development/libraries/kde-frameworks/baloo.nix +++ b/pkgs/development/libraries/kde-frameworks/baloo.nix @@ -14,4 +14,12 @@ mkDerivation { ]; outputs = [ "out" "dev" ]; propagatedBuildInputs = [ kcoreaddons kfilemetadata qtbase ]; + + # 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) + postUnpack = '' + substituteInPlace "$sourceRoot"/src/file/kde-baloo.service.in \ + --replace @KDE_INSTALL_FULL_BINDIR@ /run/current-system/sw/bin + ''; }