2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, mecab, kytea, libedit, pkg-config
|
2021-12-06 16:07:01 +00:00
|
|
|
, suggestSupport ? false, zeromq, libevent, msgpack, openssl
|
2020-04-24 23:36:52 +00:00
|
|
|
, lz4Support ? false, lz4
|
2021-12-06 16:07:01 +00:00
|
|
|
, zlibSupport ? true, zlib
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
pname = "groonga";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "11.0.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://packages.groonga.org/source/groonga/${pname}-${version}.tar.gz";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-yE/Ok0QNY9+a4vfNJWZjR4W8E/i+lw7T85X2+oOw8m4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
buildInputs = with lib;
|
2021-12-06 16:07:01 +00:00
|
|
|
[ pkg-config mecab kytea libedit openssl ]
|
2020-04-24 23:36:52 +00:00
|
|
|
++ optional lz4Support lz4
|
|
|
|
++ optional zlibSupport zlib
|
|
|
|
++ optionals suggestSupport [ zeromq libevent msgpack ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
configureFlags = with lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
optional zlibSupport "--with-zlib"
|
|
|
|
++ optional lz4Support "--with-lz4";
|
|
|
|
|
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = "$out/bin/groonga --version";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://groonga.org/";
|
|
|
|
description = "An open-source fulltext search engine and column store";
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = [ maintainers.ericsagnes ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
longDescription = ''
|
2020-08-20 17:08:02 +00:00
|
|
|
Groonga is an open-source fulltext search engine and column store.
|
2020-04-24 23:36:52 +00:00
|
|
|
It lets you write high-performance applications that requires fulltext search.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|