{ plasmaPackage, extra-cmake-modules, kdoctools, baloo , kactivities, kcmutils, kcrash, kdbusaddons, kdeclarative , kdelibs4support, kdesu, kdewebkit, kglobalaccel, kidletime , kjsembed, knewstuff, knotifyconfig, kpackage, krunner , ktexteditor, ktextwidgets, kwallet, kwayland, kwin, kxmlrpcclient , libdbusmenu, libkscreen, libSM, libXcursor, networkmanager-qt , pam, phonon, plasma-framework, qtquick1, qtscript, qtx11extras, wayland , libksysguard, bash, coreutils, gnused, gnugrep, socat, kconfig , kinit, kservice, qttools, dbus_tools, mkfontdir, xmessage, xprop , xrdb, xset, xsetroot, solid }: plasmaPackage { name = "plasma-workspace"; nativeBuildInputs = [ extra-cmake-modules kdoctools ]; buildInputs = [ kcmutils kcrash kdbusaddons kdesu kdewebkit kjsembed knewstuff knotifyconfig kpackage ktextwidgets kwallet kwayland kxmlrpcclient libdbusmenu libkscreen libSM libXcursor networkmanager-qt pam phonon qtquick1 qtscript qtx11extras solid wayland ]; propagatedBuildInputs = [ baloo kactivities kdeclarative kdelibs4support kglobalaccel kidletime krunner ktexteditor kwin libksysguard plasma-framework ]; patches = [ ./0001-startkde-NixOS-patches.patch ]; inherit bash coreutils gnused gnugrep socat; inherit kconfig kinit kservice qttools; inherit dbus_tools mkfontdir xmessage xprop xrdb xset xsetroot; postPatch = '' substituteAllInPlace startkde/startkde.cmake substituteInPlace startkde/kstartupconfig/kstartupconfig.cpp \ --replace kdostartupconfig5 $out/bin/kdostartupconfig5 ''; postInstall = '' wrapKDEProgram "$out/bin/ksmserver" wrapKDEProgram "$out/bin/plasmawindowed" wrapKDEProgram "$out/bin/kcminit_startup" wrapKDEProgram "$out/bin/ksplashqml" wrapKDEProgram "$out/bin/kcheckrunning" wrapKDEProgram "$out/bin/systemmonitor" wrapKDEProgram "$out/bin/kstartupconfig5" wrapKDEProgram "$out/bin/startplasmacompositor" wrapKDEProgram "$out/bin/kdostartupconfig5" wrapKDEProgram "$out/bin/klipper" wrapKDEProgram "$out/bin/kuiserver5" wrapKDEProgram "$out/bin/krunner" wrapKDEProgram "$out/bin/plasmashell" ''; }