~ruther/guix-local

63f9e7deaf235130bc01cbf51268d40dedb467ae — Ricardo Wurmus 2 years ago bb27031
gnu: Add pgvector.

* gnu/packages/databases.scm (pgvector): New variable.

Change-Id: I07b87956edc4c32d2ff1af2995a2a965fddf4ab7
1 files changed, 38 insertions(+), 0 deletions(-)

M gnu/packages/databases.scm
M gnu/packages/databases.scm => gnu/packages/databases.scm +38 -0
@@ 1480,6 1480,44 @@ PostgreSQL extension, providing automatic partitioning across time and space
(partitioning key), as well as full SQL support.")
    (license license:asl2.0)))

(define-public pgvector
  (package
    (name "pgvector")
    (version "0.6.0")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/pgvector/pgvector")
                    (commit (string-append "v" version))))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "19zcjrlmyj7gfbn8prh014yq50iy4dg97pirsm7idxsr829vwyc5"))))
    (build-system gnu-build-system)
    (arguments
     (list
      ;; Do not use -march=native
      #:make-flags
      #~(list "OPTFLAGS="
              (string-append "DESTDIR=" #$output))
      #:phases
      #~(modify-phases %standard-phases
          (delete 'configure))))
    (inputs (list postgresql))
    (home-page "https://github.com/pgvector/pgvector")
    (synopsis "Vector similarity search for Postgres")
    (description
     "This package provides a vector similarity search extension for Postgres.
Store your vectors with the rest of your data.  It supports:

@itemize
@item exact and approximate nearest neighbor search;
@item L2 distance, inner product, and cosine distance;
@item any language with a Postgres client.
@end itemize
")
    (license (license:x11-style "file://COPYRIGHT"))))

(define-public pgloader
  (package
    (name "pgloader")