diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/sql/postgresql/ext/tsearch_extras.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/sql/postgresql/ext/tsearch_extras.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/sql/postgresql/ext/tsearch_extras.nix b/nixpkgs/pkgs/servers/sql/postgresql/ext/tsearch_extras.nix new file mode 100644 index 000000000000..b42095acd715 --- /dev/null +++ b/nixpkgs/pkgs/servers/sql/postgresql/ext/tsearch_extras.nix @@ -0,0 +1,28 @@ +{ lib, stdenv, fetchFromGitHub, postgresql }: + +stdenv.mkDerivation { + pname = "tsearch-extras"; + version = "0.4"; + + src = fetchFromGitHub { + owner = "zulip"; + repo = "tsearch_extras"; + rev = "84e78f00931c4ef261d98197d6b5d94fc141f742"; # no release tag? + sha256 = "18j0saqblg3jhrz38splk173xjwdf32c67ymm18m8n5y94h8d2ba"; + }; + + buildInputs = [ postgresql ]; + + installPhase = '' + install -D tsearch_extras${postgresql.dlSuffix} -t $out/lib/ + install -D ./{tsearch_extras--1.0.sql,tsearch_extras.control} -t $out/share/postgresql/extension + ''; + + meta = with 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; + maintainers = with maintainers; [ DerTim1 ]; + }; +} |