mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: Use 'search-input-directory' for the Eigen header directory.
* gnu/packages/bioinformatics.scm (sailfish)[arguments]: Use 'search-input-directory' when searching for Eigen headers. * gnu/packages/bioinformatics.scm (nanopolish): Likewise. * gnu/packages/machine-learning.scm (tensorflow): Likewise.
This commit is contained in:
parent
ae112039ac
commit
1ec13efbd2
2 changed files with 8 additions and 9 deletions
|
@ -9499,10 +9499,10 @@ (define-public sailfish
|
|||
|
||||
;; Ensure that Eigen headers can be found
|
||||
(setenv "CPLUS_INCLUDE_PATH"
|
||||
(string-append (assoc-ref inputs "eigen")
|
||||
"/include/eigen3:"
|
||||
(or (getenv "CPLUS_INCLUDE_PATH") "")))
|
||||
#t)))))
|
||||
(string-append (search-input-directory
|
||||
inputs "/include/eigen3")
|
||||
":"
|
||||
(or (getenv "CPLUS_INCLUDE_PATH") ""))))))))
|
||||
(inputs
|
||||
`(("boost" ,boost)
|
||||
("eigen" ,eigen)
|
||||
|
@ -12456,10 +12456,9 @@ (define-public nanopolish
|
|||
(add-after 'unpack 'find-eigen
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(setenv "CPATH"
|
||||
(string-append (assoc-ref inputs "eigen")
|
||||
"/include/eigen3:"
|
||||
(or (getenv "CPATH") "")))
|
||||
#t))
|
||||
(string-append
|
||||
(search-input-directory inputs "/include/eigen3")
|
||||
":" (or (getenv "CPATH") "")))))
|
||||
(delete 'configure)
|
||||
(replace 'install
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
|
|
|
@ -1732,7 +1732,7 @@ (define-public tensorflow
|
|||
(string-append (getcwd) "/eigen-src/"))
|
||||
;; Take Eigen headers from our own package.
|
||||
(("\\$\\{CMAKE_CURRENT_BINARY_DIR\\}/external/eigen_archive")
|
||||
(string-append (assoc-ref inputs "eigen") "/include/eigen3")))
|
||||
(search-input-directory inputs "/include/eigen3")))
|
||||
|
||||
;; Correct the RUNPATH of ops libraries generated for Python.
|
||||
;; TODO: this doesn't work :(
|
||||
|
|
Loading…
Reference in a new issue