diff --git a/pkgs/tools/inputmethods/fcitx/fcitx-qt5.nix b/pkgs/tools/inputmethods/fcitx/fcitx-qt5.nix new file mode 100644 index 00000000000..fad7862cf3b --- /dev/null +++ b/pkgs/tools/inputmethods/fcitx/fcitx-qt5.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchurl, cmake, fcitx, extra-cmake-modules, qtbase }: + +stdenv.mkDerivation rec { + name = "fcitx-qt5-${version}"; + version = "1.0.4"; + + src = fetchurl { + url = "http://download.fcitx-im.org/fcitx-qt5/${name}.tar.xz"; + sha256 = "070dlmwkim7sg0xwxfcbb46li1jk8yd3rmj0j5fkmgyr12044aml"; + }; + + buildInputs = [ cmake fcitx extra-cmake-modules qtbase ]; + + preInstall = '' + substituteInPlace platforminputcontext/cmake_install.cmake \ + --replace ${qtbase} $out + ''; + + meta = with stdenv.lib; { + homepage = "https://github.com/fcitx/fcitx-qt5"; + description = "Qt5 IM Module for Fcitx"; + license = licenses.gpl2; + platforms = platforms.linux; + maintainers = with maintainers; [ ericsagnes ]; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 01a2f4898bb..9d87029b715 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6791,6 +6791,8 @@ let kf5PackagesFun = self: with self; { + fcitx-qt5 = callPackage ../tools/inputmethods/fcitx/fcitx-qt5.nix { }; + k9copy = callPackage ../applications/video/k9copy {}; quassel = callPackage ../applications/networking/irc/quassel/qt-5.nix {