From d62b63d3190f46ae75b0dbbbc42cd2b450c4ba65 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 13 Oct 2014 01:24:50 +0100 Subject: [PATCH] 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/ --- .../office/tagainijisho/default.nix | 44 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 46 insertions(+) create mode 100644 pkgs/applications/office/tagainijisho/default.nix 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0b2abd4d425d..da0267965988 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10347,6 +10347,8 @@ let tabbed = callPackage ../applications/window-managers/tabbed { }; + tagainijisho = callPackage ../applications/office/tagainijisho {}; + tahoelafs = callPackage ../tools/networking/p2p/tahoe-lafs { inherit (pythonPackages) twisted foolscap simplejson nevow zfec pycryptopp sqlite3 darcsver setuptoolsTrial setuptoolsDarcs