diff options
| author | Arun Isaac <arunisaac@systemreboot.net> | 2026-02-06 01:58:58 +0000 |
|---|---|---|
| committer | jgart <jgart@dismail.de> | 2026-02-06 14:25:52 -0600 |
| commit | 65edf46f27717725b58994e3a86d170e4dc893dd (patch) | |
| tree | 441761b460f24fb7e2444a06cd1fb85d2a61a05d | |
| parent | f4bb583561a506876563964126d53758d60d2d9b (diff) | |
gnu: Add blevesearch-faiss.
* gnu/packages/golang-xyz.scm (blevesearch-faiss): New variable.
Signed-off-by: jgart <jgart@dismail.de>
| -rw-r--r-- | gnu/packages/golang-xyz.scm | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index f51d2d6d0ef..5dad9c13814 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm | |||
| @@ -109,6 +109,7 @@ | |||
| 109 | #:use-module (gnu packages golang-crypto) | 109 | #:use-module (gnu packages golang-crypto) |
| 110 | #:use-module (gnu packages golang-maths) | 110 | #:use-module (gnu packages golang-maths) |
| 111 | #:use-module (gnu packages golang-web) | 111 | #:use-module (gnu packages golang-web) |
| 112 | #:use-module (gnu packages graph) | ||
| 112 | #:use-module (gnu packages libedit) | 113 | #:use-module (gnu packages libedit) |
| 113 | #:use-module (gnu packages linux) | 114 | #:use-module (gnu packages linux) |
| 114 | #:use-module (gnu packages pkg-config) | 115 | #:use-module (gnu packages pkg-config) |
| @@ -15081,6 +15082,43 @@ interface. This package provides that key-value store API interface.") | |||
| 15081 | and executing an @acronym{FST, finite state transducer}.") | 15082 | and executing an @acronym{FST, finite state transducer}.") |
| 15082 | (license license:asl2.0))) | 15083 | (license license:asl2.0))) |
| 15083 | 15084 | ||
| 15085 | (define-public blevesearch-faiss | ||
| 15086 | (let ((commit "608356b7c9630e891ff87cc49cc7bb460c3870d3") | ||
| 15087 | (revision "0")) | ||
| 15088 | (package | ||
| 15089 | (inherit faiss) | ||
| 15090 | (name "blevesearch-faiss") | ||
| 15091 | (version (git-version "1.11.0" revision commit)) | ||
| 15092 | (source | ||
| 15093 | (origin | ||
| 15094 | (inherit (package-source faiss)) | ||
| 15095 | (uri (git-reference | ||
| 15096 | (url "https://github.com/blevesearch/faiss") | ||
| 15097 | (commit commit))) | ||
| 15098 | (file-name (git-file-name name version)) | ||
| 15099 | (sha256 | ||
| 15100 | (base32 "0m0hyqn9db0xdbvan0lin7xf11dl4xdpjwwpagw01hl4z72w3al0")))) | ||
| 15101 | (arguments | ||
| 15102 | (substitute-keyword-arguments (package-arguments faiss) | ||
| 15103 | ((#:configure-flags flags '()) | ||
| 15104 | ;; Add -fpermissive to suppress errors about non-conforming code. | ||
| 15105 | #~(cons "-DCMAKE_CXX_FLAGS=-fpermissive" | ||
| 15106 | #$flags)) | ||
| 15107 | ((#:test-exclude test-exclude #f) | ||
| 15108 | "Threading.openmp|IVF.list_context") | ||
| 15109 | ((#:phases phases #~%standard-phases) | ||
| 15110 | #~(modify-phases #$phases | ||
| 15111 | (add-after 'unpack 'fix-bugs | ||
| 15112 | (lambda _ | ||
| 15113 | ;; Add include directory to target. | ||
| 15114 | (substitute* "c_api/CMakeLists.txt" | ||
| 15115 | (("add_library\\(faiss_c [^\n]*" line) | ||
| 15116 | (string-append line "\n" "target_include_directories(faiss_c PRIVATE ${CMAKE_SOURCE_DIR})\n"))) | ||
| 15117 | ;; Do not assign using initializer list. | ||
| 15118 | (substitute* "tests/test_hamming.cpp" | ||
| 15119 | (("\\{na, k, ids_ham_knn.data[^\n]*" all) | ||
| 15120 | (string-append "faiss::int_maxheap_array_t" all)))))))))))) | ||
| 15121 | |||
| 15084 | (define-public go-github-com-blevesearch-segment | 15122 | (define-public go-github-com-blevesearch-segment |
| 15085 | (package | 15123 | (package |
| 15086 | (name "go-github-com-blevesearch-segment") | 15124 | (name "go-github-com-blevesearch-segment") |
