2013-01-28 04:35:03 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, cmake, intltool, gettext
|
|
|
|
, libxml2, enchant, isocodes, icu, libpthreadstubs
|
2016-06-01 13:50:12 +02:00
|
|
|
, pango, cairo, libxkbfile, libXau, libXdmcp, libxkbcommon
|
2015-11-25 06:55:28 +01:00
|
|
|
, dbus, gtk2, gtk3, qt4, kde5
|
2013-01-28 04:35:03 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-11-05 02:23:39 +01:00
|
|
|
name = "fcitx-${version}";
|
2016-06-01 13:50:12 +02:00
|
|
|
version = "4.2.9.1";
|
2014-05-04 15:49:37 +02:00
|
|
|
|
2013-01-28 04:35:03 +01:00
|
|
|
src = fetchurl {
|
2016-06-01 13:50:12 +02:00
|
|
|
url = "http://download.fcitx-im.org/fcitx/${name}_dict.tar.xz";
|
|
|
|
sha256 = "0xvcmm4yi7kagf55d0yl3ql5ssbkm9410fwbz3kd988pchichdsk";
|
2013-01-28 04:35:03 +01:00
|
|
|
};
|
|
|
|
|
2016-06-01 13:50:12 +02:00
|
|
|
postUnpack = ''
|
|
|
|
ln -s ${kde5.extra-cmake-modules}/share/ECM/modules/ECMFindModuleHelpers.cmake \
|
|
|
|
$sourceRoot/cmake/
|
|
|
|
'';
|
|
|
|
|
|
|
|
patches = [ ./fcitx-ecm.patch ];
|
|
|
|
|
|
|
|
postPatch = ''
|
2014-05-04 15:49:37 +02:00
|
|
|
substituteInPlace src/frontend/qt/CMakeLists.txt \
|
|
|
|
--replace $\{QT_PLUGINS_DIR} $out/lib/qt4/plugins
|
|
|
|
'';
|
|
|
|
|
2016-06-01 13:50:12 +02:00
|
|
|
buildInputs = [
|
|
|
|
cmake enchant gettext isocodes pkgconfig intltool icu
|
|
|
|
libpthreadstubs libXau libXdmcp libxkbfile libxkbcommon libxml2
|
|
|
|
dbus cairo gtk2 gtk3 pango qt4
|
2013-01-28 04:35:03 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = ''
|
2014-05-04 15:49:37 +02:00
|
|
|
-DENABLE_QT_IM_MODULE=ON
|
|
|
|
-DENABLE_GTK2_IM_MODULE=ON
|
|
|
|
-DENABLE_GTK3_IM_MODULE=ON
|
|
|
|
-DENABLE_GIR=OFF
|
2013-01-28 04:35:03 +01:00
|
|
|
-DENABLE_OPENCC=OFF
|
|
|
|
-DENABLE_PRESAGE=OFF
|
|
|
|
-DENABLE_XDGAUTOSTART=OFF
|
|
|
|
'';
|
|
|
|
|
2016-06-01 13:50:12 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/fcitx/fcitx";
|
2013-01-28 04:35:03 +01:00
|
|
|
description = "A Flexible Input Method Framework";
|
2016-06-01 13:50:12 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ ericsagnes ];
|
2013-01-28 04:35:03 +01:00
|
|
|
};
|
|
|
|
}
|