Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1.0 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
cmake,
extra-cmake-modules,
gettext,
fcitx5,
fcitx5-qt,
libskk,
qtbase,
skkDictionaries,
enableQt ? false,
}:
stdenv.mkDerivation rec {
pname = "fcitx5-skk";
version = "5.1.7";
src = fetchFromGitHub {
owner = "fcitx";
repo = pname;
rev = version;
hash = "sha256-WMkcZSocanhWMn9kiWyB07jEW4x84G07kAYvn5heenc=";
};
nativeBuildInputs = [
cmake
extra-cmake-modules
gettext
pkg-config
];
buildInputs = [
fcitx5
libskk
]
++ lib.optionals enableQt [
fcitx5-qt
qtbase
];
cmakeFlags = [
(lib.cmakeBool "ENABLE_QT" enableQt)
"-DSKK_DEFAULT_PATH=${skkDictionaries.l}/share/skk/SKK-JISYO.L"
];
dontWrapQtApps = true;
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; [ wattmto ];
platforms = platforms.linux;
};
}