diff options
author | Joachim F <joachifm@users.noreply.github.com> | 2016-10-01 09:17:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-01 09:17:43 +0200 |
commit | 1f26655897a4c2a71286ff8f8192efd9ee8de6be (patch) | |
tree | 06bddb4cd83dfe0ceb1a80901f1753b2943fa5e6 /pkgs | |
parent | e112c0f23f4fefc318bbedcfe06c7b75153dea2e (diff) | |
parent | d06566e09029a3143c9c365922adf0c7fbd39120 (diff) |
Merge pull request #19112 from ericsagnes/pkg-update/ibus-libpinyin
ibus-libpinyin: 1.7.4 -> 1.8.0
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/libraries/libpinyin/default.nix | 35 | ||||
-rw-r--r-- | pkgs/tools/inputmethods/ibus-engines/ibus-libpinyin/default.nix | 34 |
2 files changed, 43 insertions, 26 deletions
diff --git a/pkgs/development/libraries/libpinyin/default.nix b/pkgs/development/libraries/libpinyin/default.nix index bda5143208ec9..15d1419904176 100644 --- a/pkgs/development/libraries/libpinyin/default.nix +++ b/pkgs/development/libraries/libpinyin/default.nix @@ -1,19 +1,34 @@ -{ stdenv, fetchurl, glib, db, pkgconfig }: +{ stdenv, fetchurl, fetchFromGitHub, autoreconfHook, glib, db, pkgconfig }: -stdenv.mkDerivation { - name = "libpinyin-1.3.0"; +let + modelData = fetchurl { + url = "mirror://sourceforge/libpinyin/models/model12.text.tar.gz"; + sha256 = "1fijhhnjgj8bj1xr5pp7c4qxf11cqybgfqg7v36l3x780d84hfnd"; + }; +in + +stdenv.mkDerivation rec { + name = "libpinyin-${version}"; + version = "1.6.0"; + + nativeBuildInputs = [ autoreconfHook glib db pkgconfig ]; + + postUnpack = '' + tar -xzf ${modelData} -C $sourceRoot/data + ''; + + src = fetchFromGitHub { + owner = "libpinyin"; + repo = "libpinyin"; + rev = version; + sha256 = "0k40a7wfp8zj9d426afv0am5sr3m2i2p309fq0vf8qrb050hj17f"; + }; meta = with stdenv.lib; { description = "Library for intelligent sentence-based Chinese pinyin input method"; homepage = https://sourceforge.net/projects/libpinyin; license = licenses.gpl2; + maintainers = with maintainers; [ ericsagnes ]; platforms = platforms.linux; }; - - buildInputs = [ glib db pkgconfig ]; - - src = fetchurl { - url = "mirror://sourceforge/project/libpinyin/libpinyin/libpinyin-1.3.0.tar.gz"; - sha256 = "e105c443b01cd67b9db2a5236435d5441cf514b997b891215fa65f16030cf1f2"; - }; } diff --git a/pkgs/tools/inputmethods/ibus-engines/ibus-libpinyin/default.nix b/pkgs/tools/inputmethods/ibus-engines/ibus-libpinyin/default.nix index 1cb849fa09b18..799d66aac9b22 100644 --- a/pkgs/tools/inputmethods/ibus-engines/ibus-libpinyin/default.nix +++ b/pkgs/tools/inputmethods/ibus-engines/ibus-libpinyin/default.nix @@ -1,29 +1,31 @@ -{ stdenv, fetchurl, intltool, pkgconfig, sqlite, libpinyin, db +{ stdenv, fetchFromGitHub, autoreconfHook +, intltool, pkgconfig, sqlite, libpinyin, db , ibus, glib, gtk3, python3, pygobject3 }: stdenv.mkDerivation rec { name = "ibus-libpinyin-${version}"; - version = "1.7.4"; + version = "1.8.0"; + + src = fetchFromGitHub { + owner = "libpinyin"; + repo = "ibus-libpinyin"; + rev = version; + sha256 = "1d85kzlhav0ay798i88yqyrjbkv3y7w2aiadpmcjgscyd5ccsnnz"; + }; + + buildInputs = [ ibus glib sqlite libpinyin python3 gtk3 db ]; + nativeBuildInputs = [ autoreconfHook intltool pkgconfig ]; + + postAutoreconf = '' + intltoolize + ''; meta = with stdenv.lib; { isIbusEngine = true; description = "IBus interface to the libpinyin input method"; - homepage = https://github.com/libpinyin/ibus-libpinyin; license = licenses.gpl2; + maintainers = with maintainers; [ ericsagnes ]; platforms = platforms.linux; }; - - #configureFlags = "--with-anthy-zipcode=${anthy}/share/anthy/zipcode.t"; - - buildInputs = [ - ibus glib sqlite libpinyin python3 gtk3 db - ]; - - nativeBuildInputs = [ intltool pkgconfig ]; - - src = fetchurl { - url = "mirror://sourceforge/project/libpinyin/ibus-libpinyin/ibus-libpinyin-${version}.tar.gz"; - sha256 = "c2085992f76ca669ebe4b7e7c0170433bbfb61f764f8336b3b17490b9fb1c334"; - }; } |