lol
1{ stdenv, fetchFromGitHub, pkgconfig, gdbm, glib }:
2
3# Note (2017-10-24, yuriaisaka):
4# - Version 1.3.3 dates from Jul. 19, 2013.
5# - The latest commit to the github repo dates from Mar. 05, 2017
6# - The repo since appears to have become a kitchen sink place to keep
7# misc tools to handle SKK dictionaries, and these tools have runtime
8# dependencies on a Ruby interpreter etc.
9# - We for the moment do not package them to keep the dependencies slim.
10# Probably, shall package the newer tools as skktools-extra in the future.
11stdenv.mkDerivation rec {
12 name = "skktools-${version}";
13 version = "1.3.3";
14 src = fetchFromGitHub {
15 owner = "skk-dev";
16 repo = "skktools";
17 rev = "c8816fe720604d4fd79f3552e99e0430ca6f2769";
18 sha256 = "11v1i5gkxvfsipigc1w1m16ijzh85drpl694kg6ih4jfam1q4vdh";
19 };
20 # # See "12.2. Package naming"
21 # name = "skktools-unstable-${version}";
22 # version = "2017-03-05";
23 # src = fetchFromGitHub {
24 # owner = "skk-dev";
25 # repo = "skktools";
26 # rev = "e14d98e734d2fdff611385c7df65826e94d929db";
27 # sha256 = "1k9zxqybl1l5h0a8px2awc920qrdyp1qls50h3kfrj3g65d08aq2";
28 # };
29
30 nativeBuildInputs = [ pkgconfig ];
31 buildInputs = [ gdbm glib ];
32
33 meta = {
34 description = "A collection of tools to edit SKK dictionaries";
35 longDescription = ''
36 This package provides a collection of tools to manipulate
37 (merge, sort etc.) the dictionaries formatted for SKK Japanese
38 input method.
39 '';
40 homepage = https://github.com/skk-dev/skktools;
41 license = stdenv.lib.licenses.gpl2Plus;
42 maintainers = with stdenv.lib.maintainers; [ yuriaisaka ];
43 platforms = with stdenv.lib.platforms; linux ++ darwin;
44 };
45}