mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: pgvector: Fix installation.
* gnu/packages/databases.scm (pgvector)[arguments]: Do not use DESTDIR; replace 'install phase. Change-Id: Ic2a8d174adf4f5323879dc60091b414178e3ad3e
This commit is contained in:
parent
63f9e7deaf
commit
b402a438f8
1 changed files with 15 additions and 3 deletions
|
@ -1498,11 +1498,23 @@ (define-public pgvector
|
|||
(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")
|
||||
|
|
Loading…
Reference in a new issue