diff --git a/pkgs/kde/plasma/kwin/default.nix b/pkgs/kde/plasma/kwin/default.nix index 55538a99fba5..2d4a2861240a 100644 --- a/pkgs/kde/plasma/kwin/default.nix +++ b/pkgs/kde/plasma/kwin/default.nix @@ -17,6 +17,7 @@ lcms2, pipewire, python3, + fetchpatch, }: mkKdeDerivation { pname = "kwin"; @@ -24,6 +25,13 @@ mkKdeDerivation { patches = [ ./0003-plugins-qpa-allow-using-nixos-wrapper.patch ./0001-NixOS-Unwrap-executable-name-for-.desktop-search.patch + + # backport crash fix with latest Mesa + # FIXME: remove in next update + (fetchpatch { + url = "https://invent.kde.org/plasma/kwin/-/commit/2d0613acd044544e79b034b1cbc248664edf2884.diff"; + hash = "sha256-dpflStJ01aChNYDO+dfI67LhLWoC3sovaAza1AIck1E="; + }) ]; postPatch = ''