2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, postgresql, msgpack, groonga }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pgroonga";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "2.3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://packages.groonga.org/source/${pname}/${pname}-${version}.tar.gz";
|
2022-04-15 01:41:22 +00:00
|
|
|
sha256 = "sha256-/GimaiFuMEuw4u9if3Z//1KPT78rvaJ+jNjbG3ugkLA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ postgresql msgpack groonga ];
|
|
|
|
|
|
|
|
makeFlags = [ "HAVE_MSGPACK=1" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D pgroonga.so -t $out/lib/
|
2021-10-01 09:20:50 +00:00
|
|
|
install -D pgroonga.control -t $out/share/postgresql/extension
|
|
|
|
install -D data/pgroonga-*.sql -t $out/share/postgresql/extension
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|