2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake, pkg-config, fcitx, gettext, curl }:
|
2016-05-21 19:54:15 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "fcitx-cloudpinyin";
|
2019-11-25 18:15:28 +00:00
|
|
|
version = "0.3.7";
|
2016-05-21 19:54:15 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "http://download.fcitx-im.org/fcitx-cloudpinyin/${pname}-${version}.tar.xz";
|
2019-11-25 18:15:28 +00:00
|
|
|
sha256 = "0ai347wv3qdjzcbh0j9hdjpzwvh2kk57324xbxq37nzagrdgg5x0";
|
2016-05-21 19:54:15 +01:00
|
|
|
};
|
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ fcitx gettext curl ];
|
2016-05-21 19:54:15 +01:00
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
substituteInPlace src/cmake_install.cmake \
|
|
|
|
--replace ${fcitx} $out
|
|
|
|
substituteInPlace po/cmake_install.cmake \
|
|
|
|
--replace ${fcitx} $out
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-05-21 19:54:15 +01:00
|
|
|
isFcitxEngine = true;
|
|
|
|
description = "A standalone module for fcitx that uses web API to provide better pinyin result";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/fcitx/fcitx-cloudpinyin";
|
2016-05-21 19:54:15 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|