From 1ca5ef251d0e3945e4f092cb1d06cd026ee3d9c0 Mon Sep 17 00:00:00 2001 From: K900 Date: Mon, 4 May 2026 19:39:49 +0300 Subject: [PATCH] qt6.qtbase: backport crash fix for when freetype rendering fails Recommended by KDE upstream. --- pkgs/development/libraries/qt-6/modules/qtbase/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/libraries/qt-6/modules/qtbase/default.nix b/pkgs/development/libraries/qt-6/modules/qtbase/default.nix index d195d42a6d56..7a44a498fe99 100644 --- a/pkgs/development/libraries/qt-6/modules/qtbase/default.nix +++ b/pkgs/development/libraries/qt-6/modules/qtbase/default.nix @@ -88,6 +88,7 @@ wayland-scanner, # options qttranslations ? null, + fetchpatch, }: let @@ -244,6 +245,12 @@ stdenv.mkDerivation { ./qmlimportscanner-import-path.patch # don't pass qtbase's QML directory to qmlimportscanner if it's empty ./skip-missing-qml-directory.patch + + # backport crash fix + (fetchpatch { + url = "https://github.com/qt/qtbase/commit/1466f88633b2c29a6159a0c2eacd0c0d6601aa5e.diff"; + hash = "sha256-ubDAXF47SYagRAJ5SYyBxXl2PiHjAZo3xlYPDz1jRYM="; + }) ]; postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''