e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
44 lines
1.7 KiB
Nix
44 lines
1.7 KiB
Nix
{ lib, stdenv, fetchurl, pkg-config, postgresql, msgpack-c, groonga }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pgroonga";
|
|
version = "3.1.6";
|
|
|
|
src = fetchurl {
|
|
url = "https://packages.groonga.org/source/${pname}/${pname}-${version}.tar.gz";
|
|
hash = "sha256-XfHpKstgdBQ6Oo0cDpOphUJNTu9KgfBuxAa8RadvjyA=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ postgresql msgpack-c groonga ];
|
|
|
|
makeFlags = [
|
|
"HAVE_MSGPACK=1"
|
|
"MSGPACK_PACKAGE_NAME=msgpack-c"
|
|
];
|
|
|
|
installPhase = ''
|
|
install -D pgroonga${postgresql.dlSuffix} -t $out/lib/
|
|
install -D pgroonga.control -t $out/share/postgresql/extension
|
|
install -D data/pgroonga-*.sql -t $out/share/postgresql/extension
|
|
|
|
install -D pgroonga_database${postgresql.dlSuffix} -t $out/lib/
|
|
install -D pgroonga_database.control -t $out/share/postgresql/extension
|
|
install -D data/pgroonga_database-*.sql -t $out/share/postgresql/extension
|
|
'';
|
|
|
|
meta = with lib; {
|
|
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/";
|
|
changelog = "https://github.com/pgroonga/pgroonga/releases/tag/${version}";
|
|
license = licenses.postgresql;
|
|
platforms = postgresql.meta.platforms;
|
|
maintainers = with maintainers; [ DerTim1 ];
|
|
};
|
|
}
|