1{ lib, stdenv, fetchFromGitHub, postgresql }:
2
3stdenv.mkDerivation {
4 pname = "tsearch-extras";
5 version = "0.4";
6
7 src = fetchFromGitHub {
8 owner = "zulip";
9 repo = "tsearch_extras";
10 rev = "84e78f00931c4ef261d98197d6b5d94fc141f742"; # no release tag?
11 sha256 = "18j0saqblg3jhrz38splk173xjwdf32c67ymm18m8n5y94h8d2ba";
12 };
13
14 buildInputs = [ postgresql ];
15
16 installPhase = ''
17 install -D tsearch_extras.so -t $out/lib/
18 install -D ./{tsearch_extras--1.0.sql,tsearch_extras.control} -t $out/share/postgresql/extension
19 '';
20
21 meta = with lib; {
22 description = "Provides a few PostgreSQL functions for a lower-level data full text search";
23 homepage = "https://github.com/zulip/tsearch_extras/";
24 license = licenses.postgresql;
25 platforms = postgresql.meta.platforms;
26 maintainers = with maintainers; [ DerTim1 ];
27 };
28}