2024-01-02 11:29:13 +00:00
|
|
|
{ lib, stdenv, cmake, fetchurl, kytea, msgpack-c, mecab, pkg-config, rapidjson, testers, xxHash, zstd, postgresqlPackages
|
|
|
|
, suggestSupport ? false, zeromq, libevent, 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
|
|
|
}:
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "groonga";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "14.0.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-01-02 11:29:13 +00:00
|
|
|
url = "https://packages.groonga.org/source/groonga/groonga-${finalAttrs.version}.tar.gz";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-8ppuiEAc25BDcWSiL28ehGfdarnBc4vnGTO+nLl6RsY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
patches = [
|
|
|
|
./fix-cmake-install-path.patch
|
|
|
|
./do-not-use-vendored-libraries.patch
|
|
|
|
];
|
2021-12-26 17:43:05 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
buildInputs = [
|
|
|
|
rapidjson
|
|
|
|
xxHash
|
|
|
|
zstd
|
|
|
|
mecab
|
|
|
|
kytea
|
|
|
|
msgpack-c
|
|
|
|
] ++ lib.optionals lz4Support [
|
|
|
|
lz4
|
|
|
|
] ++ lib.optional zlibSupport [
|
|
|
|
zlib
|
|
|
|
] ++ lib.optionals suggestSupport [
|
|
|
|
zeromq
|
|
|
|
libevent
|
|
|
|
];
|
2021-12-26 17:43:05 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString zlibSupport "-I${zlib.dev}/include";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (postgresqlPackages) pgroonga;
|
|
|
|
version = testers.testVersion {
|
|
|
|
package = finalAttrs.finalPackage;
|
|
|
|
};
|
|
|
|
pkg-config = testers.hasPkgConfigModules {
|
|
|
|
package = finalAttrs.finalPackage;
|
|
|
|
moduleNames = [ "groonga" ];
|
|
|
|
};
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-01-02 11:29:13 +00:00
|
|
|
homepage = "https://groonga.org/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Open-source fulltext search engine and column store";
|
2024-01-02 11:29:13 +00:00
|
|
|
license = licenses.lgpl21;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.ericsagnes ];
|
2024-01-02 11:29:13 +00:00
|
|
|
platforms = platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
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.
|
|
|
|
'';
|
|
|
|
};
|
2024-01-02 11:29:13 +00:00
|
|
|
})
|