1 { lib, stdenv, fetchurl, cmake, pkg-config, fcitx, gettext, curl }:
3 stdenv.mkDerivation rec {
4 pname = "fcitx-cloudpinyin";
8 url = "http://download.fcitx-im.org/fcitx-cloudpinyin/${pname}-${version}.tar.xz";
9 sha256 = "0ai347wv3qdjzcbh0j9hdjpzwvh2kk57324xbxq37nzagrdgg5x0";
12 nativeBuildInputs = [ cmake pkg-config ];
13 buildInputs = [ fcitx gettext curl ];
16 substituteInPlace src/cmake_install.cmake \
17 --replace ${fcitx} $out
18 substituteInPlace po/cmake_install.cmake \
19 --replace ${fcitx} $out
24 description = "A standalone module for fcitx that uses web API to provide better pinyin result";
25 homepage = "https://github.com/fcitx/fcitx-cloudpinyin";
26 license = licenses.gpl3Plus;
27 platforms = platforms.linux;