depot/third_party/nixpkgs/pkgs/development/libraries/kde-frameworks/baloo.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

35 lines
967 B
Nix

{ mkDerivation
, lib
, 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 ];
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
'';
meta.platforms = lib.platforms.linux ++ lib.platforms.freebsd;
}