kdePackages.fcitx5-qt: fix build for Qt 6.10

This commit is contained in:
Guanran Wang
2025-10-22 13:01:18 +08:00
parent b619339061
commit b208b07fd0
@@ -10,6 +10,7 @@
qtwayland,
wrapQtAppsHook,
wayland,
fetchpatch2,
}:
let
majorVersion = lib.versions.major qtbase.version;
@@ -25,6 +26,22 @@ stdenv.mkDerivation rec {
hash = "sha256-JhmaAAJ1fevCPItVnneUCAalnDDaCjjkAl9QRhSkBk4=";
};
patches = [
# TODO: remove on next release
(fetchpatch2 {
url = "https://github.com/fcitx/fcitx5-qt/commit/46a07a85d191fd77a1efc39c8ed43d0cd87788d2.patch?full_index=1";
hash = "sha256-qv8Rj6YoFdMQLOB2R9LGgwCHKdhEji0Sg67W37jSIac=";
})
(fetchpatch2 {
url = "https://github.com/fcitx/fcitx5-qt/commit/6ac4fdd8e90ff9c25a5219e15e83740fa38c9c71.patch?full_index=1";
hash = "sha256-x0OdlIVmwVuq2TfBlgmfwaQszXLxwRFVf+gEU224uVA=";
})
(fetchpatch2 {
url = "https://github.com/fcitx/fcitx5-qt/commit/1d07f7e8d6a7ae8651eda658f87ab0c9df08bef4.patch?full_index=1";
hash = "sha256-22tKD7sbsTJcNqur9/Uf+XAvMvA7tzNQ9hUCMm+E+E0=";
})
];
postPatch = ''
substituteInPlace qt${majorVersion}/platforminputcontext/CMakeLists.txt \
--replace \$"{CMAKE_INSTALL_QT${majorVersion}PLUGINDIR}" $out/${qtbase.qtPluginPrefix}