@@ -1,27 +1,34 @@
11{ stdenv, fetchurl, pkgconfig, cmake, intltool, gettext
22, libxml2, enchant, isocodes, icu, libpthreadstubs
3−, pango, cairo, libxkbfile, libXau, libXdmcp
3+, pango, cairo, libxkbfile, libXau, libXdmcp, libxkbcommon
44, dbus, gtk2, gtk3, qt4, kde5
55}:
66
77stdenv.mkDerivation rec {
88 name = "fcitx-${version}";
9− version = "4.2.9";
9+ version = "4.2.9.1";
1010
1111 src = fetchurl {
12− url = "http://download.fcitx-im.org/fcitx/${name}_dict.tar.xz";
13− sha256 = "0v7wdf3qf74vz8q090w8k574wvfcpj9ksfcfdw93nmzyk1q5p4rs";
12+ url = "http://download.fcitx-im.org/fcitx/${name}_dict.tar.xz";
13+ sha256 = "0xvcmm4yi7kagf55d0yl3ql5ssbkm9410fwbz3kd988pchichdsk";
1414 };
1515
16− patchPhase = ''
16+ postUnpack = ''
17+ ln -s ${kde5.extra-cmake-modules}/share/ECM/modules/ECMFindModuleHelpers.cmake \
18+ $sourceRoot/cmake/
19+ '';
20+
21+ patches = [ ./fcitx-ecm.patch ];
22+
23+ postPatch = ''
1724 substituteInPlace src/frontend/qt/CMakeLists.txt \
1825 --replace $\{QT_PLUGINS_DIR} $out/lib/qt4/plugins
1926 '';
2027
21− buildInputs = with stdenv.lib; [
22− cmake enchant pango gettext libxml2 isocodes pkgconfig libxkbfile
23− intltool cairo icu libpthreadstubs libXau libXdmcp
24− dbus gtk2 gtk3 qt4 kde5.extra-cmake-modules
28+ buildInputs = [
29+ cmake enchant gettext isocodes pkgconfig intltool icu
30+ libpthreadstubs libXau libXdmcp libxkbfile libxkbcommon libxml2
31+ dbus cairo gtk2 gtk3 pango qt4
2532 ];
2633
2734 cmakeFlags = ''
@@ -34,11 +41,11 @@ stdenv.mkDerivation rec {
3441 -DENABLE_XDGAUTOSTART=OFF
3542 '';
3643
37− meta = {
38− homepage = "https://code.google.com/p/fcitx/";
44+ meta = with stdenv.lib; {
45+ homepage = "https://github.com/fcitx/fcitx";
3946 description = "A Flexible Input Method Framework";
40− license = stdenv.lib.licenses.gpl2;
41− platforms = stdenv.lib.platforms.linux;
42− maintainers = with stdenv.lib.maintainers; [ ericsagnes ];
47+ license = licenses.gpl2;
48+ platforms = platforms.linux;
49+ maintainers = with maintainers; [ ericsagnes ];
4350 };
4451}