2022-03-30 09:31:56 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, postgresql }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rum";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "1.3.13";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "postgrespro";
|
|
|
|
repo = "rum";
|
|
|
|
rev = version;
|
2022-09-30 11:47:45 +00:00
|
|
|
hash = "sha256-yy2xeDnk3fENN+En0st4mv60nZlqPafIzwf68jwJ5fE=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ postgresql ];
|
|
|
|
|
|
|
|
makeFlags = [ "USE_PGXS=1" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2023-10-19 13:55:26 +00:00
|
|
|
install -D -t $out/lib *${postgresql.dlSuffix}
|
2022-03-30 09:31:56 +00:00
|
|
|
install -D -t $out/share/postgresql/extension *.control
|
|
|
|
install -D -t $out/share/postgresql/extension *.sql
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Full text search index method for PostgreSQL";
|
|
|
|
homepage = "https://github.com/postgrespro/rum";
|
|
|
|
license = licenses.postgresql;
|
|
|
|
platforms = postgresql.meta.platforms;
|
|
|
|
maintainers = with maintainers; [ DeeUnderscore ];
|
|
|
|
};
|
|
|
|
}
|