2023-12-06 02:42:31 +00:00
|
|
|
{ lib, stdenv, cmake, fetchurl, kytea, msgpack-c, mecab, pkg-config, rapidjson, testers, xxHash, zstd, postgresqlPackages
|
|
|
|
, suggestSupport ? false, zeromq, libevent, openssl
|
2017-01-24 04:36:42 +00:00
|
|
|
, lz4Support ? false, lz4
|
2021-11-27 04:20:00 +00:00
|
|
|
, zlibSupport ? true, zlib
|
2016-08-25 09:31:35 +01:00
|
|
|
}:
|
|
|
|
|
2023-11-25 04:20:00 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "groonga";
|
2024-06-02 12:55:28 +01:00
|
|
|
version = "14.0.4";
|
2016-08-25 09:31:35 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-11-25 04:20:00 +00:00
|
|
|
url = "https://packages.groonga.org/source/groonga/groonga-${finalAttrs.version}.tar.gz";
|
2024-06-02 12:55:28 +01:00
|
|
|
hash = "sha256-8ppuiEAc25BDcWSiL28ehGfdarnBc4vnGTO+nLl6RsY=";
|
2016-08-25 09:31:35 +01:00
|
|
|
};
|
|
|
|
|
2023-11-25 04:20:00 +00:00
|
|
|
patches = [
|
|
|
|
./fix-cmake-install-path.patch
|
|
|
|
./do-not-use-vendored-libraries.patch
|
|
|
|
];
|
2021-07-14 17:26:54 +01:00
|
|
|
|
2023-11-25 04:20:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
2016-08-25 09:31:35 +01:00
|
|
|
|
2023-11-25 04:20:00 +00:00
|
|
|
buildInputs = [
|
|
|
|
rapidjson
|
|
|
|
xxHash
|
|
|
|
zstd
|
|
|
|
mecab
|
|
|
|
kytea
|
2023-12-06 02:42:31 +00:00
|
|
|
msgpack-c
|
2023-11-25 04:20:00 +00:00
|
|
|
] ++ lib.optionals lz4Support [
|
|
|
|
lz4
|
|
|
|
] ++ lib.optional zlibSupport [
|
|
|
|
zlib
|
|
|
|
] ++ lib.optionals suggestSupport [
|
|
|
|
zeromq
|
|
|
|
libevent
|
|
|
|
];
|
2021-07-14 17:26:54 +01:00
|
|
|
|
2023-11-25 04:20:00 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString zlibSupport "-I${zlib.dev}/include";
|
2016-09-29 10:30:40 +01:00
|
|
|
|
2023-11-25 04:20:00 +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 03:05:13 +00:00
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2023-11-25 04:20:00 +00:00
|
|
|
homepage = "https://groonga.org/";
|
2024-06-07 08:46:46 +01:00
|
|
|
description = "Open-source fulltext search engine and column store";
|
2023-11-25 04:20:00 +00:00
|
|
|
license = licenses.lgpl21;
|
2017-01-24 04:36:42 +00:00
|
|
|
maintainers = [ maintainers.ericsagnes ];
|
2023-11-25 04:20:00 +00:00
|
|
|
platforms = platforms.all;
|
2016-08-25 09:31:35 +01:00
|
|
|
longDescription = ''
|
2020-08-03 11:25:50 +01:00
|
|
|
Groonga is an open-source fulltext search engine and column store.
|
2016-08-25 09:31:35 +01:00
|
|
|
It lets you write high-performance applications that requires fulltext search.
|
|
|
|
'';
|
|
|
|
};
|
2023-11-25 04:20:00 +00:00
|
|
|
})
|