@@ -0,0 +1,28 @@
1+{ stdenv, fetchurl, cmake, pkgconfig, fcitx, gettext, curl }:
3+stdenv.mkDerivation rec {
4+ name = "fcitx-cloudpinyin-${version}";
8+ url = "http://download.fcitx-im.org/fcitx-cloudpinyin/${name}.tar.xz";
9+ sha256 = "143x9gbswzfngvgfy77zskrzrpywj8qg2d19kisgfwfisk7yhcf1";
12+ buildInputs = [ cmake pkgconfig fcitx gettext curl ];
15+ substituteInPlace src/cmake_install.cmake \
16+ --replace ${fcitx} $out
17+ substituteInPlace po/cmake_install.cmake \
18+ --replace ${fcitx} $out
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;