guix_mirror_bot pushed a commit to branch astro-updates
in repository guix.

commit 06a1ef7273cc1138391c466f18298390a62b8cb3
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Fri Oct 17 16:09:46 2025 +0100

    gnu: Add highfive.
    
    * gnu/packages/maths.scm (highfive): New variable.
    
    Change-Id: Ib4f983d955c08adb833c74f77f48b03ac3173944
---
 gnu/packages/maths.scm | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index ae9e2a2553..d4500e4607 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -169,6 +169,7 @@
   #:use-module (gnu packages multiprecision)
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages netpbm)
+  #:use-module (gnu packages ninja)
   #:use-module (gnu packages ocaml)
   #:use-module (gnu packages onc-rpc)
   #:use-module (gnu packages parallel)
@@ -2362,6 +2363,45 @@ installing this filter, you can read and write HDF5 
files with
 Blosc-compressed datasets.")
     (license license:expat)))
 
+(define-public highfive
+  (package
+    (name "highfive")
+    (version "2.10.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/BlueBrain/HighFive";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1yp9bah6prhy31p2xbj4yv7p0p1k0ifjhb0z9i36ki3zx5nsgzrn"))))
+    (build-system cmake-build-system)
+    (arguments
+     (list
+      #:configure-flags
+      #~(list "-DHIGHFIVE_EXAMPLES=OFF"
+              ;; TODO: maybe build with hdf5-parallel-openmpi
+              ;; "-DHIGHFIVE_PARALLEL_HDF5=ON"
+              "-DHIGHFIVE_UNIT_TESTS=ON"
+              "-GNinja")))
+    (native-inputs
+     (list boost
+           catch2-3
+           ninja))
+    (inputs
+     (list hdf5))
+    (home-page "https://bluebrain.github.io/HighFive/";)
+    (synopsis "Header-only C++ HDF5 interface")
+    (description
+     "HighFive is a header-only C++11 friendly interface for @code{libhdf5}.
+ It supports STL vector/string, @code{Boost::UBLAS}, @code{Boost::Multi-array}
+and Xtensor; and handles C++ from/to HDF5 with automatic type
+mapping. HighFive does not require additional libraries.")
+    ;; Boost Software License (BSL) - Version 1.0 - August 17th, 2003
+    (license (license:x11-style "https://www.boost.org/LICENSE_1_0.txt";
+                                "Some components have other similar 
licences."))))
+
 (define-public itex2mml
   (package
     (name "itex2mml")

Reply via email to