mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
cc57329742
Diff: https://github.com/pgvector/pgvector/compare/v0.4.4...v0.5.0 Changelog: https://github.com/pgvector/pgvector/raw/v0.5.0/CHANGELOG.md
31 lines
877 B
Nix
31 lines
877 B
Nix
{ lib, stdenv, fetchFromGitHub, postgresql }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pgvector";
|
|
version = "0.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pgvector";
|
|
repo = "pgvector";
|
|
rev = "v${version}";
|
|
hash = "sha256-7GRqGgU15VQAY0wvZqfPU9og7s+/0NlOpTMclXPVwlQ=";
|
|
};
|
|
|
|
buildInputs = [ postgresql ];
|
|
|
|
installPhase = ''
|
|
install -D -t $out/lib vector.so
|
|
install -D -t $out/share/postgresql/extension sql/vector-*.sql
|
|
install -D -t $out/share/postgresql/extension vector.control
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Open-source vector similarity search for PostgreSQL";
|
|
homepage = "https://github.com/pgvector/pgvector";
|
|
changelog = "https://github.com/pgvector/pgvector/raw/v${version}/CHANGELOG.md";
|
|
license = licenses.postgresql;
|
|
platforms = postgresql.meta.platforms;
|
|
maintainers = [ maintainers.marsam ];
|
|
};
|
|
}
|