2016-08-25 09:31:35 +01:00
|
|
|
{ stdenv, fetchurl, mecab, kytea, libedit, pkgconfig
|
|
|
|
, suggestSupport ? false, zeromq, libevent, libmsgpack
|
2017-01-24 04:36:42 +00:00
|
|
|
, lz4Support ? false, lz4
|
2016-08-25 09:31:35 +01:00
|
|
|
, zlibSupport ? false, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "groonga-${version}";
|
2017-02-14 01:07:30 +00:00
|
|
|
version = "7.0.0";
|
2016-08-25 09:31:35 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-08-29 09:17:16 +01:00
|
|
|
url = "http://packages.groonga.org/source/groonga/${name}.tar.gz";
|
2017-02-14 01:07:30 +00:00
|
|
|
sha256 = "0c3vzw2ias0xpz1hwywlib1qqfjvvzwj1zggswd5l2cj87f1krfd";
|
2016-08-25 09:31:35 +01:00
|
|
|
};
|
|
|
|
|
2017-01-24 04:36:42 +00:00
|
|
|
buildInputs = with stdenv.lib;
|
|
|
|
[ pkgconfig mecab kytea libedit ]
|
|
|
|
++ optional lz4Support lz4
|
|
|
|
++ optional zlibSupport zlib
|
|
|
|
++ optionals suggestSupport [ zeromq libevent libmsgpack ];
|
2016-08-25 09:31:35 +01:00
|
|
|
|
2017-01-24 04:36:42 +00:00
|
|
|
configureFlags = with stdenv.lib;
|
|
|
|
optional zlibSupport "--with-zlib"
|
|
|
|
++ optional lz4Support "--with-lz4";
|
2016-09-29 10:30:40 +01:00
|
|
|
|
2017-01-24 04:36:42 +00:00
|
|
|
doInstallCheck = true;
|
2016-09-29 10:30:40 +01:00
|
|
|
installCheckPhase = "$out/bin/groonga --version";
|
|
|
|
|
2016-08-25 09:31:35 +01:00
|
|
|
meta = with stdenv.lib; {
|
2017-01-24 04:36:42 +00:00
|
|
|
homepage = http://groonga.org/;
|
2016-08-25 09:31:35 +01:00
|
|
|
description = "An open-source fulltext search engine and column store";
|
2017-01-24 04:36:42 +00:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = [ maintainers.ericsagnes ];
|
|
|
|
platforms = platforms.linux;
|
2016-08-25 09:31:35 +01:00
|
|
|
longDescription = ''
|
|
|
|
Groonga is an open-source fulltext search engine and column store.
|
|
|
|
It lets you write high-performance applications that requires fulltext search.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|