From 9509da46e79015088f7e5724f1c31b348ecdf179 Mon Sep 17 00:00:00 2001 From: Potato Hatsue <1793913507@qq.com> Date: Mon, 18 Jan 2021 00:52:53 +0800 Subject: [PATCH] fcitx5-qt: fix missing libfcitx5platforminputcontextplugin.so --- pkgs/tools/inputmethods/fcitx5/fcitx5-qt.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/tools/inputmethods/fcitx5/fcitx5-qt.nix b/pkgs/tools/inputmethods/fcitx5/fcitx5-qt.nix index e0499304889..ad4fd1fa617 100644 --- a/pkgs/tools/inputmethods/fcitx5/fcitx5-qt.nix +++ b/pkgs/tools/inputmethods/fcitx5/fcitx5-qt.nix @@ -7,6 +7,7 @@ , qtx11extras , libxcb , libXdmcp +, qtbase }: mkDerivation rec { @@ -20,8 +21,14 @@ mkDerivation rec { sha256 = "BVOumk2xj3vmwmm4KwiktQhWyTuUA2OFwYXNR6HgwyM="; }; + preConfigure = '' + substituteInPlace qt5/platforminputcontext/CMakeLists.txt \ + --replace \$"{CMAKE_INSTALL_QT5PLUGINDIR}" $out/${qtbase.qtPluginPrefix} + ''; + cmakeFlags = [ "-DENABLE_QT4=0" + "-DENABLE_QT6=0" ]; nativeBuildInputs = [ @@ -34,6 +41,7 @@ mkDerivation rec { qtx11extras libxcb libXdmcp + qtbase ]; meta = with lib; {