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