2023-07-15 17:15:38 +00:00
|
|
|
{ mkDerivation
|
|
|
|
, lib
|
|
|
|
, fetchpatch
|
|
|
|
, extra-cmake-modules
|
|
|
|
, kauth
|
|
|
|
, kconfig
|
|
|
|
, kcoreaddons
|
|
|
|
, kcrash
|
|
|
|
, kdbusaddons
|
|
|
|
, kfilemetadata
|
|
|
|
, ki18n
|
|
|
|
, kidletime
|
|
|
|
, kio
|
|
|
|
, lmdb
|
|
|
|
, qtbase
|
|
|
|
, qtdeclarative
|
|
|
|
, solid
|
|
|
|
,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation {
|
2022-04-15 01:41:22 +00:00
|
|
|
pname = "baloo";
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules ];
|
2023-07-15 17:15:38 +00:00
|
|
|
buildInputs = [ kauth kconfig kcrash kdbusaddons ki18n kio kidletime lmdb qtdeclarative solid ];
|
2021-12-06 16:07:01 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ kcoreaddons kfilemetadata qtbase ];
|
2022-07-14 12:49:19 +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
|
|
|
|
'';
|
2023-04-29 16:46:19 +00:00
|
|
|
meta.platforms = lib.platforms.linux ++ lib.platforms.freebsd;
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|