fcitx5-toki-pona: init

This commit is contained in:
2026-03-11 13:43:26 -06:00
parent 53bf019e26
commit 12a5095325

View File

@@ -0,0 +1,37 @@
{ stdenv
, fetchFromGitHub
, kdePackages
, python3
, libime
}:
stdenv.mkDerivation {
pname = "fcitx5-toki-pona";
version = "git";
src = fetchFromGitHub {
owner = "plasmaofthedawn";
repo = "fcitx5-toki-pona";
rev = "16038e7f3b9d7435862aa15b792153ae9dd61cef";
hash = "sha256-USYdHNf/lTvnkqPcpjaf2QaTWJNSkuMa7aaPAZQcbFM=";
};
buildInputs = [
kdePackages.fcitx5-chinese-addons
];
nativeBuildInputs = [
python3
libime
];
buildPhase = ''
runHook preBuild
python3 combine.py
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -Dm644 -t $out/share/fcitx5/table table/*
install -Dm644 -t $out/share/fcitx5/inputmethod confs/*
runHook postInstall
'';
}