[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/07: gnu: Add avro-cpp-1.9-for-irods.
From: |
guix-commits |
Subject: |
05/07: gnu: Add avro-cpp-1.9-for-irods. |
Date: |
Mon, 14 Jun 2021 10:45:19 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 6ad4c7e0e2a790b3f6d2c234e5a71c0cdac2aaf3
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Jun 14 16:34:35 2021 +0200
gnu: Add avro-cpp-1.9-for-irods.
* gnu/packages/serialization.scm (avro-cpp-1.9-for-irods): New variable.
---
gnu/packages/serialization.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/serialization.scm b/gnu/packages/serialization.scm
index 366f7d5..7ea25b8 100644
--- a/gnu/packages/serialization.scm
+++ b/gnu/packages/serialization.scm
@@ -45,6 +45,7 @@
#:use-module (gnu packages databases)
#:use-module (gnu packages documentation)
#:use-module (gnu packages gcc)
+ #:use-module (gnu packages llvm)
#:use-module (gnu packages lua)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
@@ -87,6 +88,43 @@ Code generation is not required to read or write data files
nor to use or
implement RPC protocols.")
(license license:asl2.0)))
+(define-public avro-cpp-1.9-for-irods
+ (package
+ (inherit avro-cpp-1.9)
+ (properties `((hidden? . #true)))
+ (arguments
+ `(#:configure-flags
+ '("-DCMAKE_CXX_COMPILER=clang++"
+ "-DCMAKE_CXX_FLAGS=-stdlib=libc++"
+ "-DCMAKE_EXE_LINKER_FLAGS=-lc++abi -lz")
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'chdir
+ (lambda _ (chdir "lang/c++")))
+ (add-after 'set-paths 'adjust-CPLUS_INCLUDE_PATH
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((gcc (assoc-ref inputs "gcc")))
+ (setenv "CPLUS_INCLUDE_PATH"
+ (string-join
+ (cons* (string-append (assoc-ref inputs
"libcxx+libcxxabi")
+ "/include/c++/v1")
+ ;; Hide GCC's C++ headers so that they do not
interfere with
+ ;; the Clang headers.
+ (delete (string-append gcc "/include/c++")
+ (string-split (getenv
"CPLUS_INCLUDE_PATH")
+ #\:)))
+ ":"))
+ (format #true
+ "environment variable `CPLUS_INCLUDE_PATH' changed to
~a~%"
+ (getenv "CPLUS_INCLUDE_PATH"))))))))
+ (inputs
+ `(("boost" ,boost-for-irods)
+ ("clang" ,clang-toolchain-6)
+ ("libcxx+libcxxabi" ,libcxx+libcxxabi-6)
+ ("libcxxabi" ,libcxxabi-6)
+ ("snappy" ,snappy-with-clang6)
+ ("zlib" ,zlib)))))
+
(define-public cereal
(package
(name "cereal")
- branch master updated (ad2a86b -> 209da4f), guix-commits, 2021/06/14
- 01/07: gnu: Add boost-for-irods., guix-commits, 2021/06/14
- 02/07: gnu: Add snappy-with-clang6., guix-commits, 2021/06/14
- 04/07: gnu: Add fmt-for-irods., guix-commits, 2021/06/14
- 05/07: gnu: Add avro-cpp-1.9-for-irods.,
guix-commits <=
- 03/07: gnu: Add nanodbc-for-irods., guix-commits, 2021/06/14
- 06/07: gnu: Add irods., guix-commits, 2021/06/14
- 07/07: gnu: Add irods-client-icommands., guix-commits, 2021/06/14