diff options
author | Gabriel Ebner <gebner@gebner.org> | 2016-06-02 20:53:09 +0200 |
---|---|---|
committer | Gabriel Ebner <gebner@gebner.org> | 2016-06-02 20:53:09 +0200 |
commit | 0e16c80f81d0cd351d5d814db65001176cd81817 (patch) | |
tree | 407b0ebc29f509de54896fd4fa66ce2f012de371 | |
parent | ff8985e7abeffdb2af13b0dc14566fc54c3fd3f1 (diff) | |
parent | 098c58cac841bff28a8e9eeb1f795bb50d388fed (diff) | |
download | nixpkgs-0e16c80f81d0cd351d5d814db65001176cd81817.tar nixpkgs-0e16c80f81d0cd351d5d814db65001176cd81817.tar.gz nixpkgs-0e16c80f81d0cd351d5d814db65001176cd81817.tar.bz2 nixpkgs-0e16c80f81d0cd351d5d814db65001176cd81817.tar.lz nixpkgs-0e16c80f81d0cd351d5d814db65001176cd81817.tar.xz nixpkgs-0e16c80f81d0cd351d5d814db65001176cd81817.tar.zst nixpkgs-0e16c80f81d0cd351d5d814db65001176cd81817.zip |
Merge pull request #15915 from ericsagnes/pkg-update/fcitx
fcitx: 4.2.9 -> 4.2.9.1, fix build
-rw-r--r-- | pkgs/tools/inputmethods/fcitx/default.nix | 35 | ||||
-rw-r--r-- | pkgs/tools/inputmethods/fcitx/fcitx-ecm.patch | 25 |
2 files changed, 46 insertions, 14 deletions
diff --git a/pkgs/tools/inputmethods/fcitx/default.nix b/pkgs/tools/inputmethods/fcitx/default.nix index d2e46f704c8..ba3a3f76ed9 100644 --- a/pkgs/tools/inputmethods/fcitx/default.nix +++ b/pkgs/tools/inputmethods/fcitx/default.nix @@ -1,27 +1,34 @@ { stdenv, fetchurl, pkgconfig, cmake, intltool, gettext , libxml2, enchant, isocodes, icu, libpthreadstubs -, pango, cairo, libxkbfile, libXau, libXdmcp +, pango, cairo, libxkbfile, libXau, libXdmcp, libxkbcommon , dbus, gtk2, gtk3, qt4, kde5 }: stdenv.mkDerivation rec { name = "fcitx-${version}"; - version = "4.2.9"; + version = "4.2.9.1"; src = fetchurl { - url = "http://download.fcitx-im.org/fcitx/${name}_dict.tar.xz"; - sha256 = "0v7wdf3qf74vz8q090w8k574wvfcpj9ksfcfdw93nmzyk1q5p4rs"; + url = "http://download.fcitx-im.org/fcitx/${name}_dict.tar.xz"; + sha256 = "0xvcmm4yi7kagf55d0yl3ql5ssbkm9410fwbz3kd988pchichdsk"; }; - patchPhase = '' + postUnpack = '' + ln -s ${kde5.extra-cmake-modules}/share/ECM/modules/ECMFindModuleHelpers.cmake \ + $sourceRoot/cmake/ + ''; + + patches = [ ./fcitx-ecm.patch ]; + + postPatch = '' 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 kde5.extra-cmake-modules + buildInputs = [ + cmake enchant gettext isocodes pkgconfig intltool icu + libpthreadstubs libXau libXdmcp libxkbfile libxkbcommon libxml2 + dbus cairo gtk2 gtk3 pango qt4 ]; cmakeFlags = '' @@ -34,11 +41,11 @@ stdenv.mkDerivation rec { -DENABLE_XDGAUTOSTART=OFF ''; - meta = { - homepage = "https://code.google.com/p/fcitx/"; + meta = with stdenv.lib; { + homepage = "https://github.com/fcitx/fcitx"; description = "A Flexible Input Method Framework"; - license = stdenv.lib.licenses.gpl2; - platforms = stdenv.lib.platforms.linux; - maintainers = with stdenv.lib.maintainers; [ ericsagnes ]; + license = licenses.gpl2; + platforms = platforms.linux; + maintainers = with maintainers; [ ericsagnes ]; }; } diff --git a/pkgs/tools/inputmethods/fcitx/fcitx-ecm.patch b/pkgs/tools/inputmethods/fcitx/fcitx-ecm.patch new file mode 100644 index 00000000000..8a886f2bc78 --- /dev/null +++ b/pkgs/tools/inputmethods/fcitx/fcitx-ecm.patch @@ -0,0 +1,25 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index fd54ad8..ebb33d0 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -5,8 +5,7 @@ project(fcitx) + set(version 4.2.9) + + +-find_package(ECM 0.0.11 REQUIRED NO_MODULE) +-set(CMAKE_MODULE_PATH "${ECM_MODULE_PATH}" "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH}) ++set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH}) + set(CMAKE_AUTOMOC_RELAXED_MODE TRUE) + + set_property(GLOBAL PROPERTY "__FCITX_INTERNAL_BUILD" On) +--- a/cmake/FindXKBCommon.cmake ++++ b/cmake/FindXKBCommon.cmake +@@ -1,5 +1,5 @@ + +-include(ECMFindModuleHelpersStub) ++include(ECMFindModuleHelpers) + + ecm_find_package_version_check(XKBCommon) + +-- +2.8.0 |