@@ -0,0 +1,47 @@
1+{ stdenv, fetchurl, fetchFromGitHub,
2+ libtool, intltool, pkgconfig,
3+ vala, gnome_common, gobjectIntrospection,
4+ libgee_0_8, json_glib, skk-dicts }:
6+stdenv.mkDerivation rec {
7+ name = "libskk-${version}";
10+ src = fetchFromGitHub {
13+ rev = "6a232e75de6d5dbe543ab17c9b85dc7560093509";
14+ sha256 = "1xa9akf95jyi4laiw1llnjdpfq5skhidm7dnkd0i0ds6npzzqnxc";
17+ buildInputs = [ skk-dicts ];
18+ nativeBuildInputs = [ vala gnome_common gobjectIntrospection libtool intltool pkgconfig ];
19+ propagatedBuildInputs = [ libgee_0_8 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/
33+ description = "A library to deal with Japanese kana-to-kanji conversion method";
35+ Libskk is a library that implements basic features of SKK including:
36+ new word registration, completion, numeric conversion, abbrev mode, kuten input,
37+ hankaku-katakana input, Lisp expression evaluation (concat only), and re-conversion.
38+ It also supports various typing rules including: romaji-to-kana, AZIK, TUT-Code, and NICOLA,
39+ as well as various dictionary types including: file dictionary (such as SKK-JISYO.[SML]),
40+ user dictionary, skkserv, and CDB format dictionary.
42+ homepage = https://github.com/ueno/libskk;
43+ license = stdenv.lib.licenses.gpl3Plus;
44+ maintainers = with stdenv.lib.maintainers; [ yuriaisaka ];
45+ platforms = stdenv.lib.platforms.linux;