@@ -0,0 +1,42 @@
1+{ stdenv, fetchurl, mecab, kytea, libedit, pkgconfig
2+, suggestSupport ? false, zeromq, libevent, libmsgpack
3+, lz4Support ? false, lz4
4+, zlibSupport ? false, zlib
5+}:
6+
7+stdenv.mkDerivation rec {
8+
9+ name = "groonga-${version}";
10+ version = "6.0.7";
11+
12+ src = fetchurl {
13+ url = "http://packages.groonga.org/source/groonga/groonga-6.0.7.tar.gz";
14+ sha256 = "19vpjjq3mqaqy9idlmqg2agrz9dc48a9id8j7nx158pkwjvpj7jf";
15+ };
16+
17+ buildInputs = with stdenv.lib; [ pkgconfig mecab kytea libedit ] ++
18+ optional lz4Support lz4 ++
19+ optional zlibSupport zlib ++
20+ optional suggestSupport [ zeromq libevent libmsgpack ];
21+
22+ configureFlags = with stdenv.lib; ''
23+ ${optionalString zlibSupport "--with-zlib"}
24+ ${optionalString lz4Support "--with-lz4"}
25+ '';
26+
27+ meta = with stdenv.lib; {
28+ homepage = http://groonga.org/;
29+ description = "An open-source fulltext search engine and column store";
30+
31+ longDescription = ''
32+ Groonga is an open-source fulltext search engine and column store.
33+ It lets you write high-performance applications that requires fulltext search.
34+ '';
35+
36+ license = licenses.lgpl21;
37+
38+ maintainers = [ maintainers.ericsagnes ];
39+ platforms = platforms.linux;
40+ };
41+
42+}