at master 1.2 kB view raw
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 # PostgreSQL 18 support issue upstream: https://github.com/postgrespro/rum/issues/156 33 # Check after next package update. 34 broken = lib.warnIf (finalAttrs.version != "1.3.14") "Is postgresql18Packages.rum still broken?" ( 35 lib.versionAtLeast postgresql.version "18" 36 ); 37 description = "Full text search index method for PostgreSQL"; 38 homepage = "https://github.com/postgrespro/rum"; 39 license = lib.licenses.postgresql; 40 platforms = postgresql.meta.platforms; 41 maintainers = with lib.maintainers; [ DeeUnderscore ]; 42 }; 43})