38 lines
742 B
Nix
38 lines
742 B
Nix
{ 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
|
|
'';
|
|
}
|