23d902a90f
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/tsearch-extras/versions. These checks were done: - built on NixOS - Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.) - directory tree listing: https://gist.github.com/4cc503c3c6f22711358d01e0ae7f7d76
30 lines
841 B
Nix
30 lines
841 B
Nix
{ stdenv, fetchFromGitHub, pkgconfig, postgresql }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "tsearch-extras-${version}";
|
|
version = "0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zulip";
|
|
repo = "tsearch_extras";
|
|
rev = version;
|
|
sha256 = "0i3i99lw80jwd4xflgdqabxmn1dnm1gm7dzf1mqv2drllxcy3yix";
|
|
};
|
|
|
|
nativenativeBuildInputs = [ pkgconfig ];
|
|
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 ];
|
|
};
|
|
}
|