2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-12-13 03:07:21 +00:00
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, extra-cmake-modules
|
|
|
|
, fcitx5
|
|
|
|
, qtx11extras
|
|
|
|
, libxcb
|
|
|
|
, libXdmcp
|
2021-01-17 16:52:53 +00:00
|
|
|
, qtbase
|
2020-12-13 03:07:21 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "fcitx5-qt";
|
2021-05-06 14:28:27 +01:00
|
|
|
version = "5.0.6";
|
2020-12-13 03:07:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fcitx";
|
|
|
|
repo = "fcitx5-qt";
|
|
|
|
rev = version;
|
2021-05-06 14:28:27 +01:00
|
|
|
sha256 = "sha256-Y7X4pkBSf5FMpf1mdyLvr1QWhqz3yC4iOGXDvvvV9Yw=";
|
2020-12-13 03:07:21 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 16:52:53 +00:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace qt5/platforminputcontext/CMakeLists.txt \
|
|
|
|
--replace \$"{CMAKE_INSTALL_QT5PLUGINDIR}" $out/${qtbase.qtPluginPrefix}
|
|
|
|
'';
|
|
|
|
|
2020-12-13 03:07:21 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DENABLE_QT4=0"
|
2021-01-17 16:52:53 +00:00
|
|
|
"-DENABLE_QT6=0"
|
2020-12-13 03:07:21 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
extra-cmake-modules
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
fcitx5
|
|
|
|
qtx11extras
|
|
|
|
libxcb
|
|
|
|
libXdmcp
|
|
|
|
];
|
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
meta = with lib; {
|
2020-12-13 03:07:21 +00:00
|
|
|
description = "Fcitx5 Qt Library";
|
|
|
|
homepage = "https://github.com/fcitx/fcitx5-qt";
|
|
|
|
license = with licenses; [ lgpl21Plus bsd3 ];
|
|
|
|
maintainers = with maintainers; [ poscat ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|