2019-07-29 22:51:51 +02:00
|
|
|
{ lib, mkDerivation, fetchFromGitLab
|
|
|
|
, cmake
|
|
|
|
, extra-cmake-modules
|
|
|
|
, fcitx
|
|
|
|
, pkgconfig
|
|
|
|
, qtbase
|
|
|
|
}:
|
2015-11-25 07:01:45 +01:00
|
|
|
|
2019-07-29 22:51:51 +02:00
|
|
|
mkDerivation rec {
|
2019-07-12 19:30:33 +02:00
|
|
|
pname = "fcitx-qt5";
|
|
|
|
version = "1.2.3";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "fcitx";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0860v3rxsh054wkkbawvyin5mk0flp4cwfcpmcpq147lvdm5lq2i";
|
2015-11-25 07:01:45 +01:00
|
|
|
};
|
|
|
|
|
2016-07-29 15:59:01 +02:00
|
|
|
nativeBuildInputs = [ cmake extra-cmake-modules pkgconfig ];
|
2016-07-29 02:21:13 +02:00
|
|
|
|
2016-07-29 15:59:01 +02:00
|
|
|
buildInputs = [ fcitx qtbase ];
|
2015-11-25 07:01:45 +01:00
|
|
|
|
2019-08-09 11:16:37 +02:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace platforminputcontext/CMakeLists.txt \
|
|
|
|
--replace \$"{CMAKE_INSTALL_QTPLUGINDIR}" $out/${qtbase.qtPluginPrefix}
|
|
|
|
substituteInPlace quickphrase-editor/CMakeLists.txt \
|
|
|
|
--replace \$"{FCITX4_ADDON_INSTALL_DIR}" $out/lib/fcitx
|
2015-11-25 07:01:45 +01:00
|
|
|
'';
|
|
|
|
|
2019-07-29 22:51:51 +02:00
|
|
|
meta = with lib; {
|
2019-08-09 11:16:37 +02:00
|
|
|
homepage = "https://gitlab.com/fcitx/fcitx-qt5";
|
2015-11-25 07:01:45 +01:00
|
|
|
description = "Qt5 IM Module for Fcitx";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ ericsagnes ];
|
|
|
|
};
|
|
|
|
}
|