Merge pull request #179062 from klemensn/baloo-unbreak-service-startup

plasma5Package.baloo: Unbreak kde-baloo.service startup
This commit is contained in:
Thomas Tuegel 2022-07-05 13:29:06 -05:00 committed by GitHub
commit 28560923f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
'';
}