Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
85 lines
1.6 KiB
Nix
85 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
extra-cmake-modules,
|
|
boost,
|
|
gettext,
|
|
libime,
|
|
fcitx5,
|
|
fcitx5-qt,
|
|
fcitx5-lua,
|
|
qtwebengine,
|
|
opencc,
|
|
curl,
|
|
fmt,
|
|
qtbase,
|
|
luaSupport ? true,
|
|
}:
|
|
|
|
let
|
|
pyStrokeVer = "20250329";
|
|
pyStroke = fetchurl {
|
|
url = "http://download.fcitx-im.org/data/py_stroke-${pyStrokeVer}.tar.gz";
|
|
hash = "sha256-wafKciXTYUq4M1P8gnUDAGqYBEd2IBj1N2BCXXtTA6Y=";
|
|
};
|
|
pyTableVer = "20121124";
|
|
pyTable = fetchurl {
|
|
url = "http://download.fcitx-im.org/data/py_table-${pyTableVer}.tar.gz";
|
|
hash = "sha256-QhRqyX3mwT1V+eme2HORX0xmc56cEVMqNFVrrfl5LAQ=";
|
|
};
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "fcitx5-chinese-addons";
|
|
version = "5.1.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fcitx";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-xHLd7X9IdYTsVyqbghVzdC2i9AVipFHKRxP2Zqq7zGw=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
extra-cmake-modules
|
|
gettext
|
|
fcitx5-lua
|
|
];
|
|
|
|
prePatch = ''
|
|
ln -s ${pyStroke} modules/pinyinhelper/$(stripHash ${pyStroke})
|
|
ln -s ${pyTable} modules/pinyinhelper/$(stripHash ${pyTable})
|
|
'';
|
|
|
|
buildInputs = [
|
|
boost
|
|
fcitx5
|
|
fcitx5-qt
|
|
libime
|
|
curl
|
|
opencc
|
|
qtwebengine
|
|
fmt
|
|
qtbase
|
|
]
|
|
++ lib.optional luaSupport fcitx5-lua;
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
meta = with lib; {
|
|
description = "Addons related to Chinese, including IME previous bundled inside fcitx4";
|
|
mainProgram = "scel2org5";
|
|
homepage = "https://github.com/fcitx/fcitx5-chinese-addons";
|
|
license = with licenses; [
|
|
gpl2Plus
|
|
lgpl21Plus
|
|
];
|
|
maintainers = with maintainers; [ poscat ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|