2021-01-19 07:50:56 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, postgresql }:
|
2017-01-26 08:30:50 +01:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "tsearch-extras";
|
2018-11-04 01:52:55 +01:00
|
|
|
version = "0.4";
|
2017-01-26 08:30:50 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-11-04 01:52:55 +01:00
|
|
|
owner = "zulip";
|
|
|
|
repo = "tsearch_extras";
|
|
|
|
rev = "84e78f00931c4ef261d98197d6b5d94fc141f742"; # no release tag?
|
|
|
|
sha256 = "18j0saqblg3jhrz38splk173xjwdf32c67ymm18m8n5y94h8d2ba";
|
2017-01-26 08:30:50 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativenativeBuildInputs = [ pkg-config ];
|
2017-01-26 08:30:50 +01:00
|
|
|
buildInputs = [ postgresql ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D tsearch_extras.so -t $out/lib/
|
2019-07-01 16:18:03 +02:00
|
|
|
install -D ./{tsearch_extras--1.0.sql,tsearch_extras.control} -t $out/share/postgresql/extension
|
2017-01-26 08:30:50 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-01-26 08:30:50 +01:00
|
|
|
description = "Provides a few PostgreSQL functions for a lower-level data full text search";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/zulip/tsearch_extras/";
|
2017-01-26 08:30:50 +01:00
|
|
|
license = licenses.postgresql;
|
2019-09-13 11:20:00 +02:00
|
|
|
platforms = postgresql.meta.platforms;
|
2017-01-26 08:30:50 +01:00
|
|
|
maintainers = with maintainers; [ DerTim1 ];
|
|
|
|
};
|
|
|
|
}
|