2017-01-26 07:30:50 +00:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, postgresql }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "tsearch-extras-${version}";
|
2018-05-12 09:04:27 +00:00
|
|
|
version = "0.3";
|
2017-01-26 07:30:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zulip";
|
|
|
|
repo = "tsearch_extras";
|
|
|
|
rev = version;
|
2018-05-12 09:04:27 +00:00
|
|
|
sha256 = "0i3i99lw80jwd4xflgdqabxmn1dnm1gm7dzf1mqv2drllxcy3yix";
|
2017-01-26 07:30:50 +00:00
|
|
|
};
|
|
|
|
|
2017-09-05 21:25:26 +00:00
|
|
|
nativenativeBuildInputs = [ pkgconfig ];
|
2017-01-26 07:30:50 +00:00
|
|
|
buildInputs = [ postgresql ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
install -D tsearch_extras.so -t $out/lib/
|
|
|
|
install -D ./{tsearch_extras--1.0.sql,tsearch_extras.control} -t $out/share/extension
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Provides a few PostgreSQL functions for a lower-level data full text search";
|
|
|
|
homepage = https://github.com/zulip/tsearch_extras/;
|
|
|
|
license = licenses.postgresql;
|
|
|
|
maintainers = with maintainers; [ DerTim1 ];
|
|
|
|
};
|
|
|
|
}
|