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:
Ludovic Courtès 2021-07-16 15:49:34 +02:00
parent ae112039ac
commit 1ec13efbd2
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5
2 changed files with 8 additions and 9 deletions

View file

@ -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)

View file

@ -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 :(