2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2021-01-15 22:18:51 +00:00
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, extra-cmake-modules
|
|
|
|
, fcitx5
|
|
|
|
, fcitx5-qt
|
|
|
|
, qtx11extras
|
2021-02-05 17:12:51 +00:00
|
|
|
, qtquickcontrols2
|
2021-01-15 22:18:51 +00:00
|
|
|
, kwidgetsaddons
|
|
|
|
, kdeclarative
|
|
|
|
, kirigami2
|
|
|
|
, isocodes
|
|
|
|
, xkeyboardconfig
|
|
|
|
, libxkbfile
|
|
|
|
, libXdmcp
|
|
|
|
, kcmSupport ? true
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "fcitx5-configtool";
|
2022-01-13 20:06:32 +00:00
|
|
|
version = "5.0.10";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fcitx";
|
2021-06-04 09:07:49 +00:00
|
|
|
repo = pname;
|
2021-01-15 22:18:51 +00:00
|
|
|
rev = version;
|
2022-01-13 20:06:32 +00:00
|
|
|
sha256 = "sha256-PrzMKATv//LNGXl82J8dirNOjl6EDvlzGiarkMLaQqs=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DKDE_INSTALL_USE_QT_SYS_PATHS=ON"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
extra-cmake-modules
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
fcitx5
|
|
|
|
fcitx5-qt
|
|
|
|
qtx11extras
|
2021-02-05 17:12:51 +00:00
|
|
|
qtquickcontrols2
|
2021-01-15 22:18:51 +00:00
|
|
|
kirigami2
|
|
|
|
isocodes
|
|
|
|
xkeyboardconfig
|
|
|
|
libxkbfile
|
|
|
|
libXdmcp
|
|
|
|
] ++ lib.optionals kcmSupport [
|
|
|
|
kdeclarative
|
|
|
|
kwidgetsaddons
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Configuration Tool for Fcitx5";
|
|
|
|
homepage = "https://github.com/fcitx/fcitx5-configtool";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ poscat ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|