mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
Merge pull request #257164 from ivan/init-pg_embedding-0.3.6
postgresqlPackages.pg_embedding: init at 0.3.6
This commit is contained in:
commit
5fc25dedf3
30
pkgs/servers/sql/postgresql/ext/pg_embedding.nix
Normal file
30
pkgs/servers/sql/postgresql/ext/pg_embedding.nix
Normal file
@ -0,0 +1,30 @@
|
||||
{ lib, stdenv, fetchFromGitHub, postgresql }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pg_embedding";
|
||||
version = "0.3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "neondatabase";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-NTBxsQB8mR7e/CWwkCEyDiYhi3Nxl/aKgRBwqc0THcI=";
|
||||
};
|
||||
|
||||
buildInputs = [ postgresql ];
|
||||
|
||||
installPhase = ''
|
||||
install -D -t $out/lib *.so
|
||||
install -D -t $out/share/postgresql/extension *.sql
|
||||
install -D -t $out/share/postgresql/extension *.control
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "PostgreSQL extension implementing the HNSW algorithm for vector similarity search";
|
||||
homepage = "https://github.com/neondatabase/pg_embedding";
|
||||
maintainers = with maintainers; [ ivan ];
|
||||
platforms = postgresql.meta.platforms;
|
||||
license = licenses.asl20;
|
||||
broken = versionOlder postgresql.version "12";
|
||||
};
|
||||
}
|
@ -18,6 +18,8 @@ self: super: {
|
||||
|
||||
pg_ed25519 = super.callPackage ./ext/pg_ed25519.nix { };
|
||||
|
||||
pg_embedding = super.callPackage ./ext/pg_embedding.nix { };
|
||||
|
||||
pg_hint_plan = super.callPackage ./ext/pg_hint_plan.nix { };
|
||||
|
||||
pg_ivm = super.callPackage ./ext/pg_ivm.nix { };
|
||||
|
Loading…
Reference in New Issue
Block a user