2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, postgresql, msgpack, groonga }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pgroonga";
|
2020-11-21 19:51:51 +00:00
|
|
|
version = "2.2.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://packages.groonga.org/source/${pname}/${pname}-${version}.tar.gz";
|
2020-11-21 19:51:51 +00:00
|
|
|
sha256 = "1rd3cxap9rqpg5y8y48r5bd7rki3lck6qsrb0bqdqm9xffnibw8j";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ postgresql msgpack groonga ];
|
|
|
|
|
|
|
|
makeFlags = [ "HAVE_MSGPACK=1" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D pgroonga.so -t $out/lib/
|
|
|
|
install -D ./{pgroonga-*.sql,pgroonga.control} -t $out/share/postgresql/extension
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A PostgreSQL extension to use Groonga as the index";
|
|
|
|
longDescription = ''
|
|
|
|
PGroonga is a PostgreSQL extension to use Groonga as the index.
|
|
|
|
PostgreSQL supports full text search against languages that use only alphabet and digit.
|
|
|
|
It means that PostgreSQL doesn't support full text search against Japanese, Chinese and so on.
|
|
|
|
You can use super fast full text search feature against all languages by installing PGroonga into your PostgreSQL.
|
|
|
|
'';
|
|
|
|
homepage = "https://pgroonga.github.io/";
|
|
|
|
license = licenses.postgresql;
|
|
|
|
platforms = postgresql.meta.platforms;
|
|
|
|
maintainers = with maintainers; [ DerTim1 ];
|
|
|
|
};
|
|
|
|
}
|