diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2014-10-13 01:24:50 +0100 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2014-10-13 02:55:35 +0100 |
commit | d62b63d3190f46ae75b0dbbbc42cd2b450c4ba65 (patch) | |
tree | d64155634be2d73815e0edbfe47e9d00e4fd1cba /pkgs/applications/office/tagainijisho/default.nix | |
parent | f132f9c6c9962d989f1329d4ed7012917611460b (diff) |
tagainijisho: new derivation
Tagaini Jisho is a free, open-source Japanese dictionary and kanji
lookup tool that aims at becoming your Japanese study assistant.
Homepage: http://www.tagaini.net/
Diffstat (limited to 'pkgs/applications/office/tagainijisho/default.nix')
-rw-r--r-- | pkgs/applications/office/tagainijisho/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/applications/office/tagainijisho/default.nix b/pkgs/applications/office/tagainijisho/default.nix new file mode 100644 index 000000000000..de29cd2fba4d --- /dev/null +++ b/pkgs/applications/office/tagainijisho/default.nix @@ -0,0 +1,44 @@ +{stdenv, fetchurl, qt4, cmake, sqlite}: + +let + jmdict = fetchurl { + url = ftp://ftp.monash.edu.au/pub/nihongo/JMdict.gz; + sha256 = "0ml25hlbi0zifx0i03lkmnkar0dr94401j95j493401c71d4kjlf"; + }; + kanjidic2 = fetchurl { + url = http://www.csse.monash.edu.au/~jwb/kanjidic2/kanjidic2.xml.gz; + sha256 = "0v7x10isn0vsrya987dh6l54czgprp2nd7kbxblnnf3g6n31qbgv"; + }; + kanjivg = fetchurl { + url = https://github.com/KanjiVG/kanjivg/releases/download/r20140816/kanjivg-20140816.xml.gz; + sha256 = "0wp43xlpfq3p983047mz0j250xpb4wzqxgp8c6ldqjg7s6bzd4h9"; + }; +in + +stdenv.mkDerivation { + name = "tagainijisho-1.0.2"; + src = fetchurl { + url = https://github.com/Gnurou/tagainijisho/archive/1.0.2.tar.gz; + sha256 = "1h8rf1zph8mpq0mfwil9dnjfwg49xd0bysllcddmkshs5xxv96ca"; + }; + + buildInputs = [ qt4 cmake sqlite ]; + + preConfigure = '' + mkdir 3rdparty + zcat ${jmdict} > 3rdparty/JMdict + zcat ${kanjidic2} > 3rdparty/kanjidic2.xml + zcat ${kanjivg} > 3rdparty/kanjivg.xml + ''; + + meta = with stdenv.lib; { + description = "A free, open-source Japanese dictionary and kanji lookup tool"; + homepage = http://www.tagaini.net/; + license = with licenses; [ + /* program */ gpl3Plus + /* data */ cc-by-sa-30 + ]; + platforms = platforms.unix; + maintainers = with maintainers; [ vbgl ]; + }; +} |