fcitx5-sitelen-pona: init at 1.1.0 (#513522)

This commit is contained in:
Sandro
2026-06-19 12:50:33 +00:00
committed by GitHub
2 changed files with 76 additions and 0 deletions
+6
View File
@@ -26291,6 +26291,12 @@
githubId = 4061736;
name = "Severen Redwood";
};
ssnoer = {
email = "ssnoer@proton.me";
github = "Seba244c";
githubId = 23051740;
name = "Sebastian August Snoer";
};
sstef = {
email = "stephane@nix.frozenid.net";
github = "haskelious";
@@ -0,0 +1,70 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
libime,
fcitx5,
qt6Packages,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "fcitx5-sitelen-pona";
version = "1.1.0";
src = fetchFromGitHub {
owner = "Toastberries";
repo = "fcitx5-sitelen-pona";
tag = "v${finalAttrs.version}";
hash = "sha256-ZLp/p5umewp1seXFPtMevVBXfoNwHXAojYl5jWHHsTU=";
};
strictDeps = true;
nativeBuildInputs = [ libime ];
buildInputs = [
fcitx5
qt6Packages.fcitx5-chinese-addons
];
buildPhase = ''
runHook preBuild
mkdir -p fcitx5/table
for file in table_sources/*; do
libime_tabledict "$file" "fcitx5/table/$(basename "$file" .txt).dict"
done
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/share/fcitx5
cp -r fcitx5/{inputmethod,punctuation,table} "$out/share/fcitx5/"
mkdir -p $out/share/icons/hicolor/scalable/status
for icon in icons/*; do
install -Dm644 "$icon" "$out/share/icons/hicolor/scalable/status/fcitx5-$(basename "$icon")"
done
runHook postInstall
'';
__structuredAttrs = true;
meta = {
inherit (fcitx5.meta) platforms;
description = "IME using Fcitx5 for writing toki pona's sitelen pona glyphs";
longDescription = ''
This tool is an IME using Fcitx5
With it, you can easily write toki pona's sitelen pona glyphs
Simply type your words in latin characters, and they'll be changed into sitelen pona
'';
homepage = "https://github.com/Toastberries/fcitx5-sitelen-pona";
changelog = "https://github.com/Toastberries/fcitx5-sitelen-pona/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ssnoer ];
};
})