2023-06-26 14:24:28 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, postgresql, msgpack-c, groonga }:
|
2017-01-26 07:16:50 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-05-10 18:12:22 +00:00
|
|
|
pname = "pgroonga";
|
2023-06-26 14:24:28 +00:00
|
|
|
version = "3.0.8";
|
2017-01-26 07:16:50 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-05-10 18:12:22 +00:00
|
|
|
url = "https://packages.groonga.org/source/${pname}/${pname}-${version}.tar.gz";
|
2023-06-26 14:24:28 +00:00
|
|
|
hash = "sha256-2/dInLG8isiSJHJgNyxgbUwMd/mtcUJxcTvSnVpBZ9M=";
|
2017-01-26 07:16:50 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2023-06-26 14:24:28 +00:00
|
|
|
buildInputs = [ postgresql msgpack-c groonga ];
|
2017-01-26 07:16:50 +00:00
|
|
|
|
2023-06-26 14:24:28 +00:00
|
|
|
makeFlags = [
|
|
|
|
"HAVE_MSGPACK=1"
|
|
|
|
"MSGPACK_PACKAGE_NAME=msgpack-c"
|
|
|
|
];
|
2017-01-26 07:16:50 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2023-09-22 04:20:00 +00:00
|
|
|
install -D pgroonga${postgresql.dlSuffix} -t $out/lib/
|
2021-09-11 04:20:00 +00:00
|
|
|
install -D pgroonga.control -t $out/share/postgresql/extension
|
|
|
|
install -D data/pgroonga-*.sql -t $out/share/postgresql/extension
|
2022-09-29 19:19:47 +00:00
|
|
|
|
2023-09-22 04:20:00 +00:00
|
|
|
install -D pgroonga_database${postgresql.dlSuffix} -t $out/lib/
|
2022-09-29 19:19:47 +00:00
|
|
|
install -D pgroonga_database.control -t $out/share/postgresql/extension
|
|
|
|
install -D data/pgroonga_database-*.sql -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 18:12:22 +00: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/";
|
2023-05-31 04:20:00 +00:00
|
|
|
changelog = "https://github.com/pgroonga/pgroonga/releases/tag/${version}";
|
2017-01-26 07:16:50 +00:00
|
|
|
license = licenses.postgresql;
|
2019-09-13 09:23:00 +00:00
|
|
|
platforms = postgresql.meta.platforms;
|
2023-04-30 02:40:27 +00:00
|
|
|
maintainers = with maintainers; [ DerTim1 ];
|
2017-01-26 07:16:50 +00:00
|
|
|
};
|
|
|
|
}
|