diff options
author | milran <milranmike@protonmail.com> | 2023-03-17 23:26:12 +0900 |
---|---|---|
committer | milran <milranmike@protonmail.com> | 2023-04-24 18:18:08 +0900 |
commit | 82247b07934e6d99fbd2af2b20f15cbaaf246f6f (patch) | |
tree | f11a67cfaffe437c132410531f66ff4fdf422f79 | |
parent | 88c6ed1f0705965def03c16f21c6bf86619449cd (diff) | |
download | nixlib-82247b07934e6d99fbd2af2b20f15cbaaf246f6f.tar nixlib-82247b07934e6d99fbd2af2b20f15cbaaf246f6f.tar.gz nixlib-82247b07934e6d99fbd2af2b20f15cbaaf246f6f.tar.bz2 nixlib-82247b07934e6d99fbd2af2b20f15cbaaf246f6f.tar.lz nixlib-82247b07934e6d99fbd2af2b20f15cbaaf246f6f.tar.xz nixlib-82247b07934e6d99fbd2af2b20f15cbaaf246f6f.tar.zst nixlib-82247b07934e6d99fbd2af2b20f15cbaaf246f6f.zip |
fcitx5-skk,fcitx5-skk-qt: init at 5.0.15
fcitx5-skk is an input method engine for Fcitx5, which uses libskk as its backend. https://github.com/fcitx/fcitx5-skk
-rw-r--r-- | pkgs/tools/inputmethods/fcitx5/fcitx5-skk.nix | 55 | ||||
-rwxr-xr-x | pkgs/tools/inputmethods/fcitx5/update.py | 1 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 6 |
3 files changed, 62 insertions, 0 deletions
diff --git a/pkgs/tools/inputmethods/fcitx5/fcitx5-skk.nix b/pkgs/tools/inputmethods/fcitx5/fcitx5-skk.nix new file mode 100644 index 000000000000..42ffa524a420 --- /dev/null +++ b/pkgs/tools/inputmethods/fcitx5/fcitx5-skk.nix @@ -0,0 +1,55 @@ +{ lib +, stdenv +, fetchFromGitHub +, pkg-config +, cmake +, extra-cmake-modules +, gettext +, fcitx5 +, fcitx5-qt +, libskk +, qtbase +, skk-dicts +, wrapQtAppsHook +, enableQt ? false +}: + +stdenv.mkDerivation rec { + pname = "fcitx5-skk"; + version = "5.0.15"; + + src = fetchFromGitHub { + owner = "fcitx"; + repo = pname; + rev = version; + sha256 = "sha256-y5GciWJMEFQM8SsqYANXe/SdVq6GEqsfF1yrKKhw0KA="; + }; + + nativeBuildInputs = [ + cmake + extra-cmake-modules + gettext + pkg-config + ] ++ lib.optional enableQt wrapQtAppsHook; + + buildInputs = [ + fcitx5 + libskk + ] ++ lib.optionals enableQt [ + fcitx5-qt + qtbase + ]; + + cmakeFlags = [ + "-DENABLE_QT=${toString enableQt}" + "-DSKK_DEFAULT_PATH=${skk-dicts}/share/SKK-JISYO.L" + ]; + + meta = with lib; { + description = "Input method engine for Fcitx5, which uses libskk as its backend"; + homepage = "https://github.com/fcitx/fcitx5-skk"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ milran ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/tools/inputmethods/fcitx5/update.py b/pkgs/tools/inputmethods/fcitx5/update.py index 5e76cd532de2..7fae6c604183 100755 --- a/pkgs/tools/inputmethods/fcitx5/update.py +++ b/pkgs/tools/inputmethods/fcitx5/update.py @@ -21,6 +21,7 @@ REPOS = [ "fcitx5-m17n", "fcitx5-qt", "fcitx5-rime", + "fcitx5-skk", "fcitx5-table-extra", "fcitx5-table-other", "fcitx5-unikey" diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9b37af9bd798..32993f87584c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7316,6 +7316,12 @@ with pkgs; }; }; + fcitx5-skk = libsForQt5.callPackage ../tools/inputmethods/fcitx5/fcitx5-skk.nix { }; + + fcitx5-skk-qt = fcitx5-skk.override { + enableQt = true; + }; + fcitx5-unikey = libsForQt5.callPackage ../tools/inputmethods/fcitx5/fcitx5-unikey.nix { }; fcitx5-configtool = libsForQt5.callPackage ../tools/inputmethods/fcitx5/fcitx5-configtool.nix { }; |