2023-07-15 17:15:38 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, postgresql, msgpack-c, groonga }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pgroonga";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "3.0.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://packages.groonga.org/source/${pname}/${pname}-${version}.tar.gz";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-2/dInLG8isiSJHJgNyxgbUwMd/mtcUJxcTvSnVpBZ9M=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2023-07-15 17:15:38 +00:00
|
|
|
buildInputs = [ postgresql msgpack-c groonga ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
makeFlags = [
|
|
|
|
"HAVE_MSGPACK=1"
|
|
|
|
"MSGPACK_PACKAGE_NAME=msgpack-c"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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
|
2022-10-06 18:32:54 +00:00
|
|
|
|
|
|
|
install -D pgroonga_database.so -t $out/lib/
|
|
|
|
install -D pgroonga_database.control -t $out/share/postgresql/extension
|
|
|
|
install -D data/pgroonga_database-*.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/";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/pgroonga/pgroonga/releases/tag/${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.postgresql;
|
|
|
|
platforms = postgresql.meta.platforms;
|
2023-05-24 13:37:59 +00:00
|
|
|
maintainers = with maintainers; [ DerTim1 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|