mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-15 15:37:54 -05:00
gnu: apache-arrow: Use G-expressions.
* gnu/packages/databases.scm (apache-arrow)[arguments]: Use G-expressions to refer to inputs without assoc-ref.
This commit is contained in:
parent
76a3deb867
commit
a0fe6bec4b
1 changed files with 67 additions and 73 deletions
|
@ -4289,22 +4289,23 @@ (define-public apache-arrow
|
|||
"06d3jjxagj5f14j9c48rh63x7pr9f96v69anjnpc6lakr0gkpi1d"))))
|
||||
(build-system cmake-build-system)
|
||||
(arguments
|
||||
`(#:tests? #f
|
||||
(list
|
||||
#:tests? #f
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-before 'configure 'enter-source-directory
|
||||
(lambda _ (chdir "cpp")))
|
||||
(add-after 'unpack 'set-env
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(substitute* "cpp/cmake_modules/ThirdpartyToolchain.cmake"
|
||||
(("set\\(xsimd_SOURCE.*") ""))
|
||||
(setenv "BOOST_ROOT" (assoc-ref inputs "boost"))
|
||||
(setenv "BROTLI_HOME" (assoc-ref inputs "brotli"))
|
||||
(setenv "FLATBUFFERS_HOME" (assoc-ref inputs "flatbuffers"))
|
||||
(setenv "RAPIDJSON_HOME" (assoc-ref inputs "rapidjson")))))
|
||||
(setenv "BOOST_ROOT" #$(this-package-input "boost"))
|
||||
(setenv "BROTLI_HOME" #$(this-package-input "brotli"))
|
||||
(setenv "FLATBUFFERS_HOME" #$(this-package-input "flatbuffers"))
|
||||
(setenv "RAPIDJSON_HOME" #$(this-package-input "rapidjson")))))
|
||||
#:build-type "Release"
|
||||
#:configure-flags
|
||||
(list "-DARROW_PYTHON=ON"
|
||||
#~(list "-DARROW_PYTHON=ON"
|
||||
"-DARROW_GLOG=ON"
|
||||
;; Parquet options
|
||||
"-DARROW_PARQUET=ON"
|
||||
|
@ -4330,19 +4331,12 @@ (define-public apache-arrow
|
|||
"-DARROW_PACKAGE_KIND=Guix"
|
||||
|
||||
;; Split output into its component packages.
|
||||
(string-append "-DCMAKE_INSTALL_PREFIX="
|
||||
(assoc-ref %outputs "lib"))
|
||||
(string-append "-DCMAKE_INSTALL_RPATH="
|
||||
(assoc-ref %outputs "lib")
|
||||
"/lib")
|
||||
(string-append "-DCMAKE_INSTALL_BINDIR="
|
||||
(assoc-ref %outputs "out")
|
||||
"/bin")
|
||||
(string-append "-DCMAKE_INSTALL_INCLUDEDIR="
|
||||
(assoc-ref %outputs "include")
|
||||
(string-append "-DCMAKE_INSTALL_PREFIX=" #$output:lib)
|
||||
(string-append "-DCMAKE_INSTALL_RPATH=" #$output:lib "/lib")
|
||||
(string-append "-DCMAKE_INSTALL_BINDIR=" #$output "/bin")
|
||||
(string-append "-DCMAKE_INSTALL_INCLUDEDIR=" #$output:include
|
||||
"/share/include")
|
||||
|
||||
|
||||
"-DARROW_WITH_SNAPPY=ON"
|
||||
"-DARROW_WITH_ZLIB=ON"
|
||||
"-DARROW_WITH_ZSTD=ON"
|
||||
|
|
Loading…
Reference in a new issue