Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
87 lines
1.7 KiB
Nix
87 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
cmake,
|
|
fetchurl,
|
|
kytea,
|
|
msgpack-c,
|
|
mecab,
|
|
pkg-config,
|
|
rapidjson,
|
|
testers,
|
|
xxHash,
|
|
zstd,
|
|
postgresqlPackages,
|
|
suggestSupport ? false,
|
|
zeromq,
|
|
libevent,
|
|
lz4Support ? false,
|
|
lz4,
|
|
zlibSupport ? true,
|
|
zlib,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "groonga";
|
|
version = "15.1.5";
|
|
|
|
src = fetchurl {
|
|
url = "https://packages.groonga.org/source/groonga/groonga-${finalAttrs.version}.tar.gz";
|
|
hash = "sha256-dRO9QBQCIVJlFhNZjVZwoiEIesIBrkZWNSOwzgkOnkY=";
|
|
};
|
|
|
|
patches = [
|
|
./fix-cmake-install-path.patch
|
|
./do-not-use-vendored-libraries.patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
rapidjson
|
|
xxHash
|
|
zstd
|
|
mecab
|
|
kytea
|
|
msgpack-c
|
|
]
|
|
++ lib.optionals lz4Support [
|
|
lz4
|
|
]
|
|
++ lib.optional zlibSupport [
|
|
zlib
|
|
]
|
|
++ lib.optionals suggestSupport [
|
|
zeromq
|
|
libevent
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString zlibSupport "-I${zlib.dev}/include";
|
|
|
|
passthru.tests = {
|
|
inherit (postgresqlPackages) pgroonga;
|
|
version = testers.testVersion {
|
|
package = finalAttrs.finalPackage;
|
|
};
|
|
pkg-config = testers.hasPkgConfigModules {
|
|
package = finalAttrs.finalPackage;
|
|
moduleNames = [ "groonga" ];
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://groonga.org/";
|
|
description = "Open-source fulltext search engine and column store";
|
|
license = lib.licenses.lgpl21;
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.all;
|
|
longDescription = ''
|
|
Groonga is an open-source fulltext search engine and column store.
|
|
It lets you write high-performance applications that requires fulltext search.
|
|
'';
|
|
};
|
|
})
|