3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/sql/postgresql/ext/pgroonga.nix

36 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, postgresql, msgpack, groonga }:
2017-01-26 07:16:50 +00:00
stdenv.mkDerivation rec {
pname = "pgroonga";
version = "2.2.7";
2017-01-26 07:16:50 +00:00
src = fetchurl {
url = "https://packages.groonga.org/source/${pname}/${pname}-${version}.tar.gz";
sha256 = "1rd3cxap9rqpg5y8y48r5bd7rki3lck6qsrb0bqdqm9xffnibw8j";
2017-01-26 07:16:50 +00:00
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ postgresql msgpack groonga ];
2017-01-26 07:16:50 +00:00
makeFlags = [ "HAVE_MSGPACK=1" ];
installPhase = ''
install -D pgroonga.so -t $out/lib/
install -D ./{pgroonga-*.sql,pgroonga.control} -t $out/share/postgresql/extension
2017-01-26 07:16:50 +00:00
'';
meta = with stdenv.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/";
2017-01-26 07:16:50 +00:00
license = licenses.postgresql;
platforms = postgresql.meta.platforms;
2017-01-26 07:16:50 +00:00
maintainers = with maintainers; [ DerTim1 ];
};
}