2013-01-28 03:35:03 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, cmake, intltool, gettext
|
|
|
|
, libxml2, enchant, isocodes, icu, libpthreadstubs
|
2013-09-28 12:44:52 +01:00
|
|
|
, pango, cairo, libxkbfile, libXau, libXdmcp
|
2014-05-04 14:49:37 +01:00
|
|
|
, dbus, gtk2, gtk3, qt4
|
2013-01-28 03:35:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-11-05 01:23:39 +00:00
|
|
|
name = "fcitx-${version}";
|
|
|
|
version = "4.2.8.5";
|
2014-05-04 14:49:37 +01:00
|
|
|
|
2013-01-28 03:35:03 +00:00
|
|
|
src = fetchurl {
|
2013-09-28 12:44:52 +01:00
|
|
|
url = "http://download.fcitx-im.org/fcitx/${name}_dict.tar.xz";
|
2014-09-30 11:14:01 +01:00
|
|
|
sha256 = "0whv7mnzig4l5v518r200psa1fp3dyl1jkr5z0q13ijzh1bnyggy";
|
2013-01-28 03:35:03 +00:00
|
|
|
};
|
|
|
|
|
2014-05-04 14:49:37 +01:00
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace src/frontend/qt/CMakeLists.txt \
|
|
|
|
--replace $\{QT_PLUGINS_DIR} $out/lib/qt4/plugins
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = with stdenv.lib; [
|
2013-01-28 03:35:03 +00:00
|
|
|
cmake enchant pango gettext libxml2 isocodes pkgconfig libxkbfile
|
2013-09-28 12:44:52 +01:00
|
|
|
intltool cairo icu libpthreadstubs libXau libXdmcp
|
2014-05-04 14:49:37 +01:00
|
|
|
dbus gtk2 gtk3 qt4
|
2013-01-28 03:35:03 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = ''
|
2014-05-04 14:49:37 +01:00
|
|
|
-DENABLE_QT_IM_MODULE=ON
|
|
|
|
-DENABLE_GTK2_IM_MODULE=ON
|
|
|
|
-DENABLE_GTK3_IM_MODULE=ON
|
|
|
|
-DENABLE_GIR=OFF
|
2013-01-28 03:35:03 +00:00
|
|
|
-DENABLE_OPENCC=OFF
|
|
|
|
-DENABLE_PRESAGE=OFF
|
|
|
|
-DENABLE_XDGAUTOSTART=OFF
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://code.google.com/p/fcitx/";
|
|
|
|
description = "A Flexible Input Method Framework";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2013-09-28 12:44:52 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [iyzsong];
|
2013-01-28 03:35:03 +00:00
|
|
|
};
|
|
|
|
}
|