nixpkgs/pkgs/servers/sql/postgresql/ext/tsearch_extras.nix

30 lines
918 B
Nix
Raw Normal View History

2017-01-26 10:30:50 +03:00
{ stdenv, fetchFromGitHub, pkgconfig, postgresql }:
2019-08-14 00:52:01 +03:00
stdenv.mkDerivation {
pname = "tsearch-extras";
version = "0.4";
2017-01-26 10:30:50 +03:00
src = fetchFromGitHub {
owner = "zulip";
repo = "tsearch_extras";
rev = "84e78f00931c4ef261d98197d6b5d94fc141f742"; # no release tag?
sha256 = "18j0saqblg3jhrz38splk173xjwdf32c67ymm18m8n5y94h8d2ba";
2017-01-26 10:30:50 +03:00
};
nativenativeBuildInputs = [ pkgconfig ];
2017-01-26 10:30:50 +03:00
buildInputs = [ postgresql ];
installPhase = ''
install -D tsearch_extras.so -t $out/lib/
install -D ./{tsearch_extras--1.0.sql,tsearch_extras.control} -t $out/share/postgresql/extension
2017-01-26 10:30:50 +03:00
'';
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;
platforms = postgresql.meta.platforms;
2017-01-26 10:30:50 +03:00
maintainers = with maintainers; [ DerTim1 ];
};
}