postgresqlPackages.pg_embedding: init at 0.3.6

+32
+30
pkgs/servers/sql/postgresql/ext/pg_embedding.nix
··· 1 + { lib, stdenv, fetchFromGitHub, postgresql }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "pg_embedding"; 5 + version = "0.3.6"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "neondatabase"; 9 + repo = pname; 10 + rev = version; 11 + hash = "sha256-NTBxsQB8mR7e/CWwkCEyDiYhi3Nxl/aKgRBwqc0THcI="; 12 + }; 13 + 14 + buildInputs = [ postgresql ]; 15 + 16 + installPhase = '' 17 + install -D -t $out/lib *.so 18 + install -D -t $out/share/postgresql/extension *.sql 19 + install -D -t $out/share/postgresql/extension *.control 20 + ''; 21 + 22 + meta = with lib; { 23 + description = "PostgreSQL extension implementing the HNSW algorithm for vector similarity search"; 24 + homepage = "https://github.com/neondatabase/pg_embedding"; 25 + maintainers = with maintainers; [ ivan ]; 26 + platforms = postgresql.meta.platforms; 27 + license = licenses.asl20; 28 + broken = versionOlder postgresql.version "12"; 29 + }; 30 + }
+2
pkgs/servers/sql/postgresql/packages.nix
··· 16 16 17 17 pg_ed25519 = super.callPackage ./ext/pg_ed25519.nix { }; 18 18 19 + pg_embedding = super.callPackage ./ext/pg_embedding.nix { }; 20 + 19 21 pg_hint_plan = super.callPackage ./ext/pg_hint_plan.nix { }; 20 22 21 23 pg_ivm = super.callPackage ./ext/pg_ivm.nix { };