@@ -1,5 +1,5 @@
11{
2− mkDerivation, lib,
2+ mkDerivation, lib, fetchpatch,
33 extra-cmake-modules, kdoctools,
44
55 boost, fontconfig, ibus, libXcursor, libXft, libcanberra_kde, libpulseaudio,
@@ -21,7 +21,8 @@ mkDerivation {
2121 nativeBuildInputs = [ extra-cmake-modules kdoctools ];
2222 buildInputs = [
2323 boost fontconfig ibus libcanberra_kde libpulseaudio libXcursor libXft xorgserver
24− libxkbfile phonon xf86inputevdev xf86inputsynaptics xinput xkeyboard_config
24+ libxkbfile phonon xf86inputlibinput xf86inputevdev xf86inputsynaptics xinput
25+ xkeyboard_config
2526
2627 accounts-qt qtdeclarative qtquickcontrols qtquickcontrols2 qtsvg qtx11extras
2728
@@ -35,10 +36,12 @@ mkDerivation {
3536 patches = [
3637 ./hwclock-path.patch
3738 ./tzdir.patch
39+ # https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/563
40+ (fetchpatch {
41+ url = "https://invent.kde.org/plasma/plasma-desktop/-/commit/8d9bf2032b8a2e5de75edf5713c42866f5b80649.patch";
42+ sha256 = "sha256-2jqqFjBljbhf7I+fTsIvuFs3Ic662KTKRnbcSm5Jing=";
43+ })
3844 ];
39− postPatch = ''
40− sed '1i#include <cmath>' -i kcms/touchpad/backends/x11/synapticstouchpad.cpp
41− '';
4245 CXXFLAGS = [
4346 ''-DNIXPKGS_HWCLOCK=\"${lib.getBin util-linux}/sbin/hwclock\"''
4447 ];