fcitx5-toki-pona: init
This commit is contained in:
37
pkgs/fcitx5-toki-pona/default.nix
Normal file
37
pkgs/fcitx5-toki-pona/default.nix
Normal 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
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user