3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/inputmethods/fcitx/default.nix

45 lines
1.2 KiB
Nix
Raw Normal View History

2013-01-28 03:35:03 +00:00
{ stdenv, fetchurl, pkgconfig, cmake, intltool, gettext
, libxml2, enchant, isocodes, icu, libpthreadstubs
, pango, cairo, libxkbfile, libXau, libXdmcp
2015-11-25 05:55:28 +00:00
, dbus, gtk2, gtk3, qt4, kde5
2013-01-28 03:35:03 +00:00
}:
stdenv.mkDerivation rec {
name = "fcitx-${version}";
2015-11-25 05:55:28 +00:00
version = "4.2.9";
2013-01-28 03:35:03 +00:00
src = fetchurl {
url = "http://download.fcitx-im.org/fcitx/${name}_dict.tar.xz";
2015-11-25 05:55:28 +00:00
sha256 = "0v7wdf3qf74vz8q090w8k574wvfcpj9ksfcfdw93nmzyk1q5p4rs";
2013-01-28 03:35:03 +00:00
};
patchPhase = ''
substituteInPlace src/frontend/qt/CMakeLists.txt \
--replace $\{QT_PLUGINS_DIR} $out/lib/qt4/plugins
'';
buildInputs = with stdenv.lib; [
2013-01-28 03:35:03 +00:00
cmake enchant pango gettext libxml2 isocodes pkgconfig libxkbfile
intltool cairo icu libpthreadstubs libXau libXdmcp
2015-11-25 05:55:28 +00:00
dbus gtk2 gtk3 qt4 kde5.extra-cmake-modules
2013-01-28 03:35:03 +00:00
];
cmakeFlags = ''
-DENABLE_QT_IM_MODULE=ON
-DENABLE_GTK2_IM_MODULE=ON
-DENABLE_GTK3_IM_MODULE=ON
-DENABLE_GIR=OFF
2013-01-28 03:35:03 +00:00
-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;
2016-03-13 08:08:15 +00:00
maintainers = with stdenv.lib.maintainers; [ ericsagnes ];
2013-01-28 03:35:03 +00:00
};
}