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

43 lines
1.2 KiB
Nix
Raw Normal View History

2016-08-25 09:31:35 +01:00
{ stdenv, fetchurl, mecab, kytea, libedit, pkgconfig
, suggestSupport ? false, zeromq, libevent, msgpack
2017-01-24 04:36:42 +00:00
, lz4Support ? false, lz4
2016-08-25 09:31:35 +01:00
, zlibSupport ? false, zlib
}:
stdenv.mkDerivation rec {
pname = "groonga";
2020-09-23 08:34:52 +01:00
version = "10.0.6";
2016-08-25 09:31:35 +01:00
src = fetchurl {
url = "https://packages.groonga.org/source/groonga/${pname}-${version}.tar.gz";
2020-09-23 08:34:52 +01:00
sha256 = "1q3xx6jc967nj7h8gvnrqxn8657dn3qy9j802rjzcg6iwlpjack9";
2016-08-25 09:31:35 +01:00
};
2017-01-24 04:36:42 +00:00
buildInputs = with stdenv.lib;
[ pkgconfig mecab kytea libedit ]
++ optional lz4Support lz4
++ optional zlibSupport zlib
++ optionals suggestSupport [ zeromq libevent msgpack ];
2016-08-25 09:31:35 +01:00
2017-01-24 04:36:42 +00:00
configureFlags = with stdenv.lib;
optional zlibSupport "--with-zlib"
++ optional lz4Support "--with-lz4";
2016-09-29 10:30:40 +01:00
2017-01-24 04:36:42 +00:00
doInstallCheck = true;
2016-09-29 10:30:40 +01:00
installCheckPhase = "$out/bin/groonga --version";
2016-08-25 09:31:35 +01:00
meta = with stdenv.lib; {
homepage = "https://groonga.org/";
2016-08-25 09:31:35 +01:00
description = "An open-source fulltext search engine and column store";
2017-01-24 04:36:42 +00:00
license = licenses.lgpl21;
maintainers = [ maintainers.ericsagnes ];
2019-07-20 03:19:13 +01:00
platforms = platforms.unix;
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.
'';
};
}