From 66d6701fc96a8c58df47626212f1abd088f567b4 Mon Sep 17 00:00:00 2001 From: OTABI Tomoya Date: Sat, 8 Apr 2023 07:17:15 +0900 Subject: [PATCH] fcitx5-mozc: wrapQtApp for mozc_tool (#224077) --- pkgs/tools/inputmethods/fcitx5/fcitx5-mozc.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/tools/inputmethods/fcitx5/fcitx5-mozc.nix b/pkgs/tools/inputmethods/fcitx5/fcitx5-mozc.nix index ac85bb2c40e9..92a0474ef199 100644 --- a/pkgs/tools/inputmethods/fcitx5/fcitx5-mozc.nix +++ b/pkgs/tools/inputmethods/fcitx5/fcitx5-mozc.nix @@ -84,13 +84,19 @@ in clangStdenv.mkDerivation rec { ''; buildPhase = '' + runHook preBuild + python build_mozc.py build -c Release \ server/server.gyp:mozc_server \ gui/gui.gyp:mozc_tool \ unix/fcitx5/fcitx5.gyp:fcitx5-mozc + + runHook postBuild ''; installPhase = '' + runHook preInstall + export PREFIX=$out export _bldtype=Release ../scripts/install_server @@ -101,6 +107,12 @@ in clangStdenv.mkDerivation rec { install -d $out/share/fcitx5/inputmethod install -d $out/lib/fcitx5 ../scripts/install_fcitx5 + + runHook postInstall + ''; + + preFixup = '' + wrapQtApp $out/lib/mozc/mozc_tool ''; meta = with lib; {