This repository has been archived on 2024-10-13. You can view files and clone it, but cannot push or open issues or pull requests.
nix-packages/i18n/fcitx5/gen-unicode-data.nix

30 lines
646 B
Nix
Raw Normal View History

2023-06-10 16:13:26 +00:00
{
python3,
unicode-character-database,
unihan-database,
stdenv,
}:
stdenv.mkDerivation {
pname = "fcitx5-unicode-data";
inherit (unicode-character-database) version;
src = ./.;
nativeBuildInputs = [python3];
buildPhase = ''
cp ${unicode-character-database}/share/unicode/UnicodeData.txt .
cp ${unicode-character-database}/share/unicode/NamesList.txt .
cp ${unicode-character-database}/share/unicode/Blocks.txt .
cp ${unihan-database}/share/unicode/Unihan_Readings.txt .
python3 gen.py
'';
installPhase = ''
mkdir $out
cp kcharselect-data $out
cp kcharselect-translation.cpp $out
'';
}