1{
2 fetchFromGitHub,
3 lib,
4 postgresql,
5 postgresqlBuildExtension,
6 postgresqlTestExtension,
7}:
8
9postgresqlBuildExtension (finalAttrs: {
10 pname = "rum";
11 version = "1.3.14";
12
13 src = fetchFromGitHub {
14 owner = "postgrespro";
15 repo = "rum";
16 tag = finalAttrs.version;
17 hash = "sha256-VsfpxQqRBu9bIAP+TfMRXd+B3hSjuhU2NsutocNiCt8=";
18 };
19
20 makeFlags = [ "USE_PGXS=1" ];
21
22 passthru.tests.extension = postgresqlTestExtension {
23 inherit (finalAttrs) finalPackage;
24 sql = ''
25 CREATE EXTENSION rum;
26 CREATE TABLE test_table (t text, v tsvector);
27 CREATE INDEX test_table_rumindex ON test_table USING rum (v rum_tsvector_ops);
28 '';
29 };
30
31 meta = {
32 description = "Full text search index method for PostgreSQL";
33 homepage = "https://github.com/postgrespro/rum";
34 license = lib.licenses.postgresql;
35 platforms = postgresql.meta.platforms;
36 maintainers = with lib.maintainers; [ DeeUnderscore ];
37 };
38})