2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2020-12-13 04:14:54 +01:00
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, extra-cmake-modules
|
|
|
|
, fcitx5
|
|
|
|
, fcitx5-qt
|
|
|
|
, qtx11extras
|
2021-01-16 04:16:10 +01:00
|
|
|
, qtquickcontrols2
|
2020-12-13 04:14:54 +01:00
|
|
|
, kwidgetsaddons
|
|
|
|
, kdeclarative
|
|
|
|
, kirigami2
|
|
|
|
, isocodes
|
|
|
|
, xkeyboardconfig
|
|
|
|
, libxkbfile
|
|
|
|
, libXdmcp
|
|
|
|
, kcmSupport ? true
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "fcitx5-configtool";
|
2021-04-26 17:46:02 +02:00
|
|
|
version = "5.0.4";
|
2020-12-13 04:14:54 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fcitx";
|
|
|
|
repo = "fcitx5-configtool";
|
|
|
|
rev = version;
|
2021-04-26 17:46:02 +02:00
|
|
|
sha256 = "sha256-UO3Ob+bFQ/2Vqb8YpD9tfmfZt5YLUyoqcbtsHLaVOzE=";
|
2020-12-13 04:14:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DKDE_INSTALL_USE_QT_SYS_PATHS=ON"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
extra-cmake-modules
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
fcitx5
|
|
|
|
fcitx5-qt
|
|
|
|
qtx11extras
|
2021-01-16 04:16:10 +01:00
|
|
|
qtquickcontrols2
|
2020-12-13 04:14:54 +01:00
|
|
|
kirigami2
|
|
|
|
isocodes
|
|
|
|
xkeyboardconfig
|
|
|
|
libxkbfile
|
|
|
|
libXdmcp
|
2021-01-15 10:19:50 +01:00
|
|
|
] ++ lib.optionals kcmSupport [
|
2020-12-13 04:14:54 +01:00
|
|
|
kdeclarative
|
|
|
|
kwidgetsaddons
|
|
|
|
];
|
|
|
|
|
2021-01-15 10:19:50 +01:00
|
|
|
meta = with lib; {
|
2020-12-13 04:14:54 +01:00
|
|
|
description = "Configuration Tool for Fcitx5";
|
|
|
|
homepage = "https://github.com/fcitx/fcitx5-configtool";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ poscat ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|