16 , qtquickcontrols2 ? null
25 , plasma-framework ? null
30 stdenv.mkDerivation rec {
31 pname = "fcitx5-configtool";
34 src = fetchFromGitHub {
38 hash = "sha256-6Slh1uZglRNBLQ1ziKf2xaP+NK6Abug/6TZcYy2HFPQ=";
42 (lib.cmakeBool "KDE_INSTALL_USE_QT_SYS_PATHS" true)
43 (lib.cmakeBool "ENABLE_KCM" kcmSupport)
44 (lib.cmakeBool "USE_QT6" (lib.versions.major qtbase.version == "6"))
65 ] ++ lib.optionals (lib.versions.major qtbase.version == "5") [
67 ] ++ lib.optionals kcmSupport ([
71 ] ++ lib.optionals (lib.versions.major qtbase.version == "5") [
75 ] ++ lib.optionals (lib.versions.major qtbase.version == "6") [
81 description = "Configuration Tool for Fcitx5";
82 homepage = "https://github.com/fcitx/fcitx5-configtool";
83 license = licenses.gpl2Plus;
84 maintainers = with maintainers; [ poscat ];
85 platforms = platforms.linux;
86 mainProgram = "fcitx5-config-qt";