1 { lib, stdenv, cmake, fetchurl, kytea, msgpack-c, mecab, pkg-config, rapidjson, testers, xxHash, zstd, postgresqlPackages
2 , suggestSupport ? false, zeromq, libevent, openssl
3 , lz4Support ? false, lz4
4 , zlibSupport ? true, zlib
7 stdenv.mkDerivation (finalAttrs: {
12 url = "https://packages.groonga.org/source/groonga/groonga-${finalAttrs.version}.tar.gz";
13 hash = "sha256-o9C6lPOPkb2KCbF4CqLyKtXHfOdB3jAIv5P6SjTJAJc=";
17 ./fix-cmake-install-path.patch
18 ./do-not-use-vendored-libraries.patch
33 ] ++ lib.optionals lz4Support [
35 ] ++ lib.optional zlibSupport [
37 ] ++ lib.optionals suggestSupport [
42 env.NIX_CFLAGS_COMPILE = lib.optionalString zlibSupport "-I${zlib.dev}/include";
45 inherit (postgresqlPackages) pgroonga;
46 version = testers.testVersion {
47 package = finalAttrs.finalPackage;
49 pkg-config = testers.hasPkgConfigModules {
50 package = finalAttrs.finalPackage;
51 moduleNames = [ "groonga" ];
56 homepage = "https://groonga.org/";
57 description = "An open-source fulltext search engine and column store";
58 license = licenses.lgpl21;
59 maintainers = [ maintainers.ericsagnes ];
60 platforms = platforms.all;
62 Groonga is an open-source fulltext search engine and column store.
63 It lets you write high-performance applications that requires fulltext search.