nixpkgs-suyu/pkgs/servers/sql/postgresql/ext/pgroonga.nix
Erlend Hamberg 80aadbec60
Install postgresql extensions under $out/share/postgresql
This fixes extensions after #62271 moved files from `$out/share` to
`$out/share/postgresql`.
2019-07-01 16:24:44 +02:00

35 lines
1.2 KiB
Nix

{ stdenv, fetchurl, pkgconfig, postgresql, msgpack, groonga }:
stdenv.mkDerivation rec {
pname = "pgroonga";
version = "2.2.0";
src = fetchurl {
url = "https://packages.groonga.org/source/${pname}/${pname}-${version}.tar.gz";
sha256 = "1cankcprikx8nf72yg4h8542gqqlfgww6d63kg7l8l8sz962d28b";
};
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/postgresql/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 ];
};
}