42 lines
875 B
Nix
42 lines
875 B
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, kdePackages
|
|
, python3
|
|
, libime
|
|
, lib
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "fcitx5-toki-pona";
|
|
version = "git";
|
|
src = fetchFromGitHub {
|
|
owner = "msyds";
|
|
repo = "fcitx5-toki-pona";
|
|
rev = "0af2ffdf3cf058d9f9b2c2e897a7a92dbf800cd0";
|
|
# rev = "icons";
|
|
hash = "sha256-7Dkq5KJF1yNO8mq3ZKNjxiEiGgp9v18KDn1d/5glwPY=";
|
|
};
|
|
# src = /home/msyds/git/fcitx5-toki-pona;
|
|
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/*
|
|
find icons -name '*.png' -exec install -Dm644 {} "$out/share/{}" \;
|
|
runHook postInstall
|
|
'';
|
|
}
|