blob: f7bb7126bef086250e750e66e20db2f67ca90b88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{ stdenv, fetchurl, cmake, pkgconfig, fcitx, gettext, curl }:
stdenv.mkDerivation rec {
name = "fcitx-cloudpinyin-${version}";
version = "0.3.6";
src = fetchurl {
url = "http://download.fcitx-im.org/fcitx-cloudpinyin/${name}.tar.xz";
sha256 = "1f3ryx817bxb8g942l50ng4xg0gp50rb7pv2p6zf98r2z804dcvf";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ cmake fcitx gettext curl ];
preInstall = ''
substituteInPlace src/cmake_install.cmake \
--replace ${fcitx} $out
substituteInPlace po/cmake_install.cmake \
--replace ${fcitx} $out
'';
meta = with stdenv.lib; {
isFcitxEngine = true;
description = "A standalone module for fcitx that uses web API to provide better pinyin result";
homepage = https://github.com/fcitx/fcitx-cloudpinyin;
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
}
|