parent
c96d5fe170
commit
e47172ce38
@ -1,24 +1,33 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, cmake, intltool, gettext
|
{ stdenv, fetchurl, pkgconfig, cmake, intltool, gettext
|
||||||
, libxml2, enchant, isocodes, icu, libpthreadstubs
|
, libxml2, enchant, isocodes, icu, libpthreadstubs
|
||||||
, pango, cairo, libxkbfile, libXau, libXdmcp
|
, pango, cairo, libxkbfile, libXau, libXdmcp
|
||||||
|
, dbus, gtk2, gtk3, qt4
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "fcitx-4.2.8.3";
|
name = "fcitx-4.2.8.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://download.fcitx-im.org/fcitx/${name}_dict.tar.xz";
|
url = "http://download.fcitx-im.org/fcitx/${name}_dict.tar.xz";
|
||||||
sha256 = "05dw6cbjh2jyjrkr4qx2bcq6nyhhrs0akf6fcjk5a72bgphhwqnb";
|
sha256 = "05dw6cbjh2jyjrkr4qx2bcq6nyhhrs0akf6fcjk5a72bgphhwqnb";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
patchPhase = ''
|
||||||
|
substituteInPlace src/frontend/qt/CMakeLists.txt \
|
||||||
|
--replace $\{QT_PLUGINS_DIR} $out/lib/qt4/plugins
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildInputs = with stdenv.lib; [
|
||||||
cmake enchant pango gettext libxml2 isocodes pkgconfig libxkbfile
|
cmake enchant pango gettext libxml2 isocodes pkgconfig libxkbfile
|
||||||
intltool cairo icu libpthreadstubs libXau libXdmcp
|
intltool cairo icu libpthreadstubs libXau libXdmcp
|
||||||
|
dbus gtk2 gtk3 qt4
|
||||||
];
|
];
|
||||||
|
|
||||||
cmakeFlags = ''
|
cmakeFlags = ''
|
||||||
-DENABLE_DBUS=OFF
|
-DENABLE_QT_IM_MODULE=ON
|
||||||
-DENABLE_QT=OFF
|
-DENABLE_GTK2_IM_MODULE=ON
|
||||||
-DENABLE_QT_IM_MODULE=OFF
|
-DENABLE_GTK3_IM_MODULE=ON
|
||||||
|
-DENABLE_GIR=OFF
|
||||||
-DENABLE_OPENCC=OFF
|
-DENABLE_OPENCC=OFF
|
||||||
-DENABLE_PRESAGE=OFF
|
-DENABLE_PRESAGE=OFF
|
||||||
-DENABLE_XDGAUTOSTART=OFF
|
-DENABLE_XDGAUTOSTART=OFF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user