2021-01-19 07:50:56 +01:00
|
|
|
{ lib, stdenv, fetchurl, mecab, kytea, libedit, pkg-config
|
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 {
|
|
|
|
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "groonga";
|
2021-08-03 23:45:41 +02:00
|
|
|
version = "11.0.5";
|
2016-08-25 10:31:35 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "https://packages.groonga.org/source/groonga/${pname}-${version}.tar.gz";
|
2021-08-03 23:45:41 +02:00
|
|
|
sha256 = "sha256-oBABhMKLezjPeHkWfqesy+ze+CPnWfmS17vCKC7fWEU=";
|
2016-08-25 10:31:35 +02:00
|
|
|
};
|
|
|
|
|
2021-01-15 08:07:56 +01:00
|
|
|
buildInputs = with lib;
|
2021-01-19 07:50:56 +01:00
|
|
|
[ pkg-config mecab kytea libedit ]
|
2017-01-24 05:36:42 +01:00
|
|
|
++ 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
|
|
|
|
2021-01-15 08:07:56 +01:00
|
|
|
configureFlags = with lib;
|
2017-01-24 05:36:42 +01:00
|
|
|
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";
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://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 ];
|
2019-07-20 04:19:13 +02:00
|
|
|
platforms = platforms.unix;
|
2016-08-25 10:31:35 +02:00
|
|
|
longDescription = ''
|
2020-08-03 12:25:50 +02:00
|
|
|
Groonga is an open-source fulltext search engine and column store.
|
2016-08-25 10:31:35 +02:00
|
|
|
It lets you write high-performance applications that requires fulltext search.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|