[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: pgvector: Fix installation.
From: |
guix-commits |
Subject: |
branch master updated: gnu: pgvector: Fix installation. |
Date: |
Thu, 29 Feb 2024 11:46:57 -0500 |
This is an automated email from the git hooks/post-receive script.
rekado pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new b402a438f8 gnu: pgvector: Fix installation.
b402a438f8 is described below
commit b402a438f8179119109633200fb6b1b890eedd99
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Thu Feb 29 17:45:20 2024 +0100
gnu: pgvector: Fix installation.
* gnu/packages/databases.scm (pgvector)[arguments]: Do not use DESTDIR;
replace 'install phase.
Change-Id: Ic2a8d174adf4f5323879dc60091b414178e3ad3e
---
gnu/packages/databases.scm | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 0f448c4a24..db4fe0b447 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -1498,11 +1498,23 @@ PostgreSQL extension, providing automatic partitioning
across time and space
(list
;; Do not use -march=native
#:make-flags
- #~(list "OPTFLAGS="
- (string-append "DESTDIR=" #$output))
+ '(list "OPTFLAGS=")
#:phases
#~(modify-phases %standard-phases
- (delete 'configure))))
+ (delete 'configure)
+ (replace 'install
+ (lambda _
+ (let ((extension (string-append #$output "/share/extension"))
+ (lib (string-append #$output "/lib"))
+ (headers (string-append #$output
"/include/server/extension/vector")))
+ (for-each mkdir-p (list extension lib headers))
+ (install-file "vector.so" lib)
+ (chmod (string-append lib "/vector.so") #o755)
+ (install-file "vector.control" extension)
+ (for-each (lambda (file)
+ (install-file file extension))
+ (find-files "sql" "\\.sql$"))
+ (install-file "src/vector.h" headers)))))))
(inputs (list postgresql))
(home-page "https://github.com/pgvector/pgvector")
(synopsis "Vector similarity search for Postgres")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: pgvector: Fix installation.,
guix-commits <=