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
|
2022-07-14 12:49:19 +00:00
|
|
|
, plasma5Packages
|
|
|
|
, plasma-framework
|
2021-01-15 22:18:51 +00:00
|
|
|
, kcmSupport ? true
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "fcitx5-configtool";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "5.1.2";
|
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;
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-DtMskuPpiL1GshoUH1dDazvwHDhmr9gb93V3TRIMxxg=";
|
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
|
2022-07-14 12:49:19 +00:00
|
|
|
plasma5Packages.kiconthemes
|
|
|
|
plasma-framework
|
2021-01-15 22:18:51 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
2022-12-17 10:02:37 +00:00
|
|
|
mainProgram = "fcitx5-config-qt";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
}
|