git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #15600 from crossing/pr-fcitx-cloudpinyin

fcitx-cloudpinyin: init at 0.3.4

commit3f22610bd797bc4f47311dcd982bf45eb107713a authorJoachim Fasting <joachifm@users.noreply.github.com> dateMon 23 May 2016, 22:46 (11 years ago) parentf249570a9215fe
2 files changed+29
pkgs/tools/inputmethods/fcitx-engines/fcitx-cloudpinyin/default.nix+28 pkgs/top-level/all-packages.nix+1
pkgs/tools/inputmethods/fcitx-engines/fcitx-cloudpinyin/default.nixnew file+28
@@ -0,0 +1,28 @@
1+{ stdenv, fetchurl, cmake, pkgconfig, fcitx, gettext, curl }:
2+
3+stdenv.mkDerivation rec {
4+ name = "fcitx-cloudpinyin-${version}";
5+ version = "0.3.4";
6+
7+ src = fetchurl {
8+ url = "http://download.fcitx-im.org/fcitx-cloudpinyin/${name}.tar.xz";
9+ sha256 = "143x9gbswzfngvgfy77zskrzrpywj8qg2d19kisgfwfisk7yhcf1";
10+ };
11+
12+ buildInputs = [ cmake pkgconfig fcitx gettext curl ];
13+
14+ preInstall = ''
15+ substituteInPlace src/cmake_install.cmake \
16+ --replace ${fcitx} $out
17+ substituteInPlace po/cmake_install.cmake \
18+ --replace ${fcitx} $out
19+ '';
20+
21+ meta = with stdenv.lib; {
22+ isFcitxEngine = true;
23+ description = "A standalone module for fcitx that uses web API to provide better pinyin result";
24+ homepage = https://github.com/fcitx/fcitx-cloudpinyin;
25+ license = licenses.gpl3Plus;
26+ platforms = platforms.linux;
27+ };
28+}
pkgs/top-level/all-packages.nix+1
@@ -1490,6 +1490,7 @@ in
14901490
14911491 table-other = callPackage ../tools/inputmethods/fcitx-engines/fcitx-table-other { };
14921492
1493+ cloudpinyin = callPackage ../tools/inputmethods/fcitx-engines/fcitx-cloudpinyin { };
14931494 };
14941495
14951496 fcitx-configtool = callPackage ../tools/inputmethods/fcitx/fcitx-configtool.nix { };