2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-12-13 03:14:54 +00:00
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, extra-cmake-modules
|
|
|
|
, fcitx5
|
|
|
|
, fcitx5-qt
|
|
|
|
, qtx11extras
|
2021-01-16 03:16:10 +00:00
|
|
|
, qtquickcontrols2
|
2020-12-13 03:14:54 +00:00
|
|
|
, kwidgetsaddons
|
|
|
|
, kdeclarative
|
|
|
|
, kirigami2
|
|
|
|
, isocodes
|
|
|
|
, xkeyboardconfig
|
|
|
|
, libxkbfile
|
|
|
|
, libXdmcp
|
2022-07-11 13:47:36 +00:00
|
|
|
, plasma5Packages
|
|
|
|
, plasma-framework
|
2020-12-13 03:14:54 +00:00
|
|
|
, kcmSupport ? true
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "fcitx5-configtool";
|
2022-11-20 12:05:56 +00:00
|
|
|
version = "5.0.16";
|
2020-12-13 03:14:54 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fcitx";
|
2021-06-02 12:42:16 +00:00
|
|
|
repo = pname;
|
2020-12-13 03:14:54 +00:00
|
|
|
rev = version;
|
2022-11-20 12:05:56 +00:00
|
|
|
sha256 = "sha256-jTvYzLRXiaoJWgPnFV+N28tId/7uuYtbD4x2+Hy/SdA=";
|
2020-12-13 03:14:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DKDE_INSTALL_USE_QT_SYS_PATHS=ON"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
extra-cmake-modules
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
fcitx5
|
|
|
|
fcitx5-qt
|
|
|
|
qtx11extras
|
2021-01-16 03:16:10 +00:00
|
|
|
qtquickcontrols2
|
2020-12-13 03:14:54 +00:00
|
|
|
kirigami2
|
|
|
|
isocodes
|
|
|
|
xkeyboardconfig
|
|
|
|
libxkbfile
|
|
|
|
libXdmcp
|
2021-01-15 09:19:50 +00:00
|
|
|
] ++ lib.optionals kcmSupport [
|
2020-12-13 03:14:54 +00:00
|
|
|
kdeclarative
|
|
|
|
kwidgetsaddons
|
2022-07-11 13:47:36 +00:00
|
|
|
plasma5Packages.kiconthemes
|
|
|
|
plasma-framework
|
2020-12-13 03:14:54 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
meta = with lib; {
|
2020-12-13 03:14:54 +00:00
|
|
|
description = "Configuration Tool for Fcitx5";
|
|
|
|
homepage = "https://github.com/fcitx/fcitx5-configtool";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ poscat ];
|
|
|
|
platforms = platforms.linux;
|
2022-12-15 05:36:35 +00:00
|
|
|
mainProgram = "fcitx5-config-qt";
|
2020-12-13 03:14:54 +00:00
|
|
|
};
|
|
|
|
}
|