mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
8cbe6b9ce4
This is a backwards compatible change; it mostly puts all the extensions for postgresql in a common directory to keep them isolated. It also moves a few things that /were not/ extensions out into other parts of the filesystem namespace; namely the postgresql_jdbc and psqlodbc libraries were moved under development/java-modules and development/libraries, respectively. Because these libraries use the libpq postgresql client drivers, they're less sensitive to underlying version changes anyway (since the protocol is relatively stable). No attributes were renamed or harmed in the creation of this patch. Signed-off-by: Austin Seipp <aseipp@pobox.com>
30 lines
1.2 KiB
Nix
30 lines
1.2 KiB
Nix
{ stdenv, fetchurl, pkgconfig, postgresql, msgpack, groonga }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "pgroonga-${version}";
|
|
version = "2.1.7";
|
|
|
|
src = fetchurl {
|
|
url = "https://packages.groonga.org/source/pgroonga/${name}.tar.gz";
|
|
sha256 = "1mpns28f5hk528i5x7rkj9jp3qdhxmicmz13aj4lzlwa8yssx9ws";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ postgresql msgpack groonga ];
|
|
|
|
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 ];
|
|
};
|
|
}
|