nixpkgs/pkgs/servers/search/groonga/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

67 lines
1.7 KiB
Nix
Raw Normal View History

{ 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: {
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
];
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
msgpack-c
2023-11-25 04:20:00 +00:00
] ++ lib.optionals lz4Support [
lz4
] ++ lib.optional zlibSupport [
zlib
] ++ lib.optionals suggestSupport [
zeromq
libevent
];
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" ];
};
};
meta = with lib; {
2023-11-25 04:20:00 +00:00
homepage = "https://groonga.org/";
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
})