41 ./0002-start_kdeinit-path.patch
42 ./0003-kdeinit-extra-libs.patch
43 ./0004-start_kdeinit-environ-hard-limit.patch
47 ''-DNIXPKGS_KF5_KIOCORE=\"${getLib kio}/lib/libKF5KIOCore.so.5\"''
48 ''-DNIXPKGS_KF5_PARTS=\"${getLib kparts}/lib/libKF5Parts.so.5\"''
50 ++ lib.optionals stdenv.hostPlatform.isLinux [
51 ''-DNIXPKGS_KF5_PLASMA=\"${getLib plasma-framework}/lib/libKF5Plasma.so.5\"''
53 setupHook = writeScript "setup-hook.sh" ''
54 kinitFixupOutputHook() {
55 if [ $prefix != ''${!outputBin} ] && [ -d $prefix/lib ]; then
56 mkdir -p ''${!outputBin}/lib
57 find $prefix/lib -maxdepth 1 -name 'libkdeinit5_*.so' -exec ln -s \{\} ''${!outputBin}/lib \;
58 rmdir --ignore-fail-on-non-empty ''${!outputBin}/lib
62 fixupOutputHooks+=(kinitFixupOutputHook)