aboutsummaryrefslogtreecommitdiff
path: root/pkgs/tools/inputmethods
diff options
context:
space:
mode:
authorGabriel Ebner <gebner@gebner.org>2020-08-22 18:08:54 +0200
committerGabriel Ebner <gebner@gebner.org>2020-08-22 18:08:54 +0200
commitb360e99095a15759e7ac42852a924cc3cad25a6e (patch)
treeeaea194dfac979bf2a156a6ae5cbc483c8403213 /pkgs/tools/inputmethods
parent8309faafc3899b98d01dc627cb87ecba1dfa7243 (diff)
fcitx-engines.mozc: enable handwriting recognition
Diffstat (limited to 'pkgs/tools/inputmethods')
-rw-r--r--pkgs/tools/inputmethods/fcitx-engines/fcitx-mozc/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/inputmethods/fcitx-engines/fcitx-mozc/default.nix b/pkgs/tools/inputmethods/fcitx-engines/fcitx-mozc/default.nix
index 1261888a2205..69ff9c1fe53d 100644
--- a/pkgs/tools/inputmethods/fcitx-engines/fcitx-mozc/default.nix
+++ b/pkgs/tools/inputmethods/fcitx-engines/fcitx-mozc/default.nix
@@ -1,5 +1,5 @@
{ clangStdenv, fetchFromGitHub, fetchurl, fetchpatch, gyp, which, ninja,
- python, pkgconfig, protobuf, gtk2, zinnia, qt5, libxcb,
+ python, pkgconfig, protobuf, gtk2, zinnia, qt5, libxcb, tegaki-zinnia-japanese,
fcitx, gettext }:
let
japanese_usage_dictionary = fetchFromGitHub {
@@ -57,7 +57,7 @@ in clangStdenv.mkDerivation rec {
'';
configurePhase = ''
- export GYP_DEFINES="document_dir=$out/share/doc/mozc use_libzinnia=1 use_libprotobuf=1 use_fcitx5=0"
+ export GYP_DEFINES="document_dir=$out/share/doc/mozc use_libzinnia=1 use_libprotobuf=1 use_fcitx5=0 zinnia_model_file=${tegaki-zinnia-japanese}/share/tegaki/models/zinnia/handwriting-ja.model"
cd src && python build_mozc.py gyp --gypdir=${gyp}/bin --server_dir=$out/lib/mozc
'';