postgresql15Packages.pgvector: fix build for PostgreSQL 15

This commit is contained in:
Mario Rodas 2022-10-14 04:20:00 +00:00
parent fbe3995298
commit 972f78b6fb

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, postgresql }: { lib, stdenv, fetchFromGitHub, fetchpatch, postgresql }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "pgvector"; pname = "pgvector";
@ -11,6 +11,14 @@ stdenv.mkDerivation rec {
sha256 = "sha256-kIgdr3+KC11Qxk1uBTmcN4dDaLIhfo/Fs898boESsBc="; sha256 = "sha256-kIgdr3+KC11Qxk1uBTmcN4dDaLIhfo/Fs898boESsBc=";
}; };
patches = [
# Added support for Postgres 15. Remove with the next release.
(fetchpatch {
url = "https://github.com/pgvector/pgvector/commit/c9c6b96eede7d78758ca7ca5db98bf8b24021d0f.patch";
sha256 = "sha256-hgCpGtuYmqo4Ttlpn4FBskbNdZmM1wJeMQBJZ7H923g=";
})
];
buildInputs = [ postgresql ]; buildInputs = [ postgresql ];
installPhase = '' installPhase = ''