pgvecto-rs: mark as broken in pg12 and pg13

Upstream (accidentally) broke support for postgresql 12 and 13 on
v0.2.1 by changing the signature of the `from_datum` function[^1].
This went unnoticed since the release branch `0.2` did not have CI.
Furthermore, they are removing support for these versions of postgresql
on v0.3.0[^2].

[^1]: https://github.com/tensorchord/pgvecto.rs/commit/97e861d51d5a5a8c314a6657e02d445a1edcaa30
[^2]: https://github.com/tensorchord/pgvecto.rs/issues/343

Changed files
+4 -3
nixos
pkgs
servers
sql
postgresql
ext
pgvecto-rs
+1 -1
nixos/tests/pgvecto-rs.nix
···
'';
};
-
applicablePostgresqlVersions = filterAttrs (_: value: versionAtLeast value.version "12") postgresql-versions;
+
applicablePostgresqlVersions = filterAttrs (_: value: versionAtLeast value.version "14") postgresql-versions;
in
mapAttrs'
(name: package: {
+3 -2
pkgs/servers/sql/postgresql/ext/pgvecto-rs/default.nix
···
, buildPgrxExtension
, cargo-pgrx_0_11_2
, clang_16
-
, fetchCrate
, fetchFromGitHub
, nix-update-script
, nixosTests
···
meta = with lib; {
# The pgrx 0.11.2 dependency is broken in aarch64-linux: https://github.com/pgcentralfoundation/pgrx/issues/1429
# It is fixed in pgrx 0.11.3, but upstream is still using pgrx 0.11.2
-
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
+
# Additionally, upstream (accidentally) broke support for PostgreSQL 12 and 13 on 0.2.1, but
+
# they are removing it in 0.3.0 either way: https://github.com/tensorchord/pgvecto.rs/issues/343
+
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin || (versionOlder postgresql.version "14");
description = "Scalable, Low-latency and Hybrid-enabled Vector Search in Postgres";
homepage = "https://github.com/tensorchord/pgvecto.rs";
license = licenses.asl20;