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:
Ricardo Wurmus 2023-05-09 13:19:55 +02:00
parent 76a3deb867
commit a0fe6bec4b
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -4289,86 +4289,80 @@ the SQL language using a syntax that reflects the resulting query.")
"06d3jjxagj5f14j9c48rh63x7pr9f96v69anjnpc6lakr0gkpi1d")))) "06d3jjxagj5f14j9c48rh63x7pr9f96v69anjnpc6lakr0gkpi1d"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:tests? #f (list
#:phases #:tests? #f
(modify-phases %standard-phases #:phases
(add-before 'configure 'enter-source-directory #~(modify-phases %standard-phases
(lambda _ (chdir "cpp"))) (add-before 'configure 'enter-source-directory
(add-after 'unpack 'set-env (lambda _ (chdir "cpp")))
(lambda* (#:key inputs #:allow-other-keys) (add-after 'unpack 'set-env
(substitute* "cpp/cmake_modules/ThirdpartyToolchain.cmake" (lambda* (#:key inputs #:allow-other-keys)
(("set\\(xsimd_SOURCE.*") "")) (substitute* "cpp/cmake_modules/ThirdpartyToolchain.cmake"
(setenv "BOOST_ROOT" (assoc-ref inputs "boost")) (("set\\(xsimd_SOURCE.*") ""))
(setenv "BROTLI_HOME" (assoc-ref inputs "brotli")) (setenv "BOOST_ROOT" #$(this-package-input "boost"))
(setenv "FLATBUFFERS_HOME" (assoc-ref inputs "flatbuffers")) (setenv "BROTLI_HOME" #$(this-package-input "brotli"))
(setenv "RAPIDJSON_HOME" (assoc-ref inputs "rapidjson"))))) (setenv "FLATBUFFERS_HOME" #$(this-package-input "flatbuffers"))
(setenv "RAPIDJSON_HOME" #$(this-package-input "rapidjson")))))
#:build-type "Release" #:build-type "Release"
#:configure-flags #:configure-flags
(list "-DARROW_PYTHON=ON" #~(list "-DARROW_PYTHON=ON"
"-DARROW_GLOG=ON" "-DARROW_GLOG=ON"
;; Parquet options ;; Parquet options
"-DARROW_PARQUET=ON" "-DARROW_PARQUET=ON"
"-DPARQUET_BUILD_EXECUTABLES=ON" "-DPARQUET_BUILD_EXECUTABLES=ON"
;; The maintainers disallow using system versions of ;; The maintainers disallow using system versions of
;; jemalloc: ;; jemalloc:
;; https://issues.apache.org/jira/browse/ARROW-3507. This ;; https://issues.apache.org/jira/browse/ARROW-3507. This
;; is unfortunate because jemalloc increases performance: ;; is unfortunate because jemalloc increases performance:
;; https://arrow.apache.org/blog/2018/07/20/jemalloc/. ;; https://arrow.apache.org/blog/2018/07/20/jemalloc/.
"-DARROW_JEMALLOC=OFF" "-DARROW_JEMALLOC=OFF"
;; The CMake option ARROW_DEPENDENCY_SOURCE is a global ;; The CMake option ARROW_DEPENDENCY_SOURCE is a global
;; option that instructs the build system how to resolve ;; option that instructs the build system how to resolve
;; each dependency. SYSTEM = Finding the dependency in ;; each dependency. SYSTEM = Finding the dependency in
;; system paths using CMake's built-in find_package ;; system paths using CMake's built-in find_package
;; function, or using pkg-config for packages that do not ;; function, or using pkg-config for packages that do not
;; have this feature ;; have this feature
"-DARROW_DEPENDENCY_SOURCE=SYSTEM" "-DARROW_DEPENDENCY_SOURCE=SYSTEM"
"-Dxsimd_SOURCE=SYSTEM" "-Dxsimd_SOURCE=SYSTEM"
"-DARROW_RUNTIME_SIMD_LEVEL=NONE" "-DARROW_RUNTIME_SIMD_LEVEL=NONE"
"-DARROW_SIMD_LEVEL=NONE" "-DARROW_SIMD_LEVEL=NONE"
"-DARROW_PACKAGE_KIND=Guix" "-DARROW_PACKAGE_KIND=Guix"
;; Split output into its component packages. ;; Split output into its component packages.
(string-append "-DCMAKE_INSTALL_PREFIX=" (string-append "-DCMAKE_INSTALL_PREFIX=" #$output:lib)
(assoc-ref %outputs "lib")) (string-append "-DCMAKE_INSTALL_RPATH=" #$output:lib "/lib")
(string-append "-DCMAKE_INSTALL_RPATH=" (string-append "-DCMAKE_INSTALL_BINDIR=" #$output "/bin")
(assoc-ref %outputs "lib") (string-append "-DCMAKE_INSTALL_INCLUDEDIR=" #$output:include
"/lib") "/share/include")
(string-append "-DCMAKE_INSTALL_BINDIR="
(assoc-ref %outputs "out")
"/bin")
(string-append "-DCMAKE_INSTALL_INCLUDEDIR="
(assoc-ref %outputs "include")
"/share/include")
"-DARROW_WITH_SNAPPY=ON"
"-DARROW_WITH_ZLIB=ON"
"-DARROW_WITH_ZSTD=ON"
"-DARROW_WITH_LZ4=ON"
"-DARROW_COMPUTE=ON"
"-DARROW_CSV=ON"
"-DARROW_DATASET=ON"
"-DARROW_FILESYSTEM=ON"
"-DARROW_HDFS=ON"
"-DARROW_JSON=ON"
;; Arrow Python C++ integration library (required for
;; building pyarrow). This library must be built against
;; the same Python version for which you are building
;; pyarrow. NumPy must also be installed. Enabling this
;; option also enables ARROW_COMPUTE, ARROW_CSV,
;; ARROW_DATASET, ARROW_FILESYSTEM, ARROW_HDFS, and
;; ARROW_JSON.
"-DARROW_PYTHON=ON"
"-DARROW_WITH_SNAPPY=ON" ;; Building the tests forces on all the
"-DARROW_WITH_ZLIB=ON" ;; optional features and the use of static
"-DARROW_WITH_ZSTD=ON" ;; libraries.
"-DARROW_WITH_LZ4=ON" "-DARROW_BUILD_TESTS=OFF"
"-DARROW_COMPUTE=ON" "-DBENCHMARK_ENABLE_GTEST_TESTS=OFF"
"-DARROW_CSV=ON" ;;"-DBENCHMARK_ENABLE_TESTING=OFF"
"-DARROW_DATASET=ON" "-DARROW_BUILD_STATIC=OFF")))
"-DARROW_FILESYSTEM=ON"
"-DARROW_HDFS=ON"
"-DARROW_JSON=ON"
;; Arrow Python C++ integration library (required for
;; building pyarrow). This library must be built against
;; the same Python version for which you are building
;; pyarrow. NumPy must also be installed. Enabling this
;; option also enables ARROW_COMPUTE, ARROW_CSV,
;; ARROW_DATASET, ARROW_FILESYSTEM, ARROW_HDFS, and
;; ARROW_JSON.
"-DARROW_PYTHON=ON"
;; Building the tests forces on all the
;; optional features and the use of static
;; libraries.
"-DARROW_BUILD_TESTS=OFF"
"-DBENCHMARK_ENABLE_GTEST_TESTS=OFF"
;;"-DBENCHMARK_ENABLE_TESTING=OFF"
"-DARROW_BUILD_STATIC=OFF")))
(inputs (inputs
`(("boost" ,boost) `(("boost" ,boost)
("brotli" ,brotli) ("brotli" ,brotli)