@@ -1,7 +1,7 @@
11{ stdenv, fetchurl, pkgconfig, cmake, intltool, gettext
22, libxml2, enchant, isocodes, icu, libpthreadstubs
33, pango, cairo, libxkbfile, libXau, libXdmcp, libxkbcommon
4−, dbus, gtk2, gtk3, qt4, kde5
4+, dbus, gtk2, gtk3, qt4, extra-cmake-modules
55}:
66
77stdenv.mkDerivation rec {
@@ -13,22 +13,16 @@ stdenv.mkDerivation rec {
1313 sha256 = "0xvcmm4yi7kagf55d0yl3ql5ssbkm9410fwbz3kd988pchichdsk";
1414 };
1515
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−
2316 postPatch = ''
2417 substituteInPlace src/frontend/qt/CMakeLists.txt \
2518 --replace $\{QT_PLUGINS_DIR} $out/lib/qt4/plugins
2619 '';
2720
21+ nativeBuildInputs = [ cmake extra-cmake-modules intltool pkgconfig ];
22+
2823 buildInputs = [
29− cmake enchant gettext isocodes pkgconfig intltool icu
30− libpthreadstubs libXau libXdmcp libxkbfile libxkbcommon libxml2
31− dbus cairo gtk2 gtk3 pango qt4
24+ enchant gettext isocodes icu libpthreadstubs libXau libXdmcp libxkbfile
25+ libxkbcommon libxml2 dbus cairo gtk2 gtk3 pango qt4
3226 ];
3327
3428 cmakeFlags = ''