Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
postgresql,
|
|
postgresqlBuildExtension,
|
|
postgresqlTestExtension,
|
|
}:
|
|
|
|
postgresqlBuildExtension (finalAttrs: {
|
|
pname = "rum";
|
|
version = "1.3.14";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "postgrespro";
|
|
repo = "rum";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-VsfpxQqRBu9bIAP+TfMRXd+B3hSjuhU2NsutocNiCt8=";
|
|
};
|
|
|
|
makeFlags = [ "USE_PGXS=1" ];
|
|
|
|
passthru.tests.extension = postgresqlTestExtension {
|
|
inherit (finalAttrs) finalPackage;
|
|
sql = ''
|
|
CREATE EXTENSION rum;
|
|
CREATE TABLE test_table (t text, v tsvector);
|
|
CREATE INDEX test_table_rumindex ON test_table USING rum (v rum_tsvector_ops);
|
|
'';
|
|
};
|
|
|
|
meta = {
|
|
# PostgreSQL 18 support issue upstream: https://github.com/postgrespro/rum/issues/156
|
|
# Check after next package update.
|
|
broken = lib.warnIf (finalAttrs.version != "1.3.14") "Is postgresql18Packages.rum still broken?" (
|
|
lib.versionAtLeast postgresql.version "18"
|
|
);
|
|
description = "Full text search index method for PostgreSQL";
|
|
homepage = "https://github.com/postgrespro/rum";
|
|
license = lib.licenses.postgresql;
|
|
platforms = postgresql.meta.platforms;
|
|
maintainers = with lib.maintainers; [ DeeUnderscore ];
|
|
};
|
|
})
|