Skip to content

Commit dd91720

Browse files
authoredFeb 13, 2017
Merge pull request #22166 from DerTim1/postgres-plugin-tsearch-extras
tsearch-extras: init at 0.2
2 parents 1d25487 + 8616c0d commit dd91720

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{ stdenv, fetchFromGitHub, pkgconfig, postgresql }:
2+
3+
stdenv.mkDerivation rec {
4+
name = "tsearch-extras-${version}";
5+
version = "0.2";
6+
7+
src = fetchFromGitHub {
8+
owner = "zulip";
9+
repo = "tsearch_extras";
10+
rev = version;
11+
sha256 = "1ivg9zn7f1ks31ixxwywifwhzxn6py8s5ky1djyxnb0s60zckfjg";
12+
};
13+
14+
nativebuildInputs = [ pkgconfig ];
15+
buildInputs = [ postgresql ];
16+
17+
installPhase = ''
18+
mkdir -p $out/bin
19+
install -D tsearch_extras.so -t $out/lib/
20+
install -D ./{tsearch_extras--1.0.sql,tsearch_extras.control} -t $out/share/extension
21+
'';
22+
23+
meta = with stdenv.lib; {
24+
description = "Provides a few PostgreSQL functions for a lower-level data full text search";
25+
homepage = https://github.com/zulip/tsearch_extras/;
26+
license = licenses.postgresql;
27+
maintainers = with maintainers; [ DerTim1 ];
28+
};
29+
}

‎pkgs/top-level/all-packages.nix

+2
Original file line numberDiff line numberDiff line change
@@ -15332,6 +15332,8 @@ with pkgs;
1533215332
# We need QtWebkit which was deprecated in Qt 5.6 although it can still be build
1533315333
trojita = with qt55; callPackage ../applications/networking/mailreaders/trojita { };
1533415334

15335+
tsearch_extras = callPackage ../servers/sql/postgresql/tsearch_extras { };
15336+
1533515337
tudu = callPackage ../applications/office/tudu { };
1533615338

1533715339
tuxguitar = callPackage ../applications/editors/music/tuxguitar { };

0 commit comments

Comments
 (0)
Please sign in to comment.