
Those extensions don't support building with PostgreSQL 18, yet. To make sure the broken status is updated on the next upgrade, they all have version checks in the form of an evaluation warning, so that there has be explicit action regarding its PG18 compatibility.
34 lines
1.0 KiB
Nix
34 lines
1.0 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
postgresql,
|
|
postgresqlBuildExtension,
|
|
}:
|
|
|
|
postgresqlBuildExtension (finalAttrs: {
|
|
pname = "pgvector";
|
|
version = "0.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pgvector";
|
|
repo = "pgvector";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-JsZV+I4eRMypXTjGmjCtMBXDVpqTIPHQa28ogXncE/Q=";
|
|
};
|
|
|
|
meta = {
|
|
# PostgreSQL 18 support issue upstream: https://github.com/pgvector/pgvector/issues/869
|
|
# Note: already fixed on `master` branch.
|
|
# Check after next package update.
|
|
broken = lib.warnIf (
|
|
finalAttrs.version != "0.8.0"
|
|
) "Is postgresql18Packages.pgvector still broken?" (lib.versionAtLeast postgresql.version "18");
|
|
description = "Open-source vector similarity search for PostgreSQL";
|
|
homepage = "https://github.com/pgvector/pgvector";
|
|
changelog = "https://github.com/pgvector/pgvector/raw/v${finalAttrs.version}/CHANGELOG.md";
|
|
license = lib.licenses.postgresql;
|
|
platforms = postgresql.meta.platforms;
|
|
maintainers = [ ];
|
|
};
|
|
})
|