2017-01-26 07:16:50 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, postgresql, libmsgpack, groonga }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "pgroonga-${version}";
|
2018-03-15 08:00:41 +00:00
|
|
|
version = "2.0.3";
|
2017-01-26 07:16:50 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://packages.groonga.org/source/pgroonga/${name}.tar.gz";
|
2018-03-15 08:00:41 +00:00
|
|
|
sha256 = "0jlaxkj33dgr2hgh0f861ja1z53kqw0g1syinl2sacsna2i9pdxy";
|
2017-01-26 07:16:50 +00:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ postgresql libmsgpack groonga ];
|
2017-01-26 07:16:50 +00:00
|
|
|
|
|
|
|
makeFlags = [ "HAVE_MSGPACK=1" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
install -D pgroonga.so -t $out/lib/
|
|
|
|
install -D ./{pgroonga-*.sql,pgroonga.control} -t $out/share/extension
|
|
|
|
'';
|
|
|
|
|
|
|
|
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/;
|
|
|
|
license = licenses.postgresql;
|
|
|
|
maintainers = with maintainers; [ DerTim1 ];
|
|
|
|
};
|
|
|
|
}
|