3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/inputmethods/fcitx-engines/fcitx-cloudpinyin/default.nix

30 lines
889 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, cmake, pkg-config, fcitx, gettext, curl }:
2016-05-21 19:54:15 +01:00
stdenv.mkDerivation rec {
pname = "fcitx-cloudpinyin";
version = "0.3.7";
2016-05-21 19:54:15 +01:00
src = fetchurl {
url = "http://download.fcitx-im.org/fcitx-cloudpinyin/${pname}-${version}.tar.xz";
sha256 = "0ai347wv3qdjzcbh0j9hdjpzwvh2kk57324xbxq37nzagrdgg5x0";
2016-05-21 19:54:15 +01: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
'';
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";
homepage = "https://github.com/fcitx/fcitx-cloudpinyin";
2016-05-21 19:54:15 +01:00
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
}