depot/third_party/nixpkgs/pkgs/tools/inputmethods/fcitx5/fcitx5-skk.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

55 lines
1 KiB
Nix

{ 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.1.1";
src = fetchFromGitHub {
owner = "fcitx";
repo = pname;
rev = version;
sha256 = "sha256-a+ZsuFEan61U0oOuhrTFoK5J4Vd0jj463jQ8Mk7TdbA=";
};
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;
};
}