17 qtquickcontrols2 ? null,
26 plasma-framework ? null,
31 stdenv.mkDerivation rec {
32 pname = "fcitx5-configtool";
35 src = fetchFromGitHub {
39 hash = "sha256-6Slh1uZglRNBLQ1ziKf2xaP+NK6Abug/6TZcYy2HFPQ=";
43 (lib.cmakeBool "KDE_INSTALL_USE_QT_SYS_PATHS" true)
44 (lib.cmakeBool "ENABLE_KCM" kcmSupport)
45 (lib.cmakeBool "USE_QT6" (lib.versions.major qtbase.version == "6"))
68 ++ lib.optionals (lib.versions.major qtbase.version == "5") [
71 ++ lib.optionals kcmSupport (
77 ++ lib.optionals (lib.versions.major qtbase.version == "5") [
82 ++ lib.optionals (lib.versions.major qtbase.version == "6") [
89 description = "Configuration Tool for Fcitx5";
90 homepage = "https://github.com/fcitx/fcitx5-configtool";
91 license = licenses.gpl2Plus;
92 maintainers = with maintainers; [ poscat ];
93 platforms = platforms.linux;
94 mainProgram = "fcitx5-config-qt";