nixpkgs/pkgs/tools/inputmethods/fcitx-engines/fcitx-cloudpinyin/default.nix
R. RyanTM ececd26a80 fcitx-engines.cloudpinyin: 0.3.4 -> 0.3.6 (#43202)
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/fcitx-cloudpinyin/versions.

These checks were done:

- built on NixOS
- fcitx result is not automatically checked, because some binaries gets stuck in daemons
2018-07-13 23:51:11 +02:00

29 lines
885 B
Nix

{ 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;
};
}