Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postgresqlPackages.pg_embedding: init at 0.3.1 #243216

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions pkgs/servers/sql/postgresql/ext/pg_embedding.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{ lib, stdenv, fetchFromGitHub, postgresql }:

stdenv.mkDerivation rec {
pname = "pg_embedding";
version = "0.3.1";

src = fetchFromGitHub {
owner = "neondatabase";
repo = pname;
rev = version;
hash = "sha256-dpwBwomUPzxnBVnnK4IWYlP+c8Z/EKerXhgrLcQj8Gk=";
};

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.postgresql;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't seem like pg_embedding is still PostgreSQL-licensed.

The LICENSE file has been removed

broken = versionOlder postgresql.version "14";
};
}
2 changes: 2 additions & 0 deletions pkgs/servers/sql/postgresql/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,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 { };
Expand Down