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

43 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, mecab, kytea, libedit, pkg-config
, suggestSupport ? false, zeromq, libevent, msgpack
2017-01-23 20:36:42 -08:00
, lz4Support ? false, lz4
2016-08-25 01:31:35 -07:00
, zlibSupport ? false, zlib
}:
stdenv.mkDerivation rec {
pname = "groonga";
2021-04-28 05:46:23 -07:00
version = "11.0.1";
2016-08-25 01:31:35 -07:00
src = fetchurl {
url = "https://packages.groonga.org/source/groonga/${pname}-${version}.tar.gz";
2021-04-28 05:46:23 -07:00
sha256 = "sha256-Ap5DdOf3PVctMAYCP0Xr4VjqO5yEWqrKX6FbId8/FMQ=";
2016-08-25 01:31:35 -07:00
};
2021-01-14 23:07:56 -08:00
buildInputs = with lib;
[ pkg-config mecab kytea libedit ]
2017-01-23 20:36:42 -08:00
++ optional lz4Support lz4
++ optional zlibSupport zlib
++ optionals suggestSupport [ zeromq libevent msgpack ];
2016-08-25 01:31:35 -07:00
2021-01-14 23:07:56 -08:00
configureFlags = with lib;
2017-01-23 20:36:42 -08:00
optional zlibSupport "--with-zlib"
++ optional lz4Support "--with-lz4";
2016-09-29 02:30:40 -07:00
2017-01-23 20:36:42 -08:00
doInstallCheck = true;
2016-09-29 02:30:40 -07:00
installCheckPhase = "$out/bin/groonga --version";
meta = with lib; {
homepage = "https://groonga.org/";
2016-08-25 01:31:35 -07:00
description = "An open-source fulltext search engine and column store";
2017-01-23 20:36:42 -08:00
license = licenses.lgpl21;
maintainers = [ maintainers.ericsagnes ];
2019-07-19 19:19:13 -07:00
platforms = platforms.unix;
2016-08-25 01:31:35 -07:00
longDescription = ''
2020-08-03 03:25:50 -07:00
Groonga is an open-source fulltext search engine and column store.
2016-08-25 01:31:35 -07:00
It lets you write high-performance applications that requires fulltext search.
'';
};
}