1 { lib, stdenv, fetchFromGitHub,
2 libtool, gettext, pkg-config,
3 vala, gnome-common, gobject-introspection,
4 libgee, json-glib, skk-dicts, libxkbcommon }:
6 stdenv.mkDerivation rec {
10 src = fetchFromGitHub {
14 sha256 = "0y279pcgs3jrsi9vzx086xhz9jbz23dqqijp4agygc9ackp9sxy5";
17 buildInputs = [ skk-dicts libxkbcommon ];
18 nativeBuildInputs = [ vala gnome-common gobject-introspection libtool gettext pkg-config ];
19 propagatedBuildInputs = [ libgee json-glib ];
25 # link SKK-JISYO.L from skkdicts for the bundled tool `skk`
27 dictDir=$out/share/skk
29 ln -s ${skk-dicts}/share/SKK-JISYO.L $dictDir/
32 enableParallelBuilding = true;
35 description = "A library to deal with Japanese kana-to-kanji conversion method";
37 Libskk is a library that implements basic features of SKK including:
38 new word registration, completion, numeric conversion, abbrev mode, kuten input,
39 hankaku-katakana input, Lisp expression evaluation (concat only), and re-conversion.
40 It also supports various typing rules including: romaji-to-kana, AZIK, TUT-Code, and NICOLA,
41 as well as various dictionary types including: file dictionary (such as SKK-JISYO.[SML]),
42 user dictionary, skkserv, and CDB format dictionary.
44 homepage = "https://github.com/ueno/libskk";
45 license = lib.licenses.gpl3Plus;
46 maintainers = with lib.maintainers; [ yuriaisaka ];
47 platforms = lib.platforms.linux;