diff --git a/pkgs/tools/inputmethods/libpinyin/default.nix b/pkgs/tools/inputmethods/libpinyin/default.nix new file mode 100644 index 000000000000..5a661f93a9f7 --- /dev/null +++ b/pkgs/tools/inputmethods/libpinyin/default.nix @@ -0,0 +1,19 @@ +{ stdenv, fetchurl, glib, db, pkgconfig }: + +stdenv.mkDerivation { + name = "libpinyin-1.3.0"; + + meta = with stdenv.lib; { + description = "Library for intelligent sentence-based Chinese pinyin input method"; + homepace = https://sourceforge.net/projects/libpinyin; + license = licenses.gpl2; + 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/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 05e26199a176..67b18f7f6498 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1030,6 +1030,8 @@ in anthy = callPackage ../tools/inputmethods/anthy { }; + libpinyin = callPackage ../tools/inputmethods/libpinyin { }; + m17n_db = callPackage ../tools/inputmethods/m17n-db { }; m17n_lib = callPackage ../tools/inputmethods/m17n-lib { };