Merge pull request #279683 from NickCao/fcitx5-qt6

fcitx5-*: build for both qt versions

authored by Nick Cao and committed by GitHub 3d01643d c999f2e3

+99 -40
+9 -2
pkgs/tools/inputmethods/fcitx5/fcitx5-chinese-addons.nix
··· 1 { lib 2 - , mkDerivation 3 , fetchurl 4 , fetchFromGitHub 5 , cmake ··· 13 , opencc 14 , curl 15 , fmt 16 , luaSupport ? true 17 }: 18 ··· 29 }; 30 in 31 32 - mkDerivation rec { 33 pname = "fcitx5-chinese-addons"; 34 version = "5.1.4"; 35 ··· 61 qtwebengine 62 fmt 63 ] ++ lib.optional luaSupport fcitx5-lua; 64 65 meta = with lib; { 66 description = "Addons related to Chinese, including IME previous bundled inside fcitx4";
··· 1 { lib 2 + , stdenv 3 , fetchurl 4 , fetchFromGitHub 5 , cmake ··· 13 , opencc 14 , curl 15 , fmt 16 + , qtbase 17 , luaSupport ? true 18 }: 19 ··· 30 }; 31 in 32 33 + stdenv.mkDerivation rec { 34 pname = "fcitx5-chinese-addons"; 35 version = "5.1.4"; 36 ··· 62 qtwebengine 63 fmt 64 ] ++ lib.optional luaSupport fcitx5-lua; 65 + 66 + cmakeFlags = [ 67 + (lib.cmakeBool "USE_QT6" (lib.versions.major qtbase.version == "6")) 68 + ]; 69 + 70 + dontWrapQtApps = true; 71 72 meta = with lib; { 73 description = "Addons related to Chinese, including IME previous bundled inside fcitx4";
+38 -17
pkgs/tools/inputmethods/fcitx5/fcitx5-configtool.nix
··· 1 { lib 2 - , mkDerivation 3 , fetchFromGitHub 4 , cmake 5 , extra-cmake-modules 6 , fcitx5 7 , fcitx5-qt 8 - , qtx11extras 9 - , qtquickcontrols2 10 , kwidgetsaddons 11 , kdeclarative 12 - , kirigami2 13 , isocodes 14 , xkeyboardconfig 15 , libxkbfile 16 - , libXdmcp 17 - , plasma5Packages 18 - , plasma-framework 19 , kcmSupport ? true 20 }: 21 22 - mkDerivation rec { 23 pname = "fcitx5-configtool"; 24 version = "5.1.4"; 25 ··· 31 }; 32 33 cmakeFlags = [ 34 - "-DKDE_INSTALL_USE_QT_SYS_PATHS=ON" 35 ]; 36 37 nativeBuildInputs = [ 38 cmake 39 extra-cmake-modules 40 ]; 41 42 buildInputs = [ 43 fcitx5 44 fcitx5-qt 45 - qtx11extras 46 - qtquickcontrols2 47 - kirigami2 48 isocodes 49 xkeyboardconfig 50 libxkbfile 51 - libXdmcp 52 - ] ++ lib.optionals kcmSupport [ 53 kdeclarative 54 - kwidgetsaddons 55 - plasma5Packages.kiconthemes 56 plasma-framework 57 - ]; 58 59 meta = with lib; { 60 description = "Configuration Tool for Fcitx5";
··· 1 { lib 2 + , stdenv 3 , fetchFromGitHub 4 , cmake 5 , extra-cmake-modules 6 + , pkg-config 7 , fcitx5 8 , fcitx5-qt 9 + , qtbase 10 + , qtsvg 11 + , qtwayland 12 + , qtdeclarative 13 + , qtx11extras ? null 14 + , kitemviews 15 , kwidgetsaddons 16 + , qtquickcontrols2 ? null 17 + , kcoreaddons 18 , kdeclarative 19 + , kirigami ? null 20 + , kirigami2 ? null 21 , isocodes 22 , xkeyboardconfig 23 , libxkbfile 24 + , libplasma ? null 25 + , plasma-framework ? null 26 + , wrapQtAppsHook 27 , kcmSupport ? true 28 }: 29 30 + stdenv.mkDerivation rec { 31 pname = "fcitx5-configtool"; 32 version = "5.1.4"; 33 ··· 39 }; 40 41 cmakeFlags = [ 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")) 45 ]; 46 47 nativeBuildInputs = [ 48 cmake 49 extra-cmake-modules 50 + pkg-config 51 + wrapQtAppsHook 52 ]; 53 54 buildInputs = [ 55 fcitx5 56 fcitx5-qt 57 + qtbase 58 + qtsvg 59 + qtwayland 60 + kitemviews 61 + kwidgetsaddons 62 isocodes 63 xkeyboardconfig 64 libxkbfile 65 + ] ++ lib.optionals (lib.versions.major qtbase.version == "5") [ 66 + qtx11extras 67 + ] ++ lib.optionals kcmSupport ([ 68 + qtdeclarative 69 + kcoreaddons 70 kdeclarative 71 + ] ++ lib.optionals (lib.versions.major qtbase.version == "5") [ 72 + qtquickcontrols2 73 plasma-framework 74 + kirigami2 75 + ] ++ lib.optionals (lib.versions.major qtbase.version == "6") [ 76 + libplasma 77 + kirigami 78 + ]); 79 80 meta = with lib; { 81 description = "Configuration Tool for Fcitx5";
+5 -3
pkgs/tools/inputmethods/fcitx5/fcitx5-skk.nix
··· 10 , libskk 11 , qtbase 12 , skk-dicts 13 - , wrapQtAppsHook 14 , enableQt ? false 15 }: 16 ··· 30 extra-cmake-modules 31 gettext 32 pkg-config 33 - ] ++ lib.optional enableQt wrapQtAppsHook; 34 35 buildInputs = [ 36 fcitx5 ··· 41 ]; 42 43 cmakeFlags = [ 44 - "-DENABLE_QT=${toString enableQt}" 45 "-DSKK_DEFAULT_PATH=${skk-dicts}/share/SKK-JISYO.L" 46 ]; 47 48 meta = with lib; { 49 description = "Input method engine for Fcitx5, which uses libskk as its backend";
··· 10 , libskk 11 , qtbase 12 , skk-dicts 13 , enableQt ? false 14 }: 15 ··· 29 extra-cmake-modules 30 gettext 31 pkg-config 32 + ]; 33 34 buildInputs = [ 35 fcitx5 ··· 40 ]; 41 42 cmakeFlags = [ 43 + (lib.cmakeBool "ENABLE_QT" enableQt) 44 + (lib.cmakeBool "USE_QT6" (lib.versions.major qtbase.version == "6")) 45 "-DSKK_DEFAULT_PATH=${skk-dicts}/share/SKK-JISYO.L" 46 ]; 47 + 48 + dontWrapQtApps = true; 49 50 meta = with lib; { 51 description = "Input method engine for Fcitx5, which uses libskk as its backend";
+17 -3
pkgs/tools/inputmethods/fcitx5/fcitx5-unikey.nix
··· 6 , fcitx5 7 , fcitx5-qt 8 , gettext 9 - , wrapQtAppsHook 10 }: 11 12 stdenv.mkDerivation rec { ··· 20 sha256 = "sha256-wrsA0gSexOZgsJunozt49GyP9R3Xe2Aci7Q8p3zAM9Q="; 21 }; 22 23 - nativeBuildInputs = [ cmake extra-cmake-modules wrapQtAppsHook ]; 24 25 - buildInputs = [ fcitx5 fcitx5-qt gettext ]; 26 27 meta = with lib; { 28 description = "Unikey engine support for Fcitx5";
··· 6 , fcitx5 7 , fcitx5-qt 8 , gettext 9 + , qtbase 10 }: 11 12 stdenv.mkDerivation rec { ··· 20 sha256 = "sha256-wrsA0gSexOZgsJunozt49GyP9R3Xe2Aci7Q8p3zAM9Q="; 21 }; 22 23 + nativeBuildInputs = [ 24 + cmake 25 + extra-cmake-modules 26 + ]; 27 28 + buildInputs = [ 29 + qtbase 30 + fcitx5 31 + fcitx5-qt 32 + gettext 33 + ]; 34 + 35 + cmakeFlags = [ 36 + (lib.cmakeBool "USE_QT6" (lib.versions.major qtbase.version == "6")) 37 + ]; 38 + 39 + dontWrapQtApps = true; 40 41 meta = with lib; { 42 description = "Unikey engine support for Fcitx5";
+6
pkgs/top-level/aliases.nix
··· 321 fcitx-engines = throw "fcitx-engines is deprecated, please use fcitx5 instead."; # Added 2023-03-13 322 fcitx-configtool = throw "fcitx-configtool is deprecated, please use fcitx5 instead."; # Added 2023-03-13 323 324 ### G ### 325 326 g4py = python3Packages.geant4; # Added 2020-06-06
··· 321 fcitx-engines = throw "fcitx-engines is deprecated, please use fcitx5 instead."; # Added 2023-03-13 322 fcitx-configtool = throw "fcitx-configtool is deprecated, please use fcitx5 instead."; # Added 2023-03-13 323 324 + fcitx5-chinese-addons = libsForQt5.fcitx5-chinese-addons; # Added 2024-03-01 325 + fcitx5-configtool = libsForQt5.fcitx5-configtool; # Added 2024-03-01 326 + fcitx5-skk-qt = libsForQt5.fcitx5-skk-qt; # Added 2024-03-01 327 + fcitx5-unikey = libsForQt5.fcitx5-unikey; # Added 2024-03-01 328 + fcitx5-with-addons = libsForQt5.fcitx5-with-addons; # Added 2024-03-01 329 + 330 ### G ### 331 332 g4py = python3Packages.geant4; # Added 2020-06-06
+3 -15
pkgs/top-level/all-packages.nix
··· 8042 8043 chewing-editor = libsForQt5.callPackage ../applications/misc/chewing-editor { }; 8044 8045 - fcitx5 = libsForQt5.callPackage ../tools/inputmethods/fcitx5 { }; 8046 - 8047 - fcitx5-with-addons = callPackage ../tools/inputmethods/fcitx5/with-addons.nix { }; 8048 8049 fcitx5-bamboo = callPackage ../tools/inputmethods/fcitx5/fcitx5-bamboo.nix { }; 8050 8051 - fcitx5-chinese-addons = libsForQt5.callPackage ../tools/inputmethods/fcitx5/fcitx5-chinese-addons.nix { }; 8052 - 8053 fcitx5-mozc = libsForQt5.callPackage ../tools/inputmethods/fcitx5/fcitx5-mozc.nix { 8054 abseil-cpp = abseil-cpp.override { 8055 cxxStandard = "17"; 8056 }; 8057 }; 8058 8059 - fcitx5-skk = libsForQt5.callPackage ../tools/inputmethods/fcitx5/fcitx5-skk.nix { }; 8060 - 8061 - fcitx5-skk-qt = fcitx5-skk.override { 8062 - enableQt = true; 8063 - }; 8064 - 8065 - fcitx5-unikey = libsForQt5.callPackage ../tools/inputmethods/fcitx5/fcitx5-unikey.nix { }; 8066 - 8067 - fcitx5-configtool = libsForQt5.callPackage ../tools/inputmethods/fcitx5/fcitx5-configtool.nix { }; 8068 8069 fcitx5-anthy = callPackage ../tools/inputmethods/fcitx5/fcitx5-anthy.nix { }; 8070 ··· 24410 qt6 = recurseIntoAttrs (callPackage ../development/libraries/qt-6 { }); 24411 24412 qt6Packages = recurseIntoAttrs (import ./qt6-packages.nix { 24413 - inherit lib __splicedPackages makeScopeWithSplicing' generateSplicesForMkScope pkgsHostTarget; 24414 stdenv = if stdenv.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv; 24415 }); 24416
··· 8042 8043 chewing-editor = libsForQt5.callPackage ../applications/misc/chewing-editor { }; 8044 8045 + fcitx5 = callPackage ../tools/inputmethods/fcitx5 { }; 8046 8047 fcitx5-bamboo = callPackage ../tools/inputmethods/fcitx5/fcitx5-bamboo.nix { }; 8048 8049 fcitx5-mozc = libsForQt5.callPackage ../tools/inputmethods/fcitx5/fcitx5-mozc.nix { 8050 abseil-cpp = abseil-cpp.override { 8051 cxxStandard = "17"; 8052 }; 8053 }; 8054 8055 + fcitx5-skk = qt6Packages.callPackage ../tools/inputmethods/fcitx5/fcitx5-skk.nix { }; 8056 8057 fcitx5-anthy = callPackage ../tools/inputmethods/fcitx5/fcitx5-anthy.nix { }; 8058 ··· 24398 qt6 = recurseIntoAttrs (callPackage ../development/libraries/qt-6 { }); 24399 24400 qt6Packages = recurseIntoAttrs (import ./qt6-packages.nix { 24401 + inherit lib __splicedPackages makeScopeWithSplicing' generateSplicesForMkScope pkgsHostTarget kdePackages; 24402 stdenv = if stdenv.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv; 24403 }); 24404
+10
pkgs/top-level/qt5-packages.nix
··· 100 101 fcitx5-qt = callPackage ../tools/inputmethods/fcitx5/fcitx5-qt.nix { }; 102 103 futuresql = callPackage ../development/libraries/futuresql { }; 104 105 qgpgme = callPackage ../development/libraries/gpgme { };
··· 100 101 fcitx5-qt = callPackage ../tools/inputmethods/fcitx5/fcitx5-qt.nix { }; 102 103 + fcitx5-chinese-addons = callPackage ../tools/inputmethods/fcitx5/fcitx5-chinese-addons.nix { }; 104 + 105 + fcitx5-configtool = callPackage ../tools/inputmethods/fcitx5/fcitx5-configtool.nix { }; 106 + 107 + fcitx5-skk-qt = callPackage ../tools/inputmethods/fcitx5/fcitx5-skk.nix { enableQt = true; }; 108 + 109 + fcitx5-unikey = callPackage ../tools/inputmethods/fcitx5/fcitx5-unikey.nix { }; 110 + 111 + fcitx5-with-addons = callPackage ../tools/inputmethods/fcitx5/with-addons.nix { }; 112 + 113 futuresql = callPackage ../development/libraries/futuresql { }; 114 115 qgpgme = callPackage ../development/libraries/gpgme { };
+11
pkgs/top-level/qt6-packages.nix
··· 10 , generateSplicesForMkScope 11 , stdenv 12 , pkgsHostTarget 13 }: 14 15 let ··· 32 accounts-qt = callPackage ../development/libraries/accounts-qt { }; 33 appstream-qt = callPackage ../development/libraries/appstream/qt.nix { }; 34 35 fcitx5-qt = callPackage ../tools/inputmethods/fcitx5/fcitx5-qt.nix { }; 36 37 kdsoap = callPackage ../development/libraries/kdsoap { }; 38
··· 10 , generateSplicesForMkScope 11 , stdenv 12 , pkgsHostTarget 13 + , kdePackages 14 }: 15 16 let ··· 33 accounts-qt = callPackage ../development/libraries/accounts-qt { }; 34 appstream-qt = callPackage ../development/libraries/appstream/qt.nix { }; 35 36 + fcitx5-chinese-addons = callPackage ../tools/inputmethods/fcitx5/fcitx5-chinese-addons.nix { }; 37 + 38 + fcitx5-configtool = kdePackages.callPackage ../tools/inputmethods/fcitx5/fcitx5-configtool.nix { }; 39 + 40 fcitx5-qt = callPackage ../tools/inputmethods/fcitx5/fcitx5-qt.nix { }; 41 + 42 + fcitx5-skk-qt = callPackage ../tools/inputmethods/fcitx5/fcitx5-skk.nix { enableQt = true; }; 43 + 44 + fcitx5-unikey = callPackage ../tools/inputmethods/fcitx5/fcitx5-unikey.nix { }; 45 + 46 + fcitx5-with-addons = callPackage ../tools/inputmethods/fcitx5/with-addons.nix { }; 47 48 kdsoap = callPackage ../development/libraries/kdsoap { }; 49