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