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 = "4b4314d642c647bc714c8876460b6779facda89c";
|
|
# rev = "icons";
|
|
hash = "sha256-5Keg+7AYkELYAlJkPszcjHgJ6TwBxnwNd3cpxSOEbGc=";
|
|
};
|
|
# 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
|
|
'';
|
|
}
|