ibus-mozc: 2015-05-02 -> 2.17.2313.102

+61 -11
+38
pkgs/tools/inputmethods/ibus-engines/ibus-hangul/default.nix
··· 1 + { stdenv, gnome, fetchFromGitHub, ibus, libhangul, autoconf, automake, gettext, libtool, librsvg, 2 + intltool, pkgconfig, pythonPackages, makeWrapper, gtk3, python }: 3 + 4 + stdenv.mkDerivation rec { 5 + name = "ibus-hangul-${version}"; 6 + version = "1.5.0"; 7 + 8 + src = fetchFromGitHub { 9 + owner = "choehwanjin"; 10 + repo = "ibus-hangul"; 11 + rev = version; 12 + sha256 = "12l2spr32biqdbz01bzkamgq5gskbi6cd7ai343wqyy1ibjlkmp8"; 13 + }; 14 + 15 + buildInputs = [ ibus libhangul autoconf gettext automake libtool 16 + intltool pkgconfig python pythonPackages.pygobject3 gtk3 makeWrapper ]; 17 + 18 + preConfigure = '' 19 + autoreconf --verbose --force --install 20 + intltoolize --automake --force --copy 21 + ''; 22 + 23 + postInstall = '' 24 + wrapProgram $out/bin/ibus-setup-hangul \ 25 + --prefix PYTHONPATH : $PYTHONPATH \ 26 + --prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \ 27 + --prefix GDK_PIXBUF_MODULE_FILE : ${librsvg}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \ 28 + --prefix LD_LIBRARY_PATH : ${libhangul}/lib 29 + ''; 30 + 31 + meta = with stdenv.lib; { 32 + description = "Ibus Hangul engine."; 33 + homepage = https://github.com/choehwanjin/ibus-hangul; 34 + license = licenses.gpl2; 35 + platforms = platforms.linux; 36 + maintainers = with maintainers; [ ericsagnes ]; 37 + }; 38 + }
+20 -10
pkgs/tools/inputmethods/ibus-engines/ibus-mozc/default.nix
··· 7 7 sha256 = "0pyrpz9c8nxccwpgyr36w314mi8h132cis8ijvlqmmhqxwsi30hm"; 8 8 }; 9 9 in clangStdenv.mkDerivation rec { 10 - name = "mozc-${version}"; 11 - version = "2015-05-02"; 10 + name = "ibus-mozc-${version}"; 11 + version = "2.17.2313.102"; 12 12 13 13 meta = with clangStdenv.lib; { 14 14 description = "Japanese input method from Google"; 15 15 homepage = http://code.google.com/p/mozc/; 16 - license = licenses.bsd3; 16 + license = licenses.free; 17 17 platforms = platforms.linux; 18 - maintainers = [ maintainers.gebner ]; 18 + maintainers = with maintainers; [ gebner ericsagnes ]; 19 19 }; 20 20 21 21 nativeBuildInputs = [ gyp which ninja python pkgconfig ]; 22 22 buildInputs = [ protobuf ibus gtk zinnia qt4 libxcb ]; 23 23 24 24 src = fetchFromGitHub { 25 - owner = "google"; 26 - repo = "mozc"; 27 - rev = "d9783737ecfcb68c3d98d84e7052d716f4d0e0cb"; 28 - sha256 = "52a83658e2e4a7b38e31a4085682be24c9c5f4c51a01578598a30b9833827b72"; 25 + owner = "google"; 26 + repo = "mozc"; 27 + rev = "3306d3314499a54a4064b8b80bbc1bce3f6cfac4"; 28 + sha256 = "0l7mjlnbm6i1ipni8pg9ym5bjg3rzkaxi9xwmsz2lddv348sqii2"; 29 29 }; 30 + 30 31 postUnpack = '' 32 + rmdir $sourceRoot/src/third_party/japanese_usage_dictionary/ 31 33 ln -s ${japanese_usage_dictionary} $sourceRoot/src/third_party/japanese_usage_dictionary 32 34 ''; 33 35 34 36 configurePhase = '' 35 - export GYP_DEFINES="ibus_mozc_path=$out/lib/ibus-mozc/ibus-engine-mozc ibus_mozc_icon_path=$out/share/ibus-mozc/product_icon.png document_dir=$out/share/doc/mozc zinnia_model_file=${tegaki-zinnia-japanese}/share/tegaki/models/zinnia/handwriting-ja.model use_libprotobuf=1" 36 - python src/build_mozc.py gyp --gypdir=${gyp}/bin --server_dir=$out/lib/mozc 37 + export GYP_DEFINES="document_dir=$out/share/doc/mozc use_libzinnia=1 use_libprotobuf=1 ibus_mozc_path=$out/lib/ibus-mozc/ibus-engine-mozc" 38 + python src/build_mozc.py gyp --gypdir=${gyp}/bin --server_dir=$out/lib/mozc \ 39 + python src/unix/fcitx/fcitx.gyp gyp --gypdir=${gyp}/bin 40 + ''; 41 + 42 + preBuildPhase = '' 43 + head -n 29 src/server/mozc_server.cc > LICENSE 37 44 ''; 38 45 39 46 buildPhase = '' ··· 50 57 ''; 51 58 52 59 installPhase = '' 60 + install -d $out/share/licenses/mozc/ 61 + install -m 644 LICENSE src/data/installer/*.html $out/share/licenses/mozc/ 62 + 53 63 install -D -m 755 src/out_linux/Release/mozc_server $out/lib/mozc/mozc_server 54 64 install -m 755 src/out_linux/Release/mozc_tool $out/lib/mozc/mozc_tool 55 65
+3 -1
pkgs/top-level/all-packages.nix
··· 1178 1178 1179 1179 anthy = callPackage ../tools/inputmethods/ibus-engines/ibus-anthy { }; 1180 1180 1181 - mozc = callPackage ../tools/inputmethods/ibus-engines/mozc { 1181 + hangul = callPackage ../tools/inputmethods/ibus-engines/ibus-hangul { }; 1182 + 1183 + mozc = callPackage ../tools/inputmethods/ibus-engines/ibus-mozc { 1182 1184 inherit (pythonPackages) gyp; 1183 1185 }; 1184 1186