2018-08-18 01:53:33 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, postgresql, msgpack, groonga }:
|
2017-01-26 08:16:50 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-05-10 20:12:22 +02:00
|
|
|
pname = "pgroonga";
|
2019-07-20 03:48:05 +02:00
|
|
|
version = "2.2.1";
|
2017-01-26 08:16:50 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-05-10 20:12:22 +02:00
|
|
|
url = "https://packages.groonga.org/source/${pname}/${pname}-${version}.tar.gz";
|
2019-07-20 03:48:05 +02:00
|
|
|
sha256 = "0d913rkxx6qlkav6z9crsz3ypqkdffn4c667nsgzh5s9n4wbbpb8";
|
2017-01-26 08:16:50 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-08-18 01:53:33 +02:00
|
|
|
buildInputs = [ postgresql msgpack groonga ];
|
2017-01-26 08:16:50 +01:00
|
|
|
|
|
|
|
makeFlags = [ "HAVE_MSGPACK=1" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D pgroonga.so -t $out/lib/
|
2019-07-01 16:18:03 +02:00
|
|
|
install -D ./{pgroonga-*.sql,pgroonga.control} -t $out/share/postgresql/extension
|
2017-01-26 08:16:50 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A PostgreSQL extension to use Groonga as the index";
|
2019-05-10 20:12:22 +02:00
|
|
|
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/";
|
2017-01-26 08:16:50 +01:00
|
|
|
license = licenses.postgresql;
|
|
|
|
maintainers = with maintainers; [ DerTim1 ];
|
|
|
|
};
|
|
|
|
}
|