2017-05-22 18:49:07 +00:00
|
|
|
{
|
2021-04-03 10:58:22 +00:00
|
|
|
mkDerivation,
|
2017-05-22 18:49:07 +00:00
|
|
|
extra-cmake-modules,
|
|
|
|
kauth, kconfig, kcoreaddons, kcrash, kdbusaddons, kfilemetadata, ki18n,
|
|
|
|
kidletime, kio, lmdb, qtbase, qtdeclarative, solid,
|
2016-04-21 15:32:21 +00:00
|
|
|
}:
|
|
|
|
|
2017-05-15 17:05:35 +00:00
|
|
|
mkDerivation {
|
2022-02-23 17:28:27 +00:00
|
|
|
pname = "baloo";
|
2017-02-26 12:49:15 +00:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules ];
|
2017-05-22 18:49:07 +00:00
|
|
|
buildInputs = [
|
|
|
|
kauth kconfig kcrash kdbusaddons ki18n kio kidletime lmdb qtdeclarative
|
|
|
|
solid
|
2016-04-21 15:32:21 +00:00
|
|
|
];
|
2021-11-10 00:03:32 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
2017-05-22 18:49:07 +00:00
|
|
|
propagatedBuildInputs = [ kcoreaddons kfilemetadata qtbase ];
|
2022-06-25 18:58:18 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
'';
|
2016-04-21 15:32:21 +00:00
|
|
|
}
|