mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
f0c3c54712
This creates a wrapper package for fcitx so that plugins can be enabled by the user. This is based on the wrapper package for pidgin-with-plugins. By using this wrapper instead of the fcitx package itself, it will be possible for the user to enable/disable plugins.
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{ stdenv, fetchurl, pkgconfig, cmake, intltool, gettext
|
|
, libxml2, enchant, isocodes, icu, libpthreadstubs
|
|
, pango, cairo, libxkbfile, libXau, libXdmcp
|
|
, dbus, gtk2, gtk3, qt4
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "fcitx-${version}";
|
|
version = "4.2.8.5";
|
|
|
|
src = fetchurl {
|
|
url = "http://download.fcitx-im.org/fcitx/${name}_dict.tar.xz";
|
|
sha256 = "0whv7mnzig4l5v518r200psa1fp3dyl1jkr5z0q13ijzh1bnyggy";
|
|
};
|
|
|
|
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
|
|
intltool cairo icu libpthreadstubs libXau libXdmcp
|
|
dbus gtk2 gtk3 qt4
|
|
];
|
|
|
|
cmakeFlags = ''
|
|
-DENABLE_QT_IM_MODULE=ON
|
|
-DENABLE_GTK2_IM_MODULE=ON
|
|
-DENABLE_GTK3_IM_MODULE=ON
|
|
-DENABLE_GIR=OFF
|
|
-DENABLE_OPENCC=OFF
|
|
-DENABLE_PRESAGE=OFF
|
|
-DENABLE_XDGAUTOSTART=OFF
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://code.google.com/p/fcitx/";
|
|
description = "A Flexible Input Method Framework";
|
|
license = stdenv.lib.licenses.gpl2;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = with stdenv.lib.maintainers; [iyzsong];
|
|
};
|
|
}
|