2022-10-30 15:09:59 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook, mecab, kytea, libedit, pkg-config, libxcrypt
|
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";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "12.0.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://packages.groonga.org/source/groonga/${pname}-${version}.tar.gz";
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-Eaei4Zi0Rg9zu7DInLAcaRo8Fyu2mqBblcYNRaS46c8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
preConfigure = ''
|
|
|
|
# To avoid problems due to libc++abi 11 using `#include <version>`.
|
|
|
|
rm version
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
buildInputs = with lib;
|
2022-10-30 15:09:59 +00:00
|
|
|
[ mecab kytea libedit openssl libxcrypt ]
|
2020-04-24 23:36:52 +00:00
|
|
|
++ optional lz4Support lz4
|
|
|
|
++ optional zlibSupport zlib
|
|
|
|
++ optionals suggestSupport [ zeromq libevent msgpack ];
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|