Add toki pona ibus

This commit is contained in:
Charlotte 🦝 Delenk 2022-05-17 14:28:48 +01:00
parent 2502360bb2
commit ce67ad865e
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
2 changed files with 19 additions and 0 deletions

View file

@ -60,6 +60,7 @@ in
table
table-others
uniemoji
(pkgs.callPackage ../packages/ibus-tp.nix { })
];
};
# For syncthing

18
packages/ibus-tp.nix Normal file
View file

@ -0,0 +1,18 @@
{ stdenvNoCC, fetchFromGitHub, ibus, ibus-table }: stdenvNoCC.mkDerivation rec {
pname = "ibus-toki-pona";
version = "20220215";
src = fetchFromGitHub {
owner = "Id405";
repo = "sitelen-pona-ucsur-guide";
rev = "43da00449a99c0b8aaa6f5099d0dc1f795c7c39f";
sha256 = "sha256-CIa0wJnv1G0jpS8l2cjEFey1pdQuJPftiwZ5MZyriJ8=";
};
buildInputs = [ ibus ibus-table ];
buildPhase = ''
ibus-table-createdb -n tokipona.db tokipona.txt
'';
installPhase = ''
install -m444 -Dt $out/share/ibus-table/tables tokipona.db
'';
}