2016-08-25 08:31:35 +00:00
|
|
|
{ stdenv, fetchurl, mecab, kytea, libedit, pkgconfig
|
2018-08-17 23:53:33 +00:00
|
|
|
, suggestSupport ? false, zeromq, libevent, msgpack
|
2017-01-24 04:36:42 +00:00
|
|
|
, lz4Support ? false, lz4
|
2016-08-25 08:31:35 +00:00
|
|
|
, zlibSupport ? false, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "groonga";
|
2020-11-02 05:40:00 +00:00
|
|
|
version = "10.0.8";
|
2016-08-25 08:31:35 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://packages.groonga.org/source/groonga/${pname}-${version}.tar.gz";
|
2020-11-02 05:40:00 +00:00
|
|
|
sha256 = "0ppjxgq7bwhzzlrl2jn7ybc132c8rg95yhwshxqgccbhbs8s6c29";
|
2016-08-25 08:31:35 +00:00
|
|
|
};
|
|
|
|
|
2017-01-24 04:36:42 +00:00
|
|
|
buildInputs = with stdenv.lib;
|
|
|
|
[ pkgconfig mecab kytea libedit ]
|
|
|
|
++ optional lz4Support lz4
|
|
|
|
++ optional zlibSupport zlib
|
2018-08-17 23:53:33 +00:00
|
|
|
++ optionals suggestSupport [ zeromq libevent msgpack ];
|
2016-08-25 08:31:35 +00:00
|
|
|
|
2017-01-24 04:36:42 +00:00
|
|
|
configureFlags = with stdenv.lib;
|
|
|
|
optional zlibSupport "--with-zlib"
|
|
|
|
++ optional lz4Support "--with-lz4";
|
2016-09-29 09:30:40 +00:00
|
|
|
|
2017-01-24 04:36:42 +00:00
|
|
|
doInstallCheck = true;
|
2016-09-29 09:30:40 +00:00
|
|
|
installCheckPhase = "$out/bin/groonga --version";
|
|
|
|
|
2016-08-25 08:31:35 +00:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://groonga.org/";
|
2016-08-25 08:31:35 +00: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 ];
|
2019-07-20 02:19:13 +00:00
|
|
|
platforms = platforms.unix;
|
2016-08-25 08:31:35 +00:00
|
|
|
longDescription = ''
|
2020-08-03 10:25:50 +00:00
|
|
|
Groonga is an open-source fulltext search engine and column store.
|
2016-08-25 08:31:35 +00:00
|
|
|
It lets you write high-performance applications that requires fulltext search.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|