@@ -206,24 +206,17 @@ let
206206 };
207207
208208 plasma-workspace = extendDerivation super.plasma-workspace {
209− patches = [
210− (scope.substituteAll {
211− src = ./plasma-workspace/0001-startkde-NixOS-patches.patch;
212− inherit (scope) bash gnused gnugrep socat;
213− inherit (scope) kconfig kinit kservice;
214− inherit (scope.xorg) mkfontdir xmessage xprop xrdb xset xsetroot;
215− qt5tools = scope.qt5tools;
216− dbus_tools = scope.dbus.tools;
217− })
218− ];
209+ patches = [ ./plasma-workspace/0001-startkde-NixOS-patches.patch ];
219210 buildInputs = with scope.xlibs; [ libSM libXcursor scope.pam ];
211+
212+ inherit (scope) bash gnused gnugrep socat;
213+ inherit (scope) kconfig kinit kservice qt5tools;
214+ inherit (scope.xorg) mkfontdir xmessage xprop xrdb xset xsetroot;
215+ dbus_tools = scope.dbus.tools;
220216 postPatch = ''
221217 substituteInPlace startkde/kstartupconfig/kstartupconfig.cpp \
222218 --replace kdostartupconfig5 $out/bin/kdostartupconfig5
223− '';
224− preConfigure = ''
225− substituteInPlace startkde/startkde.cmake \
226− --subst-var-by plasmaWorkspace "$out"
219+ substituteAllInPlace startkde/startkde.cmake
227220 '';
228221 };
229222