summary refs log tree commit diff
path: root/pkgs/tools/inputmethods/fcitx/unwrapped.nix
diff options
context:
space:
mode:
authorThomas Tuegel <ttuegel@gmail.com>2016-07-29 08:59:01 -0500
committerThomas Tuegel <ttuegel@gmail.com>2016-07-29 10:23:27 -0500
commit2056f56f777f4f2a4a6282014e9fbecc11365535 (patch)
tree40c360bbe0e0564920f024c76db6727a7f10b9dd /pkgs/tools/inputmethods/fcitx/unwrapped.nix
parente15f259f9b4acaa784f84990f1c48548bc90acc1 (diff)
downloadnixpkgs-2056f56f777f4f2a4a6282014e9fbecc11365535.tar
nixpkgs-2056f56f777f4f2a4a6282014e9fbecc11365535.tar.gz
nixpkgs-2056f56f777f4f2a4a6282014e9fbecc11365535.tar.bz2
nixpkgs-2056f56f777f4f2a4a6282014e9fbecc11365535.tar.lz
nixpkgs-2056f56f777f4f2a4a6282014e9fbecc11365535.tar.xz
nixpkgs-2056f56f777f4f2a4a6282014e9fbecc11365535.tar.zst
nixpkgs-2056f56f777f4f2a4a6282014e9fbecc11365535.zip
fcitx: drop patches, use extra-cmake-modules directly
Fixes #17252. (Really, this time.)

Now that extra-cmake-modules does not depend on Qt 5, it is possible to
depend on it directly.
Diffstat (limited to 'pkgs/tools/inputmethods/fcitx/unwrapped.nix')
-rw-r--r--pkgs/tools/inputmethods/fcitx/unwrapped.nix16
1 files changed, 5 insertions, 11 deletions
diff --git a/pkgs/tools/inputmethods/fcitx/unwrapped.nix b/pkgs/tools/inputmethods/fcitx/unwrapped.nix
index ba3a3f76ed9..c489b3e4ed7 100644
--- a/pkgs/tools/inputmethods/fcitx/unwrapped.nix
+++ b/pkgs/tools/inputmethods/fcitx/unwrapped.nix
@@ -1,7 +1,7 @@
 { stdenv, fetchurl, pkgconfig, cmake, intltool, gettext
 , libxml2, enchant, isocodes, icu, libpthreadstubs
 , pango, cairo, libxkbfile, libXau, libXdmcp, libxkbcommon
-, dbus, gtk2, gtk3, qt4, kde5
+, dbus, gtk2, gtk3, qt4, extra-cmake-modules
 }:
 
 stdenv.mkDerivation rec {
@@ -13,22 +13,16 @@ stdenv.mkDerivation rec {
     sha256 = "0xvcmm4yi7kagf55d0yl3ql5ssbkm9410fwbz3kd988pchichdsk";
   };
 
-  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
   '';
 
+  nativeBuildInputs = [ cmake extra-cmake-modules intltool pkgconfig ];
+
   buildInputs = [
-    cmake enchant gettext isocodes pkgconfig intltool icu
-    libpthreadstubs libXau libXdmcp libxkbfile libxkbcommon libxml2
-    dbus cairo gtk2 gtk3 pango qt4
+    enchant gettext isocodes icu libpthreadstubs libXau libXdmcp libxkbfile
+    libxkbcommon libxml2 dbus cairo gtk2 gtk3 pango qt4
   ];
 
   cmakeFlags = ''