projects/guix·blob science-team · refs

5392 lines · 211.2 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2017 Ethan R. Jones <[email protected]>
3;;; Copyright © 2018–2021 Tobias Geerinckx-Rice <[email protected]>
4;;; Copyright © 2018 Fis Trivial <[email protected]>
5;;; Copyright © 2018, 2021, 2023-2024 Ludovic Courtès <[email protected]>
6;;; Copyright © 2019, 2020, 2022 Mathieu Othacehe <[email protected]>
7;;; Copyright © 2019 Pierre Neidhardt <[email protected]>
8;;; Copyright © 2019 Jan Wielkiewicz <[email protected]>
9;;; Copyright © 2020, 2021 Nicolò Balzarotti <[email protected]>
10;;; Copyright © 2020 Roel Janssen <[email protected]>
11;;; Copyright © 2020, 2021, 2023-2026 Ricardo Wurmus <[email protected]>
12;;; Copyright © 2020 Brice Waegeneire <[email protected]>
13;;; Copyright © 2020, 2021, 2022, 2024, 2025 Vinicius Monego <[email protected]>
14;;; Copyright © 2020, 2022 Marius Bakke <[email protected]>
15;;; Copyright © 2020 Michael Rohleder <[email protected]>
16;;; Copyright © 2020 Alexandros Theodotou <[email protected]>
17;;; Copyright © 2020-2022 Greg Hogan <[email protected]>
18;;; Copyright © 2020 Brett Gilio <[email protected]>
19;;; Copyright © 2020 Milkey Mouse <[email protected]>
20;;; Copyright © 2021 Raghav Gururajan <[email protected]>
21;;; Copyright © 2021 Felix Gruber <[email protected]>
22;;; Copyright © 2021 Nicolò Balzarotti <[email protected]>
23;;; Copyright © 2021 Guillaume Le Vaillant <[email protected]>
24;;; Copyright © 2021 Nikolay Korotkiy <[email protected]>
25;;; Copyright © 2021 jgart <[email protected]>
26;;; Copyright © 2021 Julien Lepiller <[email protected]>
27;;; Copyright © 2021 Disseminate Dissent <[email protected]>
28;;; Copyright © 2022-2024 Efraim Flashner <[email protected]>
29;;; Copyright © 2022 muradm <[email protected]>
30;;; Copyright © 2022 Attila Lendvai <[email protected]>
31;;; Copyright © 2022, 2026 Arun Isaac <[email protected]>
32;;; Copyright © 2022-2025 David Elsing <[email protected]>
33;;; Copyright © 2022-2024 Zheng Junjie <[email protected]>
34;;; Copyright © 2022-2024, 2026 Maxim Cournoyer <[email protected]>
35;;; Copyright © 2022 Antero Mejr <[email protected]>
36;;; Copyright © 2023, 2025 Sughosha <[email protected]>
37;;; Copyright © 2023, 2024, 2025 Artyom V. Poptsov <[email protected]>
38;;; Copyright © 2023 Liliana Marie Prikler <[email protected]>
39;;; Copyright © 2023 Denis 'GNUtoo' Carikli <[email protected]>
40;;; Copyright © 2023 Foundation Devices, Inc. <[email protected]>
41;;; Copyright © 2023-2024 Paul A. Patience <[email protected]>
42;;; Copyright © 2024 dan <[email protected]>
43;;; Copyright © 2024 Peepo Froggings <[email protected]>
44;;; Copyright © 2024 Jakob Kirsch <[email protected]>
45;;; Copyright © 2025 Sharlatan Hellseher <[email protected]>
46;;; Copyright © 2025 Sergio Pastor Pérez <[email protected]>
47;;; Copyright © 2025, 2026 Ashish SHUKLA <[email protected]>
48;;; Copyright © 2025 Nicolas Graves <[email protected]>
49;;; Copyright © 2025 Romain Garbage <[email protected]>
50;;; Copyright © 2024, 2025 Janneke Nieuwenhuizen <[email protected]>
51;;; Copyright © 2025 Andreas Enge <[email protected]>
52;;; Copyright © 2025 Philippe Swartvagher <[email protected]>
53;;; Copyright © 2025 Murilo <[email protected]>
54;;; Copyright © 2026 Justin Veilleux <[email protected]>
55;;; Copyright © 2026 Daniel Littlewood <[email protected]>
56;;; Copyright © 2026 bdunahu <[email protected]>
57;;; Copyright © 2026 Cayetano Santos <[email protected]>
58;;;
59;;; This file is part of GNU Guix.
60;;;
61;;; GNU Guix is free software; you can redistribute it and/or modify it
62;;; under the terms of the GNU General Public License as published by
63;;; the Free Software Foundation; either version 3 of the License, or (at
64;;; your option) any later version.
65;;;
66;;; GNU Guix is distributed in the hope that it will be useful, but
67;;; WITHOUT ANY WARRANTY; without even the implied warranty of
68;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
69;;; GNU General Public License for more details.
70;;;
71;;; You should have received a copy of the GNU General Public License
72;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
73
74(define-module (gnu packages cpp)
75 #:use-module ((guix licenses) #:prefix license:)
76 #:use-module (guix packages)
77 #:use-module (guix deprecation)
78 #:use-module (guix download)
79 #:use-module (guix utils)
80 #:use-module (guix git-download)
81 #:use-module (guix build-system cmake)
82 #:use-module (guix build-system copy)
83 #:use-module (guix build-system gnu)
84 #:use-module (guix build-system meson)
85 #:use-module (guix build-system pyproject)
86 #:use-module (guix build-system scons)
87 #:use-module (guix modules)
88 #:use-module (guix gexp)
89 #:use-module (gnu packages)
90 #:use-module (gnu packages algebra)
91 #:use-module (gnu packages assembly)
92 #:use-module (gnu packages audio)
93 #:use-module (gnu packages autotools)
94 #:use-module (gnu packages base)
95 #:use-module (gnu packages bdw-gc)
96 #:use-module (gnu packages benchmark)
97 #:use-module (gnu packages boost)
98 #:use-module (gnu packages build-tools)
99 #:use-module (gnu packages c)
100 #:use-module (gnu packages check)
101 #:use-module (gnu packages cmake)
102 #:use-module (gnu packages code)
103 #:use-module (gnu packages compression)
104 #:use-module (gnu packages crypto)
105 #:use-module (gnu packages curl)
106 #:use-module (gnu packages datastructures)
107 #:use-module (gnu packages disk)
108 #:use-module (gnu packages documentation)
109 #:use-module (gnu packages elf)
110 #:use-module (gnu packages fontutils)
111 #:use-module (gnu packages file)
112 #:use-module (gnu packages freedesktop)
113 #:use-module (gnu packages gcc)
114 #:use-module (gnu packages gl)
115 #:use-module (gnu packages glib)
116 #:use-module (gnu packages gnome)
117 #:use-module (gnu packages gtk)
118 #:use-module (gnu packages image)
119 #:use-module (gnu packages libevent)
120 #:use-module (gnu packages libffi)
121 #:use-module (gnu packages libunwind)
122 #:use-module (gnu packages linux)
123 #:use-module (gnu packages llvm)
124 #:use-module (gnu packages logging)
125 #:use-module (gnu packages maths)
126 #:use-module (gnu packages mpi)
127 #:use-module (gnu packages onc-rpc)
128 #:use-module (gnu packages perl)
129 #:use-module (gnu packages python)
130 #:use-module (gnu packages python-build)
131 #:use-module (gnu packages python-check)
132 #:use-module (gnu packages python-xyz)
133 #:use-module (gnu packages pkg-config)
134 #:use-module (gnu packages popt)
135 #:use-module (gnu packages pretty-print)
136 #:use-module (gnu packages pulseaudio)
137 #:use-module (gnu packages samba)
138 #:use-module (gnu packages sdl)
139 #:use-module (gnu packages tls)
140 #:use-module (gnu packages tex)
141 #:use-module (gnu packages texinfo)
142 #:use-module (gnu packages web)
143 #:use-module (gnu packages webkit)
144 #:use-module (gnu packages xdisorg)
145 #:use-module (gnu packages xml)
146 #:use-module (gnu packages xorg)
147 ;; Using autoload to avoid a cycle.
148 ;; Note that (gnu packages serialization) has #:use-module (gnu packages cpp)
149 #:autoload (gnu packages serialization) (cereal jsoncpp)
150 #:use-module (ice-9 match))
151
152(define-public argagg
153 (package
154 (name "argagg")
155 (version "0.4.7")
156 (source (origin
157 (method git-fetch)
158 (uri (git-reference
159 (url "https://github.com/vietjtnguyen/argagg")
160 (commit version)))
161 (file-name (git-file-name name version))
162 (sha256
163 (base32
164 "1pr0xqcc3wpwh02fwll3yf67rbxj39wbr2rqdd6bvjalmahg6hqv"))))
165 (build-system cmake-build-system)
166 (outputs '("out" "doc"))
167 (arguments
168 (list
169 #:configure-flags #~(list
170 (format #f "-DCMAKE_CXX_FLAGS=~a"
171 (string-join
172 (list "-Wno-error=array-bounds="
173 "-Wno-error=sign-conversion"))))
174 #:phases #~(modify-phases %standard-phases
175 (add-after 'install 'move-doc
176 (lambda* (#:key outputs #:allow-other-keys)
177 (let ((name #$(package-name argagg))
178 (doc (assoc-ref outputs "doc")))
179 (mkdir-p (string-append doc "/share/doc"))
180 (rename-file
181 (string-append #$output "/share/doc/" name)
182 (string-append doc "/share/doc/" name))))))))
183 (native-inputs (list doxygen))
184 (home-page "https://github.com/vietjtnguyen/argagg")
185 (synopsis "C++11 command line argument parser")
186 (description
187 "ArgAgg is yet another C++ command line argument/option
188parser. It was written as a simple and idiomatic alternative to other
189frameworks like getopt, Boost program options, TCLAP, and others. The goal is
190to achieve the majority of argument parsing needs in a simple manner with an
191easy to use API.")
192 (license license:expat)))
193
194(define-public argpp
195 ;; No tagged releases; this is the master tip.
196 (let ((commit "b52420a843327361713b6242e47afaa6b6ab2a89")
197 (revision "1"))
198 (package
199 (name "argpp")
200 (version (git-version "0.0.0" revision commit))
201 (source
202 (origin
203 (method git-fetch)
204 (uri (git-reference
205 (url "https://github.com/Grumbel/argpp")
206 (commit commit)))
207 (file-name (git-file-name name version))
208 (sha256
209 (base32 "07kmw7qz8l7qz572axpag7db4s97fl1mprblsrw238wdmvh9lvwc"))))
210 (build-system cmake-build-system)
211 (arguments
212 (list
213 #:configure-flags
214 #~(list "-DBUILD_TESTS=ON")))
215 (native-inputs
216 (list tinycmmc))
217 (home-page "https://github.com/Grumbel/argpp")
218 (synopsis "Argument parser for C++")
219 (description "This package provides a simple argument parser for C++.")
220 (license license:gpl3+))))
221
222(define-public asmjit
223 (let ((commit "cfc9f813cc6ccda63cad872edb32b38e0662bedb")
224 (revision "2"))
225 (package
226 (name "asmjit")
227 (version (git-version "0.0.0" revision commit))
228 (source
229 (origin
230 (method git-fetch)
231 (uri
232 (git-reference
233 (url "https://github.com/asmjit/asmjit")
234 (commit commit)))
235 (file-name (git-file-name name version))
236 (sha256
237 (base32 "0lxkfg0b2bc2la0cvs5658a26mb00zlir4n0jkzzlg97l0jrbwpv"))))
238 (build-system cmake-build-system)
239 (arguments
240 (list #:configure-flags #~(list "-DASMJIT_TEST=TRUE")))
241 (home-page "https://asmjit.com/")
242 (synopsis "Machine code generation for C++")
243 (description "AsmJit is a lightweight library for machine code
244generation written in C++ language. It can generate machine code for X86 and
245X86_64 architectures with the support for the whole instruction set from
246legacy MMX to the newest AVX-512 and AMX. It has a type-safe API that allows
247C++ compiler to do semantic checks at compile-time even before the assembled
248code is generated or executed. It also provides an optional register
249allocator that makes it easy to generate complex code without a significant
250development effort.")
251 (license license:zlib))))
252
253(define-public asyncplusplus
254 (package
255 (name "asyncplusplus")
256 (version "1.2")
257 (source (origin
258 (method git-fetch)
259 (uri (git-reference
260 (url "https://github.com/Amanieu/asyncplusplus")
261 (commit (string-append "v" version))))
262 (file-name (git-file-name name version))
263 (sha256
264 (base32
265 "0iswbh7y46kn412c52af0n8bc4fplm3y94yh10n2lchispzar72j"))
266 (modules '((guix build utils)))
267 (snippet
268 ;; Fix install location of cmake files.
269 '(substitute* "CMakeLists.txt"
270 (("DESTINATION cmake")
271 "DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake")))))
272 (build-system cmake-build-system)
273 (arguments
274 (list #:tests? #f)) ;no tests
275 (home-page "https://github.com/Amanieu/asyncplusplus")
276 (synopsis "Concurrency framework for C++11")
277 (description "Async++ is a concurrency framework for C++11.")
278 (license license:expat)))
279
280(define-public biblesync
281 (package
282 (name "biblesync")
283 (version "2.1.0")
284 (source (origin
285 (method git-fetch)
286 (uri
287 (git-reference
288 (url "https://github.com/karlkleinpaste/biblesync")
289 (commit version)))
290 (file-name (git-file-name name version))
291 (sha256
292 (base32
293 "0prmd12jq2cjdhsph5v89y38j7hhd51dr3r1hivgkhczr3m5hf4s"))))
294 (build-system cmake-build-system)
295 (arguments
296 (list
297 #:tests? #f ;FIXME: Not sure how to run tests, if any
298 #:configure-flags
299 #~(list (string-append "-DBUILD_SHARED_LIBS=TRUE"))))
300 (inputs (list `(,util-linux "lib")))
301 (synopsis "C++ library implementing the BibleSync protocol")
302 (description
303 "BibleSync is a multicast protocol to support Bible software shared
304co-navigation. The premise is that there is a local network over which to
305multicast Bible navigation, and someone, possibly several someones, will
306transmit, and others will receive. The library implementing the protocol is
307a single C++ class providing a complete yet minimal public interface to
308support mode setting, setup for packet reception, transmit on local
309navigation, and handling of incoming packets.")
310 (home-page "https://github.com/karlkleinpaste/biblesync")
311 (license license:public-domain)))
312
313(define-public castxml
314(package
315 (name "castxml")
316 (version "0.7.0")
317 (source (origin
318 (method git-fetch)
319 (uri
320 (git-reference
321 (url "https://github.com/CastXML/CastXML")
322 (commit (string-append "v" version))))
323 (file-name (git-file-name name version))
324 (sha256
325 (base32 "03l9nyd871c5gk5cdp8fbgyszps5989rhw12wap8dgmr6s6jv3rj"))))
326 (build-system cmake-build-system)
327 (arguments
328 (list
329 #:configure-flags
330 #~(list
331 (string-append "-DCLANG_RESOURCE_DIR="
332 #$(this-package-native-input "clang") "/lib/clang/"
333 #$(version-major
334 (package-version (this-package-native-input "clang")))))))
335 (inputs (list libffi))
336 (native-inputs (list clang-21 llvm-21))
337 (home-page "https://github.com/CastXML/CastXML")
338 (synopsis "C-family abstract syntax tree XML output")
339 (description "CastXML is a C-family abstract syntax tree XML output tool.
340This project is maintained by Kitware in support of ITK, the Insight
341Segmentation and Registration Toolkit.")
342 (license license:asl2.0)))
343
344(define-public collada-dom
345 (package
346 (name "collada-dom")
347 (version "2.5.0")
348 (source
349 (origin
350 (method git-fetch)
351 (uri (git-reference
352 (url "https://github.com/rdiankov/collada-dom.git")
353 (commit (string-append "v" version))))
354 (file-name (git-file-name name version))
355 (sha256
356 (base32 "1npz3yynv02g7w70c39zqn5w0g4sb438bmkkw0x7gj8cknjnwv9z"))
357 (patches (search-patches "collada-dom-boost.patch"))))
358 (build-system cmake-build-system)
359 (arguments (list #:tests? #f)) ; No tests present
360 (native-inputs (list pkg-config))
361 (inputs (list boost libxml2 minizip zlib))
362 (home-page "https://github.com/rdiankov/collada-dom")
363 (synopsis "COLLADA DOM C++ library")
364 (description "COLLADA-DOM is a C++ library for loading
365and saving COLLADA documents that can contain 2D, 3D, physics
366and other types of content.")
367 (license license:expat)))
368
369(define-public cpp-utilities
370 (package
371 (name "cpp-utilities")
372 (version "5.27.3")
373 (source
374 (origin
375 (method git-fetch)
376 (uri (git-reference
377 (url "https://github.com/Martchus/cpp-utilities")
378 (commit (string-append "v" version))))
379 (file-name (git-file-name name version))
380 (sha256
381 (base32
382 "1nm6d87j11jc5617qk58a81ajxgrncr7xsf4dkyscrygi2n3dbgz"))))
383 (build-system cmake-build-system)
384 (arguments
385 (list #:tests? #f))
386 (home-page "https://github.com/Martchus/cpp-utilities/")
387 (synopsis "Useful C++ classes and routines")
388 (description
389 "This package provides useful C++ classes and routines such as argument
390parser, IO and conversion utilities.")
391 (license license:gpl2+)))
392
393(define-public cpptrace
394 (package
395 (name "cpptrace")
396 (version "1.0.4")
397 (source
398 (origin
399 (method git-fetch)
400 (uri (git-reference
401 (url "https://github.com/jeremy-rifkin/cpptrace")
402 (commit (string-append "v" version))))
403 (file-name (git-file-name name version))
404 (sha256
405 (base32 "11lnfjgch6849p9ajk2j6pi0xfwnn5a9d0g1jnq34s9m8l80jq1a"))))
406 (build-system cmake-build-system)
407 (arguments
408 (list
409 #:configure-flags
410 #~(list
411 "-DCPPTRACE_USE_EXTERNAL_ZSTD=ON"
412 "-DCPPTRACE_USE_EXTERNAL_LIBDWARF=ON"
413 "-DCPPTRACE_FIND_LIBDWARF_WITH_PKGCONFIG=ON"
414 "-DBUILD_SHARED_LIBS=ON"
415 "-DCPPTRACE_USE_EXTERNAL_GTEST=ON")
416 #:phases
417 #~(modify-phases %standard-phases
418 ;; Fails with "zlib and zstd are missing, cannot decompress section".
419 (add-after 'unpack 'disable-failing-tests
420 (lambda _
421 (substitute* "test/CMakeLists.txt"
422 ((".*stacktrace.*") "")
423 ((".*object_trace.*") "")
424 ((".*from_current.*") "")
425 ((".*try_catch.*") "")
426 ((".*traced_exception.*") "")
427 ((".*rethrow.*") "")))))))
428 (native-inputs
429 (list googletest pkg-config))
430 (inputs
431 (list libdwarf zlib zstd))
432 (home-page "https://github.com/jeremy-rifkin/cpptrace")
433 (synopsis "Stacktrace library for C++11 and newer")
434 (description "@code{cpptrace} is a simple and portable C++ stacktrace
435library supporting C++11 and greater. In addition to providing access to
436stack traces, @code{cpptrace} also provides a mechanism for getting
437stacktraces from thrown exceptions for debugging and triaging.")
438 (license license:expat)))
439
440(define-public rang
441 (package
442 (name "rang")
443 (version "3.2")
444 (source
445 (origin
446 (method git-fetch)
447 (uri (git-reference
448 (url "https://github.com/agauniyal/rang")
449 (commit (string-append "v" version))))
450 (file-name (git-file-name name version))
451 (sha256
452 (base32 "0x2fp7zjjivgxblvx1j0qphn4ln6jq42x7xr757fywm3k03y7bil"))))
453 (build-system cmake-build-system)
454 (arguments (list #:tests? #f)) ; no tests
455 (home-page "https://agauniyal.github.io/rang/")
456 (synopsis "Header only terminal C++ library")
457 (description
458 "Rang is a minimal, header only C++ library for terminal goodies.")
459 (license license:asl2.0)))
460
461(define-public range-v3
462 (package
463 (name "range-v3")
464 (version "0.12.0")
465 (source
466 (origin
467 (method git-fetch)
468 (uri (git-reference
469 (url "https://github.com/ericniebler/range-v3.git")
470 (commit version)))
471 (file-name (git-file-name name version))
472 (sha256
473 (base32 "0r85s5rmp5ixmik2y5y4w760pa38j1sg9hbr1fss2flibzvrf53d"))))
474 (build-system cmake-build-system)
475 (arguments
476 (list
477 #:configure-flags #~(list "-DRANGES_NATIVE=OFF")))
478 (native-inputs (list doxygen perl))
479 (inputs (list boost))
480 (synopsis "Range library for C++14/17/20")
481 (description
482 "Range-v3 is an extension of the Standard Template Library that
483makes its iterators and algorithms more powerful by making them composable.
484Unlike other range-like solutions which, seek to do away with iterators, in
485range-v3 ranges are an abstraction layer on top of iterators.")
486 (home-page "https://github.com/ericniebler/range-v3/")
487 (license (list
488 ;; Elements of Programming
489 (license:x11-style "file:///LICENSE.txt")
490 ;; SGI STL
491 license:sgifreeb2.0
492 ;; LibC++ (dual-licensed)
493 license:expat
494 license:ncsa
495 ;; Others
496 license:boost1.0))))
497
498(define-public robin-hood-hashing
499 (package
500 (name "robin-hood-hashing")
501 (version "3.11.5")
502 (source (origin
503 (method git-fetch)
504 (uri (git-reference
505 (url "https://github.com/martinus/robin-hood-hashing")
506 (commit version)))
507 (modules '((guix build utils)))
508 (snippet #~(delete-file-recursively "src/test/thirdparty"))
509 (file-name (git-file-name name version))
510 (sha256
511 (base32
512 "1qx6i09sp8c3l89mhyaql144nzh2h26ky9ms3n5l85qplx1vv2r7"))))
513 (build-system cmake-build-system)
514 (arguments
515 (list #:tests? #f ;; Needs bundled libraries for tests.
516 ;; By default this option is set to ON and removes the ability to
517 ;; install the library.
518 #:configure-flags
519 #~(list "-DRH_STANDALONE_PROJECT=OFF")))
520 (home-page "https://github.com/martinus/robin-hood-hashing")
521 (synopsis "Unordered set and map data structures library")
522 (description "This library provides a header-only unordered set and map
523data structures for C++.")
524 (license license:expat)))
525
526(define-public c++-gsl
527 (package
528 (name "c++-gsl")
529 (version "4.2.0")
530 (source
531 (origin
532 (method git-fetch)
533 (uri
534 (git-reference
535 (url "https://github.com/microsoft/GSL.git")
536 (commit
537 (string-append "v" version))))
538 (file-name
539 (git-file-name name version))
540 (sha256
541 (base32 "08w3ppd43wx9vq641ljw5izjd7p5w7drynw13ll9shwy41ydif9n"))))
542 (build-system cmake-build-system)
543 (native-inputs
544 (list googletest-1.13 pkg-config))
545 (synopsis "Guidelines Support Library")
546 (description "c++-gsl contains functions and types that are suggested for
547use by the C++ Core Guidelines maintained by the Standard C++ Foundation.")
548 (home-page "https://github.com/microsoft/GSL/")
549 (license license:expat)))
550
551(define-public c2ffi
552 (package
553 (name "c2ffi")
554 ;; As per the c2ffi README: the first three elements are encoding the
555 ;; required Clang/LLVM version, and the last one is the c2ffi revision.
556 (version "18.1.0.0")
557 (source
558 (origin
559 (method git-fetch)
560 (uri (git-reference
561 (url "https://github.com/rpav/c2ffi")
562 (commit (string-append "v" version))))
563 (file-name (git-file-name name version))
564 (sha256
565 (base32 "03hw650wjrc4jb4ra8bwc4rnprr0fpnf3wlxzacfjysvl25jb0j6"))
566 (modules '((guix build utils)))
567 (snippet
568 '(substitute* "CMakeLists.txt"
569 ;; Guix seems to be packaging LLVM libs separately thus -lLLVM
570 ;; won't work. Instead every library used must be listed.
571 (("c2ffi PUBLIC clang-cpp LLVM")
572 "c2ffi PUBLIC clang-cpp LLVMCore LLVMSupport LLVMMCParser \
573LLVMOption LLVMBitReader LLVMProfileData")))))
574 (build-system cmake-build-system)
575 (arguments
576 '(;; If LLVM was built without RTTI, we need to also be built without
577 ;; it. See: https://stackoverflow.com/q/11904519
578 #:configure-flags '("-DCMAKE_CXX_FLAGS=-fno-rtti")
579 #:phases
580 (modify-phases %standard-phases
581 (replace 'check
582 (lambda* (#:key tests? #:allow-other-keys)
583 (when tests?
584 (invoke "./bin/c2ffi" "--help")))))))
585 (native-inputs
586 (list clang-18)) ; CMakeLists.txt invokes `clang -print-resource-dir`
587 (inputs
588 (list clang-18)) ; Compiled with gcc, but links against libclang-cpp.so
589 (home-page "https://github.com/rpav/c2ffi")
590 (synopsis "Clang-based FFI wrapper generator")
591 (description
592 "@code{c2ffi} is a tool for extracting definitions from C, C++, and
593Objective C headers for use with foreign function call interfaces. It uses
594the @code{Clang/LLVM} infrastructure to extract the data, and emits it in
595various formats, including @code{json}.")
596 (license license:gpl2+)))
597
598(define-public edlib
599 (package
600 (name "edlib")
601 (version "1.2.7")
602 (source
603 (origin
604 (method git-fetch)
605 (uri (git-reference
606 (url "https://github.com/Martinsos/edlib")
607 (commit (string-append "v" version))))
608 (file-name (git-file-name name version))
609 (sha256
610 (base32 "0ibpxs3r8ii2s3g7kdbyr8brg6ha5l0fb21idw8531gx9v2qzh4v"))))
611 (build-system cmake-build-system)
612 (arguments
613 '(#:configure-flags '("-DBUILD_SHARED_LIBS=ON")))
614 (home-page "https://github.com/Martinsos/edlib")
615 (synopsis "Lightweight library for sequence alignment")
616 (description "This package provides a lightweight library for calculating
617the edit distance between two sequences and finding an optimal alignment path
618for transforming one sequence into another.")
619 (license license:expat)))
620
621(define-public expected-lite
622 (package
623 (name "expected-lite")
624 (version "0.9.0")
625 (source (origin
626 (method git-fetch)
627 (uri (git-reference
628 (url "https://github.com/martinmoene/expected-lite")
629 (commit (string-append "v" version))))
630 (file-name (git-file-name name version))
631 (sha256
632 (base32
633 "0j3vwil4qippjmwvyah7c4cjw08ady0vkdkjfnyrlkyhl18z259d"))))
634 (build-system cmake-build-system)
635 (home-page "https://github.com/martinmoene/expected-lite")
636 (synopsis "Expected objects in C++11 and later")
637 (description "@i{expected lite} is a single-file header-only library for
638objects that either represent a valid value or an error that can be passed by
639value. It is intended for use with C++11 and later. The library is based on
640the @code{std::expected} proposal (@url{http://wg21.link/p0323}).")
641 (license license:boost1.0)))
642
643(define-public libzen
644 (package
645 (name "libzen")
646 (version "0.4.41")
647 (source (origin
648 (method url-fetch)
649 ;; Warning: This source has proved unreliable 1 time at least.
650 ;; Consider an alternate source or report upstream if this
651 ;; happens again.
652 (uri (string-append "https://mediaarea.net/download/source/"
653 "libzen/" version "/"
654 "libzen_" version ".tar.bz2"))
655 (sha256
656 (base32
657 "0b8yj3rmmcv2fn3b5bnchfkk82fy4w5446c70sxccvfa7myps8zb"))))
658 (native-inputs
659 (list autoconf automake libtool))
660 (build-system gnu-build-system)
661 (arguments
662 '(#:phases
663 ;; The build scripts are not at the root of the archive.
664 (modify-phases %standard-phases
665 (add-after 'unpack 'pre-configure
666 (lambda _
667 (chdir "Project/GNU/Library"))))))
668 (home-page "https://github.com/MediaArea/ZenLib")
669 (synopsis "C++ utility library")
670 (description "ZenLib is a C++ utility library. It includes classes for handling
671strings, configuration, bit streams, threading, translation, and cross-platform
672operating system functions.")
673 (license license:zlib)))
674
675(define-public lunasvg
676 (package
677 (name "lunasvg")
678 (version "3.5.0")
679 (source
680 (origin
681 (method git-fetch)
682 (uri (git-reference
683 (url "https://github.com/sammycage/lunasvg")
684 (commit (string-append "v" version))))
685 (file-name (git-file-name name version))
686 (sha256
687 (base32 "1scmm1q35j3r87117p401fg3c1bx2nkiyvc2f3svvr2m2y9ihabr"))))
688 (build-system cmake-build-system)
689 (inputs (list plutovg))
690 (arguments
691 '(#:configure-flags '("-DBUILD_SHARED_LIBS=ON -DUSE_SYSTEM_PLUTOVG=ON")
692 #:tests? #f)) ;No tests.
693 (home-page "https://github.com/sammycage/lunasvg")
694 (synopsis "SVG rendering and manipulation library in C++")
695 (description
696 "LunaSVG is an SVG rendering library in C++, designed to be
697lightweight and portable, offering efficient rendering and manipulation of
698Scalable Vector Graphics (SVG) files.")
699 (license license:expat)))
700
701(define-public rttr
702 (package
703 (name "rttr")
704 (version "0.9.6")
705 (source
706 (origin
707 (method git-fetch)
708 (uri (git-reference
709 (url "https://github.com/rttrorg/rttr/")
710 (commit (string-append "v" version))))
711 (sha256
712 (base32 "1yxad8sj40wi75hny8w6imrsx8wjasjmsipnlq559n4b6kl84ijp"))
713 (file-name (git-file-name name version))))
714 (build-system cmake-build-system)
715 (arguments
716 (list
717 ;; No check target. Setting test-target to "unit_test" runs it twice.
718 #:tests? #f
719 #:configure-flags
720 #~(list "-DBUILD_DOCUMENTATION=OFF"
721 "-DBUILD_EXAMPLES=OFF"
722 "-DBUILD_UNIT_TESTS=OFF")
723 #:phases
724 #~(modify-phases %standard-phases
725 ;; library_test fails in chroot.
726 (add-after 'unpack 'skip-library-test
727 (lambda _
728 (substitute* "src/unit_tests/unit_tests.cmake"
729 (("misc/library_test.cpp") "")))))))
730 (native-inputs (list pkg-config))
731 (home-page "https://github.com/rttrorg/rttr/")
732 (synopsis "C++ Reflection Library")
733 (description
734 "RTTR stands for Run Time Type Reflection. It describes the ability of a
735computer program to introspect and modify an object at runtime. It is also
736the name of the library itself, which is written in C++.")
737 (license license:expat)))
738
739(define-public plutovg
740 (package
741 (name "plutovg")
742 (version "1.3.1")
743 (source
744 (origin
745 (method git-fetch)
746 (uri (git-reference
747 (url "https://github.com/sammycage/plutovg")
748 (commit (string-append "v" version))))
749 (file-name (git-file-name name version))
750 (sha256
751 (base32 "1pkil2g9vvnhn7xycha5lwya0kp9h1ndg0lszgh8nkbilnavwig9"))))
752 (build-system cmake-build-system)
753 (arguments
754 '(#:configure-flags '("-DBUILD_SHARED_LIBS=ON")
755 #:tests? #f)) ;No tests.
756 (home-page "https://github.com/sammycage/plutovg")
757 (synopsis "Tiny 2D vector graphics library in C")
758 (description "PlutoVG is a standalone 2D vector graphics library in C.")
759 (license license:expat)))
760
761(define-public plutosvg
762 (package
763 (name "plutosvg")
764 (version "0.0.7")
765 (source
766 (origin
767 (method git-fetch)
768 (uri (git-reference
769 (url "https://github.com/sammycage/plutosvg")
770 (commit (string-append "v" version))))
771 (file-name (git-file-name name version))
772 (sha256
773 (base32 "0vj21y4sr98mb337sr2yrgzs8ipgrnhd23qk3c1gykdxwgiy94p0"))))
774 (build-system cmake-build-system)
775 (native-inputs (list plutovg))
776 (arguments
777 '(#:configure-flags '("-DBUILD_SHARED_LIBS=ON")
778 #:tests? #f)) ;No tests.
779 (home-page "https://github.com/sammycage/plutovg")
780 (synopsis "Tiny SVG rendering library in C")
781 (description
782 "PlutoSVG is a compact and efficient SVG rendering library written in C.
783It is specifically designed for parsing and rendering SVG documents embedded
784in OpenType fonts, providing an optimal balance between speed and minimal
785memory usage. It is also suitable for rendering scalable icons.")
786 (license license:expat)))
787
788(define-public pystring
789 (package
790 (name "pystring")
791 (version "1.1.4")
792 (source
793 (origin
794 (method git-fetch)
795 (uri (git-reference
796 (url "https://github.com/imageworks/pystring")
797 (commit (string-append "v" version))))
798 (sha256
799 (base32 "0h12x24skrlx4fv0k5vl8wnar8gi6bq091yp93awkwsbnm8qwkzd"))
800 (file-name (git-file-name name version))))
801 (build-system cmake-build-system)
802 (arguments
803 (list #:phases
804 #~(modify-phases %standard-phases
805 ;; The install phase doesn't install the header
806 (add-after 'install 'install-header
807 (lambda _
808 (mkdir-p (string-append #$output "/include"))
809 (copy-file
810 (string-append #$(package-source this-package)
811 "/pystring.h")
812 (string-append #$output
813 "/include/pystring.h")))))))
814 (native-inputs (list pkg-config))
815 (home-page "https://github.com/imageworks/pystring")
816 (synopsis "C++ functions matching the Python string methods")
817 (description
818 "Pystring is a collection of C++ functions which match the interface and
819behavior of Python's string class methods using std::string. Implemented in
820C++, it does not require or make use of a python interpreter. It provides
821convenience and familiarity for common string operations not included in the
822standard C++ library. It's also useful in environments where both C++ and
823Python are used.")
824 (license license:bsd-3)))
825
826(define-public dashel
827 (package
828 (name "dashel")
829 (version "1.3.3")
830 (source
831 (origin
832 (method git-fetch)
833 (uri (git-reference
834 (url "https://github.com/aseba-community/dashel")
835 (commit version)))
836 (sha256
837 (base32 "0anks2l2i2qp0wlzqck1qgpq15a3l6dg8lw2h8s4nsj7f61lffwy"))
838 (file-name (git-file-name name version))))
839 (build-system cmake-build-system)
840 (arguments '(#:tests? #f)) ; no tests
841 (native-inputs (list pkg-config))
842 (home-page "https://github.com/aseba-community/dashel")
843 (synopsis "Data stream helper encapsulation library")
844 (description
845 "Dashel is a data stream helper encapsulation C++ library. It provides a
846unified access to TCP/UDP sockets, serial ports, console, and files streams.
847It also allows a server application to wait for any activity on any
848combination of these streams.")
849 (license license:bsd-3)))
850
851(define-public debug-assert
852 (package
853 (name "debug-assert")
854 (version "1.3.4")
855 (source
856 (origin
857 (method git-fetch)
858 (uri (git-reference
859 (url "https://github.com/foonathan/debug_assert")
860 (commit (string-append "v" version))))
861 (file-name (git-file-name name version))
862 (sha256
863 (base32 "0z9wfh9h83rv6khm6s6bym40vgv2igy4yh665ygsdxwamil254b9"))))
864 (build-system cmake-build-system)
865 (arguments (list #:tests? #f)) ; no tests
866 (home-page "https://github.com/foonathan/debug_assert")
867 (synopsis "Assertion macro for C++")
868 (description
869 "debug_assert is a C++11 header-only library which provides the
870@code{DEBUG_ASSERT()} macro, which among other features can be selectively
871enabled in different parts of your code.")
872 (license license:zlib)))
873
874(define-public docopt-cpp
875 (package
876 (name "docopt-cpp")
877 (version "0.6.3")
878 (source
879 (origin
880 (method git-fetch)
881 (uri (git-reference
882 (url "https://github.com/docopt/docopt.cpp")
883 (commit (string-append "v" version))))
884 (file-name (git-file-name name version))
885 (sha256
886 (base32 "0cz3vv7g5snfbsqcf3q8bmd6kv5qp84gj3avwkn4vl00krw13bl7"))))
887 (build-system cmake-build-system)
888 (arguments (list #:tests? #f)) ; no tests
889 (home-page "http://docopt.org/")
890 (synopsis "Command-line interface description language for C++")
891 (description
892 "This library allows the user to define a command-line interface from a
893program's help message rather than specifying it programmatically with
894command-line parsers like @code{getopt} and @code{argparse}.")
895 (license (list license:expat license:boost1.0))))
896
897(define-public xbyak
898 (package
899 (name "xbyak")
900 (version "7.30")
901 (source (origin
902 (method git-fetch)
903 (uri (git-reference
904 (url "https://github.com/herumi/xbyak")
905 (commit (string-append "v" version))))
906 (file-name (git-file-name name version))
907 (sha256
908 (base32 "0rb0q5i3lj2jfrkmkxcgbczflw05p1x9fdpwrhv7gng7vp2byydw"))))
909 (build-system cmake-build-system)
910 (arguments
911 (list
912 ;; No tests are registered with CTest; the test/ directory contains
913 ;; shell scripts that are not integrated into the CMake build.
914 #:tests? #f))
915 (native-inputs
916 (list pkg-config))
917 (synopsis "JIT assembler for x86(IA-32)/x64(AMD64/x86-64) architecture")
918 (description "Xbyak is a C++ header-only JIT assembler for x86(IA-32),
919x64(AMD64/x86-64) architecture. It supports MASM/NASM-like syntax and
920advanced instruction sets including AVX-512, APX, and AVX10.2.")
921 (home-page "https://github.com/herumi/xbyak")
922 (license license:bsd-3)))
923
924(define-public xdgpp
925 (let ((commit "f01f810714443d0f10c333d4d1d9c0383be41375")
926 (revision "0"))
927 (package
928 (name "xdgpp")
929 (version (git-version "0.0.0" revision commit))
930 (source
931 (origin
932 (method git-fetch)
933 (uri (git-reference
934 (url "https://git.sr.ht/~danyspin97/xdgpp")
935 (commit commit)))
936 (file-name (git-file-name name version))
937 (sha256
938 (base32 "1w8da10whrhc7j82jf90814m3blabkl9s0kg8hv8h2fj5y3ji7hw"))))
939 (build-system gnu-build-system)
940 (native-inputs (list catch2-2))
941 (arguments
942 (list
943 #:test-target "test"
944 #:phases
945 #~(modify-phases %standard-phases
946 (delete 'configure)
947 (replace 'install
948 (lambda _
949 (install-file "xdg.hpp"
950 (string-append #$output "/include")))))))
951 (home-page "https://git.sr.ht/~danyspin97/xdgpp")
952 (synopsis "C++17 implementation of the XDG Base Directory Specification")
953 (description
954 "This package provides a header-only library to retrieve the file names
955of XDG base directories, such as XDG_CONFIG_HOME.")
956 (license license:expat))))
957
958(define-public xsimd
959 (package
960 (name "xsimd")
961 (version "13.2.0")
962 (source
963 (origin
964 (method git-fetch)
965 (uri (git-reference
966 (url "https://github.com/xtensor-stack/xsimd")
967 (commit version)))
968 (sha256
969 (base32 "1w3hffv5yr1xdl3f46dnnza3kixfgj13450181qf7spq2cknv2rg"))
970 (file-name (git-file-name name version))))
971 (build-system cmake-build-system)
972 (arguments
973 (list
974 #:configure-flags #~(list "-DBUILD_TESTS=ON")))
975 (native-inputs
976 (list doctest
977 googletest))
978 (home-page "https://github.com/xtensor-stack/xsimd")
979 (synopsis "C++ wrappers for SIMD intrinsics and math implementations")
980 (description
981 "xsimd provides a unified means for using @acronym{SIMD, single
982instruction multiple data} features for library authors. Namely, it enables
983manipulation of batches of numbers with the same arithmetic operators as for
984single values. It also provides accelerated implementation of common
985mathematical functions operating on batches.")
986 (license license:bsd-3)))
987
988(define-public icecream-cpp
989 (package
990 (name "icecream-cpp")
991 (version "1.0.0")
992 (source
993 (origin
994 (method git-fetch)
995 (uri (git-reference
996 (url "https://github.com/renatoGarcia/icecream-cpp")
997 (commit (string-append "v" version))))
998 (file-name (git-file-name name version))
999 (sha256
1000 (base32 "1pl3qibxa9m7qkfpxszablwyhlnn9qz0cgms8kr2wwvxdzipr1p0"))))
1001 (build-system cmake-build-system)
1002 (arguments
1003 (list
1004 #:configure-flags #~(list "-DCMAKE_CXX_STANDARD=17")))
1005 (native-inputs (list boost catch2-2))
1006 (home-page "https://github.com/renatoGarcia/icecream-cpp")
1007 (synopsis "C++ library for @code{printf} debugging")
1008 (description
1009 "IceCream-Cpp is a C++ library for @code{printf} debugging. It is
1010inspired by the @url{https://github.com/gruns/icecream, Python library} of the
1011same name.")
1012 (license license:expat)))
1013
1014(define-public tinyformat
1015 (package
1016 (name "tinyformat")
1017 (version "2.3.0")
1018 (source (origin
1019 (method git-fetch)
1020 (uri (git-reference
1021 (url "https://github.com/c42f/tinyformat")
1022 (commit (string-append "v" version))))
1023 (file-name (git-file-name name version))
1024 (sha256
1025 (base32
1026 "0j8bxrg7i4rn98iqpfh03krshgcbwh8hq8nm0p3sfdqpira3vi3y"))))
1027 (build-system cmake-build-system)
1028 (arguments
1029 (list #:phases
1030 #~(modify-phases %standard-phases
1031 (replace 'install
1032 (lambda _
1033 (install-file "../source/tinyformat.h"
1034 (string-append #$output "/include")))))))
1035 (home-page "https://github.com/c42f/tinyformat")
1036 (synopsis "Minimal, type-safe printf replacement library for C++")
1037 (description "@code{tinyformat} is a type-safe @code{printf} replacement
1038library in a single C++ header file. Design goals include:
1039
1040@itemize
1041@item Type-safety and extensibility for user defined types
1042@item C99 @code{printf} compatibility, to the extent possible using
1043@code{std::ostream}
1044@item POSIX extension for positional arguments
1045@item Simplicity and minimalism; a single header file to include and
1046distribute with your projects
1047@item Augment rather than replace the standard stream formatting mechanism
1048@item C++98 support, with optional C++11 niceties
1049@end itemize")
1050 (license license:boost1.0)))
1051
1052(define-public span
1053 (let ((commit "836dc6a0efd9849cb194e88e4aa2387436bb079b")
1054 (revision "0"))
1055 (package
1056 (name "span")
1057 (version (git-version "0.1.0" revision commit))
1058 (source (origin
1059 (method git-fetch)
1060 (uri (git-reference
1061 (url "https://github.com/tcbrindle/span")
1062 (commit commit)))
1063 (file-name (git-file-name name version))
1064 (sha256
1065 (base32
1066 "1v3x1mj4if8jrr7cmrcbhv8n8ygla0liqb0dic6g6ji7px2pr6jf"))
1067 (snippet
1068 #~(delete-file "test/catch.hpp"))))
1069 (build-system cmake-build-system)
1070 (arguments
1071 (list #:phases
1072 #~(modify-phases %standard-phases
1073 (add-after 'unpack 'patch-catch2
1074 (lambda _
1075 ;; Use catch2 from Guix.
1076 (substitute* (find-files "test" "\\.cpp$")
1077 (("#include \"catch.hpp\"")
1078 "#include <catch2/catch.hpp>"))))
1079 (replace 'install
1080 (lambda _
1081 (install-file "../source/include/tcb/span.hpp"
1082 (string-append #$output "/include")))))))
1083 (native-inputs
1084 (list catch2-2))
1085 (home-page "https://github.com/tcbrindle/span")
1086 (synopsis "C++20's @code{std::span} shim for older compilers")
1087 (description "This package provides a single-header implementation of
1088C++20's @code{std::span}, conforming to the C++20 committee draft. It is
1089compatible with C++11, but will use newer language features if they are
1090available.")
1091 (license license:boost1.0))))
1092
1093(define-public google-highway
1094 (package
1095 (name "google-highway")
1096 (version "1.3.0")
1097 (source
1098 (origin
1099 (method git-fetch)
1100 (uri (git-reference
1101 (url "https://github.com/google/highway")
1102 (commit version)))
1103 (file-name (git-file-name name version))
1104 (sha256
1105 (base32 "1bl576f3zlygxfmjqs5rrk3sag411hlhx2210lpq461plvvs80zi"))))
1106 (build-system cmake-build-system)
1107 (arguments
1108 `(#:configure-flags (list "-DHWY_SYSTEM_GTEST=on"
1109 "-DBUILD_SHARED_LIBS=ON")
1110 ,@(if (string-prefix? "i686-linux" (or (%current-system)
1111 (%current-target-system)))
1112 '(#:phases
1113 (modify-phases %standard-phases
1114 (add-after 'unpack 'really-skip-precision-tests
1115 (lambda _
1116 (substitute* "hwy/contrib/math/math_test.cc"
1117 (("Skipping math_test due to GCC issue with excess precision.*" m)
1118 (string-append m "return;\n")))))))
1119 '())))
1120 (native-inputs
1121 (list googletest))
1122 (home-page "https://github.com/google/highway")
1123 (synopsis "SIMD library with runtime dispatch")
1124 (description "Highway is a performance-portable, length-agnostic C++
1125library for SIMD (Single Instruction, Multiple Data) with runtime dispatch.")
1126 (license license:asl2.0)))
1127
1128(define-public hyprgraphics
1129 (package
1130 (name "hyprgraphics")
1131 (version "0.5.1")
1132 (source (origin
1133 (method git-fetch)
1134 (uri (git-reference
1135 (url "https://github.com/hyprwm/hyprgraphics")
1136 (commit (string-append "v" version))))
1137 (file-name (git-file-name name version))
1138 (modules '((guix build utils)))
1139 (snippet #~(substitute* "CMakeLists.txt" (("libjxl_cms") "")))
1140 (sha256
1141 (base32
1142 "06nqbz3vw55vd2a57ayigyfqb9g54bcb094rp3gz1w7ijrnyxh73"))))
1143 (build-system cmake-build-system)
1144 (native-inputs (list gcc-15 pkg-config))
1145 (inputs (list cairo
1146 file ;; Provides libmagic.
1147 hyprutils
1148 libdrm
1149 libpng
1150 libjpeg-turbo
1151 libjxl
1152 ;; Note: The current librsvg-2.40 for non-Rust architectures
1153 ;; is too old.
1154 (librsvg-for-system)
1155 libwebp
1156 mesa
1157 pango
1158 pixman
1159 spng))
1160 (home-page "https://wiki.hypr.land/Hypr-Ecosystem/hyprgraphics/")
1161 (synopsis "Hyprland graphics/resource utilities")
1162 (description
1163 "Hyprgraphics is a small C++ library with graphics/resource related
1164utilities used across the hypr* ecosystem.")
1165 (license license:bsd-3)))
1166
1167(define-public hyprlang
1168 (package
1169 (name "hyprlang")
1170 (version "0.6.8")
1171 (source (origin
1172 (method git-fetch)
1173 (uri (git-reference
1174 (url "https://github.com/hyprwm/hyprlang")
1175 (commit (string-append "v" version))))
1176 (file-name (git-file-name name version))
1177 (sha256
1178 (base32
1179 "06wiizy73f0x6zj1ar878gm1w9zam1gmgjw0ybixj3qag0gxqv34"))))
1180 (build-system cmake-build-system)
1181 (native-inputs (list gcc-15 pkg-config))
1182 (inputs (list hyprutils))
1183 (home-page "https://wiki.hypr.land/Hypr-Ecosystem/hyprlang/")
1184 (synopsis "Official implementation library for hypr config language")
1185 (description
1186 "This package provides the official implementation for hypr configuration
1187language used in Hyprland.")
1188 (license license:lgpl3)))
1189
1190(define-public hyprutils
1191 (package
1192 (name "hyprutils")
1193 (version "0.13.1")
1194 (source (origin
1195 (method git-fetch)
1196 (uri (git-reference
1197 (url "https://github.com/hyprwm/hyprutils")
1198 (commit (string-append "v" version))))
1199 (file-name (git-file-name name version))
1200 (sha256
1201 (base32
1202 "1qa5plbfhqdxlxs4ar9fl81642ckfcb5y7yk9zbwfn3h0si2q1wc"))))
1203 (build-system cmake-build-system)
1204 (arguments (list #:tests? #f)) ; No tests in Release build type
1205 (native-inputs (list gcc-15 pkg-config))
1206 (inputs (list pixman))
1207 (home-page "https://github.com/hyprwm/hyprutils")
1208 (synopsis "C++ library for utilities used across Hyprland ecosystem")
1209 (description
1210 "This package provides a C++ library for utilities used across Hyprland
1211ecosystem.")
1212 (license license:bsd-3)))
1213
1214(define-public hyprtoolkit
1215 (package
1216 (name "hyprtoolkit")
1217 (version "0.5.4")
1218 (source (origin
1219 (method git-fetch)
1220 (uri (git-reference
1221 (url "https://github.com/hyprwm/hyprtoolkit")
1222 (commit (string-append "v" version))))
1223 (file-name (git-file-name name version))
1224 (sha256
1225 (base32
1226 "1gihwav0k1jb4f7gq1d15njwr80ylbxa62hh25kyzqfxhf7q3540"))))
1227 (build-system cmake-build-system)
1228 (arguments (list #:tests? #f)) ; No tests in Release build type
1229 (native-inputs (list pkg-config hyprwayland-scanner gcc-15))
1230 (inputs
1231 (list aquamarine
1232 cairo
1233 googletest
1234 hyprgraphics
1235 hyprlang
1236 hyprutils
1237 iniparser
1238 libglvnd
1239 libxkbcommon
1240 mesa
1241 pango
1242 pixman
1243 wayland
1244 wayland-protocols))
1245 (home-page "https://github.com/hyprwm/hyprtoolkit")
1246 (synopsis "Modern C++ Wayland-native GUI toolkit")
1247 (description "This package provides a C++ toolkit for making wayland GUI
1248apps.")
1249 (license license:bsd-3)))
1250
1251(define-public hyprwire
1252 (package
1253 (name "hyprwire")
1254 (version "0.3.1")
1255 (source (origin
1256 (method git-fetch)
1257 (uri (git-reference
1258 (url "https://github.com/hyprwm/hyprwire")
1259 (commit (string-append "v" version))))
1260 (file-name (git-file-name name version))
1261 (sha256
1262 (base32
1263 "1y1aazvv081mn7cfipbs4pn5fjs6gcs5ygqr8hbl9jy3w8lxm8q0"))))
1264 (build-system cmake-build-system)
1265 (arguments (list #:tests? #f)) ; There are no tests
1266 (native-inputs (list pkg-config gcc-15))
1267 (inputs
1268 (list hyprutils
1269 libffi
1270 pugixml))
1271 (home-page "https://github.com/hyprwm/hyprwire")
1272 (synopsis "Fast and consistent wire protocol for IPC")
1273 (description "This package provides a fast and consistent wire protocol,
1274and its implementation. This is essentially a method for processes to talk to
1275each other.")
1276 (license license:bsd-3)))
1277
1278(define-public hyprland-guiutils
1279 (package
1280 (name "hyprland-guiutils")
1281 (version "0.2.1")
1282 (source (origin
1283 (method git-fetch)
1284 (uri (git-reference
1285 (url "https://github.com/hyprwm/hyprland-guiutils")
1286 (commit (string-append "v" version))))
1287 (file-name (git-file-name name version))
1288 (sha256
1289 (base32
1290 "0x5757ch8rvgbph66fkf5cg39r37isvfy450429746xmajsy0qa7"))))
1291 (build-system cmake-build-system)
1292 (arguments (list #:tests? #f)) ; There are no tests
1293 (native-inputs (list pkg-config gcc-15))
1294 (inputs
1295 (list aquamarine
1296 cairo
1297 hyprgraphics
1298 hyprlang
1299 hyprtoolkit
1300 hyprutils
1301 mesa
1302 libxkbcommon
1303 pixman))
1304 (home-page "https://github.com/hyprwm/hyprland-guiutils")
1305 (synopsis "Hyprland GUI utilities")
1306 (description "This package provides GUI utilities for hyprland. It is the
1307successor of hyprland-qtutils.")
1308 (license license:bsd-3)))
1309
1310(define-public xsimd-benchmark
1311 (package
1312 (inherit xsimd)
1313 (name "xsimd-benchmark")
1314 (arguments
1315 `(#:configure-flags (list "-DBUILD_BENCHMARK=ON" "-DBUILD_EXAMPLES=ON")
1316 #:tests? #f
1317 #:phases (modify-phases %standard-phases
1318 (add-after 'unpack 'remove-march=native
1319 (lambda _
1320 (substitute* "benchmark/CMakeLists.txt"
1321 (("-march=native") ""))))
1322 (replace 'install
1323 (lambda* (#:key outputs #:allow-other-keys)
1324 ;; Install nothing but the executables.
1325 (let ((out (assoc-ref outputs "out")))
1326 (install-file "benchmark/benchmark_xsimd"
1327 (string-append out "/bin"))
1328 (install-file "examples/mandelbrot"
1329 (string-append out "/bin"))))))))
1330 (synopsis "Benchmark of the xsimd library")
1331
1332 ;; Mark as tunable to take advantage of SIMD code in xsimd/xtensor.
1333 (properties '((tunable? . #t)))))
1334
1335(define-public chaiscript
1336 (package
1337 (name "chaiscript")
1338 (version "6.1.0")
1339 (source
1340 (origin
1341 (method git-fetch)
1342 (uri (git-reference
1343 (url "https://github.com/ChaiScript/ChaiScript")
1344 (commit (string-append "v" version))))
1345 (file-name (git-file-name name version))
1346 (sha256
1347 (base32 "0i1c88rn1wwz8nf3dpapcdkk4w623m3nksfy5yjai10k9irkzy3c"))
1348 (modules '((guix build utils)))
1349 ;; It's bundled catch2 fails to build.
1350 (snippet '(begin
1351 (delete-file "unittests/catch.hpp")
1352 (substitute* "unittests/compiled_tests.cpp"
1353 (("catch[.]hpp") "catch2/catch.hpp"))
1354 (substitute* "unittests/type_info_test.cpp"
1355 (("catch[.]hpp") "catch2/catch.hpp"))))))
1356 (build-system cmake-build-system)
1357 (inputs (list catch2-2))
1358 (home-page "https://chaiscript.com/")
1359 (synopsis "Embedded scripting language designed for C++")
1360 (description
1361 "ChaiScript is one of the only embedded scripting language designed from
1362the ground up to directly target C++ and take advantage of modern C++
1363development techniques. Being a native C++ application, it has some advantages
1364over existing embedded scripting languages:
1365
1366@enumerate
1367@item Uses a header-only approach, which makes it easy to integrate with
1368existing projects.
1369@item Maintains type safety between your C++ application and the user scripts.
1370@item Supports a variety of C++ techniques including callbacks, overloaded
1371functions, class methods, and stl containers.
1372@end enumerate\n")
1373 (license license:bsd-3)))
1374
1375(define-public fifo-map
1376 (package
1377 (name "fifo-map")
1378 (version "1.0.0")
1379 (home-page "https://github.com/nlohmann/fifo_map")
1380 (source (origin
1381 (method git-fetch)
1382 (uri (git-reference
1383 (url home-page)
1384 (commit (string-append "v" version))))
1385 (sha256
1386 (base32
1387 "0y59fk6ycrgjln9liwcja3l5j1vxpa5i671bynpbsjlyq5f2560q"))
1388 (patches (search-patches "fifo-map-remove-catch.hpp.patch"
1389 "fifo-map-fix-flags-for-gcc.patch"))
1390 (file-name (git-file-name name version))
1391 (modules '((guix build utils)))
1392 (snippet '(delete-file-recursively "./test/thirdparty"))))
1393 (inputs
1394 (list catch2-1))
1395 (build-system cmake-build-system)
1396 (arguments
1397 '(#:phases
1398 (modify-phases %standard-phases
1399 (replace 'check
1400 (lambda* (#:key tests? #:allow-other-keys)
1401 (when tests? (invoke "./unit"))))
1402 (replace 'install
1403 (lambda* (#:key outputs #:allow-other-keys)
1404 (let* ((out (assoc-ref outputs "out"))
1405 (inc (string-append out "/include/fifo_map")))
1406 (with-directory-excursion "../source"
1407 (install-file "src/fifo_map.hpp" inc))))))))
1408 (synopsis "FIFO-ordered associative container for C++")
1409 (description "Fifo_map is a C++ header only library for associative
1410container which uses the order in which keys were inserted to the container
1411as ordering relation.")
1412 (license license:expat)))
1413
1414(define-public frozen
1415 ;; The test suite fails to compile with the latest 1.1.1 release; use a
1416 ;; newer commit (see:
1417 ;; https://github.com/serge-sans-paille/frozen/issues/163).
1418 (let ((commit "dd1f58c5f6c97fbf0832cc4e84676663839b913e")
1419 (revision "0"))
1420 (package
1421 (name "frozen")
1422 (version (git-version "1.1.1" revision commit))
1423 (source (origin
1424 (method git-fetch)
1425 (uri (git-reference
1426 (url "https://github.com/serge-sans-paille/frozen")
1427 (commit commit)))
1428 (file-name (git-file-name name version))
1429 (sha256
1430 (base32
1431 "06i307a7v6alxfy24d47b1sjkz5f4mrqwl2vb4j8zx7wlgnrf08b"))))
1432 (build-system cmake-build-system)
1433 (home-page "https://github.com/serge-sans-paille/frozen")
1434 (synopsis "C++ constexpr alternative header-only library")
1435 (description "@code{frozen} is a header-only library that provides zero
1436cost initialization for immutable containers, fixed-size containers, and
1437various algorithms. It provides features such as:
1438@itemize
1439@item
1440immutable (also known as frozen), @code{constexpr}-compatible versions of
1441{std::set}, {std::unordered_set}, {std::map} and {std::unordered_map}
1442@item
1443fixed-capacity, @code{constinit}-compatible versions of @code{std::map} and
1444@code{std::unordered_map} with immutable, compile-time selected keys mapped to
1445mutable values.
1446@item
1447zero cost initialization version of @code{std::search} for frozen needles
1448using Boyer-Moore or Knuth-Morris-Pratt algorithms.
1449@end itemize
1450The @code{unordered_*} containers are guaranteed perfect (no hash
1451collision) and the extra storage is linear with respect to the number of
1452keys.")
1453 (license license:asl2.0))))
1454
1455(define-public glaze
1456 (package
1457 (name "glaze")
1458 (version "7.0.1")
1459 (source (origin
1460 (method git-fetch)
1461 (uri (git-reference
1462 (url "https://github.com/stephenberry/glaze")
1463 (commit (string-append "v" version))))
1464 (file-name (git-file-name name version))
1465 (sha256
1466 (base32
1467 "1plzxrpk470yqm0pzdw5ghc39jvcafn2xj90hk4gpy7r82wvwfhs"))))
1468 (build-system cmake-build-system)
1469 (arguments
1470 (list #:tests? #f
1471 #:configure-flags
1472 ;; Building tests require fetching external libraries
1473 #~(list "-DBUILD_TESTING=OFF")))
1474 (home-page "https://github.com/stephenberry/glaze")
1475 (synopsis "Fast, in memory, JSON and reflection library for modern C++")
1476 (description "Glaze is an in-memory JSON and reflection library for modern
1477C++. It also provides support for BEVE, CBOR, CSV, MessagePack, TOML, YAML,
1478and EETF.")
1479 (license license:expat)))
1480
1481(define-public json-dto
1482 (package
1483 (name "json-dto")
1484 (version "0.3.1")
1485 (source (origin
1486 (method git-fetch)
1487 (uri (git-reference
1488 (url "https://github.com/Stiffstream/json_dto")
1489 (commit (string-append "v." version))))
1490 (file-name (git-file-name name version))
1491 (sha256
1492 (base32
1493 "0wr1srp08fr2mv4fmnqr626pwiw60svn6wkvy2xg7j080mgwb3ml"))))
1494 (build-system cmake-build-system)
1495 (arguments
1496 (list
1497 #:configure-flags #~(list "-DJSON_DTO_INSTALL_SAMPLES=OFF")
1498 #:phases
1499 #~(modify-phases %standard-phases
1500 (add-after 'unpack 'change-directory
1501 (lambda _
1502 (chdir "dev"))))))
1503 (native-inputs (list catch2-2))
1504 (propagated-inputs (list rapidjson)) ;#include'd
1505 (home-page "https://github.com/Stiffstream/json_dto")
1506 (synopsis "JSON to C++ structures conversion library")
1507 (description "@code{json_dto} library is a small header-only helper for
1508converting data between JSON representation and C++ structs. DTO stands for
1509data transfer object.")
1510 (license license:bsd-3)))
1511
1512(define-public nlohmann-json
1513 (package
1514 (name "nlohmann-json")
1515 ;; XXX: Merge related package `nlohmann-json-no-char8-t' back into here when
1516 ;; updating from 3.12.0, as the unique patch it applies will already be
1517 ;; incorporated in.
1518 (version "3.12.0")
1519 (home-page "https://github.com/nlohmann/json")
1520 (source
1521 (origin
1522 (method git-fetch)
1523 (uri (git-reference (url home-page)
1524 (commit (string-append "v" version))))
1525 (sha256
1526 (base32 "09nqq56ighr3lghhn3fs399lkllghz717j0xyp87x0giw86ayh3h"))
1527 (file-name (git-file-name name version))
1528 (modules '((guix build utils)))
1529 (snippet
1530 #~(begin
1531 ;; Delete bundled software. Preserve doctest_compatibility.h, which
1532 ;; is a wrapper library added by this package.
1533 (install-file "./tests/thirdparty/doctest/doctest_compatibility.h"
1534 "/tmp")
1535 (delete-file-recursively "./tests/thirdparty")
1536 (install-file "/tmp/doctest_compatibility.h"
1537 "./tests/thirdparty/doctest")
1538
1539 ;; Adjust for the unbundled fifo_map and doctest.
1540 (substitute* (find-files "./tests/" "\\.h(pp)?")
1541 (("#include \"doctest\\.h\"") "#include <doctest/doctest.h>")
1542 (("#include <doctest\\.h>") "#include <doctest/doctest.h>"))
1543 (with-directory-excursion "tests/src"
1544 (let ((files (find-files "." "\\.cpp$")))
1545 (substitute* files
1546 (("#include ?\"(fifo_map.hpp)\"" all fifo-map-hpp)
1547 (string-append
1548 "#include <fifo_map/" fifo-map-hpp ">")))))))))
1549 (build-system cmake-build-system)
1550 (arguments
1551 (list
1552 #:configure-flags
1553 #~(list "-DJSON_MultipleHeaders=ON" ; For json_fwd.hpp.
1554 (string-append "-DJSON_TestDataDirectory="
1555 (dirname
1556 (search-input-directory %build-inputs
1557 "json_nlohmann_tests"))))
1558 #:phases
1559 #~(modify-phases %standard-phases
1560 (replace 'check
1561 (lambda* (#:key tests? parallel-tests? #:allow-other-keys)
1562 (if tests?
1563 ;; Some tests need git and a full checkout, skip those.
1564 (invoke "ctest" "-LE" "git_required"
1565 "-j" (if parallel-tests?
1566 (number->string (parallel-job-count))
1567 "1"))
1568 (format #t "test suite not run~%")))))))
1569 (native-inputs
1570 (list amalgamate
1571 (let ((version "3.1.0"))
1572 (origin
1573 (method git-fetch)
1574 (uri (git-reference
1575 (url "https://github.com/nlohmann/json_test_data")
1576 (commit (string-append "v" version))))
1577 (file-name (git-file-name "json_test_data" version))
1578 (sha256
1579 (base32
1580 "0nbirc428qx0lpi940p7y24fzdjbwl6xig3h5rdbihyymmdzhvbc"))))))
1581 (inputs
1582 (list doctest fifo-map))
1583 (synopsis "JSON parser and printer library for C++")
1584 (description "@code{nlohmann::json} is a C++ JSON library that provides
1585intuitive syntax and trivial integration.")
1586 (license license:expat)))
1587
1588(define-deprecated-package json-modern-cxx
1589 nlohmann-json)
1590
1591(define-public nlohmann-json-no-char8-t
1592 (package
1593 ;; XXX: Version 3.12.0 does not work without char8_t support.
1594 ;; OpenRCT2 compiles with -fno-char8_t, and thus requires this patch.
1595 ;; See https://github.com/nlohmann/json/pull/4736
1596 (inherit nlohmann-json)
1597 (name "nlohmann-json-no-char8-t")
1598 (version "3.12.0")
1599 (source
1600 (origin
1601 (method git-fetch)
1602 (uri (git-reference (url "https://github.com/nlohmann/json")
1603 (commit (string-append "v" version))))
1604 (sha256
1605 (base32 "09nqq56ighr3lghhn3fs399lkllghz717j0xyp87x0giw86ayh3h"))
1606 (file-name (git-file-name name version))
1607 (modules '((guix build utils)))
1608 (snippet
1609 #~(begin
1610 ;; Delete bundled software. Preserve doctest_compatibility.h, which
1611 ;; is a wrapper library added by this package.
1612 (install-file "./tests/thirdparty/doctest/doctest_compatibility.h"
1613 "/tmp")
1614 (delete-file-recursively "./tests/thirdparty")
1615 (install-file "/tmp/doctest_compatibility.h"
1616 "./tests/thirdparty/doctest")
1617
1618 ;; Adjust for the unbundled fifo_map and doctest.
1619 (substitute* (find-files "./tests/" "\\.h(pp)?")
1620 (("#include \"doctest\\.h\"") "#include <doctest/doctest.h>")
1621 (("#include <doctest\\.h>") "#include <doctest/doctest.h>"))
1622 (with-directory-excursion "tests/src"
1623 (let ((files (find-files "." "\\.cpp$")))
1624 (substitute* files
1625 (("#include ?\"(fifo_map.hpp)\"" all fifo-map-hpp)
1626 (string-append
1627 "#include <fifo_map/" fifo-map-hpp ">")))))))
1628 (patches
1629 (search-patches "nlohmann_json_fix_char8_t.patch"))))))
1630
1631(define-public jthread
1632 (let ((commit "0fa8d394254886c555d6faccd0a3de819b7d47f8")
1633 (revision "0"))
1634 (package
1635 (name "jthread")
1636 (version (git-version "0.0.0" revision commit))
1637 (source
1638 (origin
1639 (method git-fetch)
1640 (uri (git-reference
1641 (url "https://github.com/josuttis/jthread")
1642 (commit commit)))
1643 (file-name (git-file-name name version))
1644 (sha256
1645 (base32 "11cq4zh7pv86c62ah5im00gxr4cw6d396dp9117z8s271j4lrp6f"))
1646 (snippet
1647 ;; NOTE: remove precompiled PDFs.
1648 #~(begin
1649 (use-modules (guix build utils))
1650 (for-each (lambda (file)
1651 (delete-file file))
1652 (find-files "." ".pdf"))
1653 (delete-file-recursively "doc")))))
1654 (outputs '("out" "doc"))
1655 (build-system cmake-build-system)
1656 (arguments
1657 (list
1658 #:phases
1659 #~(modify-phases %standard-phases
1660 (delete 'configure)
1661 (delete 'build)
1662 (add-after 'unpack 'cd-and-generate-makefile
1663 (lambda _
1664 (call-with-output-file "source/Makefile.h"
1665 (lambda (port)
1666 ;; GCC 2.95 fails to deal with anonymous unions in glibc's
1667 ;; 'struct_rusage.h', so skip that.
1668 (display "CXX17 := c++ -std=c++17 -pthread\n" port)))))
1669 (replace 'check
1670 (lambda* (#:key tests? #:allow-other-keys)
1671 (when tests?
1672 (invoke "make" "-C" "source"))))
1673 (add-after 'check 'build-docs
1674 (lambda _
1675 (with-directory-excursion "tex"
1676 ;; NOTE: remove strict versioning.
1677 (substitute* "styles.tex"
1678 (("lst@CheckVersion\\{1.6\\}")
1679 "lst@CheckVersion{1.10c}"))
1680 (invoke "pdflatex" "std")
1681 (invoke "pdflatex" "std")))) ;Rerun to update references.
1682 (replace 'install
1683 (lambda _
1684 (for-each (lambda (file)
1685 (install-file file
1686 (string-append #$output "/include")))
1687 '("source/condition_variable_any2.hpp"
1688 "source/stop_token.hpp" "source/jthread.hpp"))))
1689 (add-after 'install 'install-doc
1690 (lambda _
1691 (let ((out (string-append #$output:doc "/share/doc/")))
1692 (mkdir-p out)
1693 (copy-file "tex/std.pdf"
1694 (string-append out
1695 #$name "-"
1696 #$version ".pdf"))))))))
1697 (native-inputs
1698 (list perl
1699 (texlive-local-tree
1700 (list texlive-booktabs
1701 texlive-caption
1702 texlive-enumitem
1703 texlive-etoolbox
1704 texlive-extract
1705 texlive-isodate
1706 texlive-jknapltx
1707 texlive-listings
1708 texlive-memoir
1709 texlive-microtype
1710 texlive-relsize
1711 texlive-rsfs
1712 texlive-substr
1713 texlive-ulem
1714 texlive-underscore
1715 texlive-xcolor
1716 texlive-xkeyval
1717 texlive-xpatch))))
1718 (home-page "https://github.com/josuttis/jthread")
1719 (synopsis "C++ class for a joining and cooperative interruptible thread")
1720 (description
1721 "This package provides a reference implementation of @code{std::jthread},
1722a cooperatively interruptible thread that is joined upon destruction.")
1723 (license license:cc-by4.0))))
1724
1725(define-public toml11
1726 (package
1727 (name "toml11")
1728 (version "4.4.0")
1729 (source
1730 (origin
1731 (method git-fetch)
1732 (uri (git-reference
1733 (url "https://github.com/ToruNiina/toml11")
1734 (commit (string-append "v" version))))
1735 (file-name (git-file-name name version))
1736 (sha256
1737 (base32 "0d15b50cf9jgvh3w99xh6crh03bn2dmv9bdyvzq6knsk2diql1dj"))))
1738 (build-system cmake-build-system)
1739 (arguments (list #:tests? #f))
1740 (home-page "https://github.com/ToruNiina/toml11")
1741 (synopsis "TOML for modern C++")
1742 (description
1743 "@code{toml11} is a C++11 (or later) header-only toml parser/encoder
1744depending only on C++ standard library.
1745
1746@itemize
1747@item It is compatible to the latest version of TOML v1.0.0.
1748@item It is one of the most TOML standard compliant libraries, tested with
1749a language agnostic test suite for TOML parsers.
1750@item It shows highly informative error messages.
1751@item It has configurable container. You can use any random-access containers
1752and key-value maps as backend containers.
1753@item It optionally preserves comments without any overhead.
1754@item It has configurable serializer that supports comments, inline tables,
1755literal strings and multiline strings.
1756@item It supports user-defined type conversion from/into toml values.
1757@item It correctly handles UTF-8 sequences, with or without BOM.
1758@end itemize")
1759 (license license:expat)))
1760
1761(define-public tomlplusplus
1762 (package
1763 (name "tomlplusplus")
1764 (version "3.4.0")
1765 (source (origin
1766 (method git-fetch)
1767 (uri (git-reference
1768 (url "https://github.com/marzer/tomlplusplus")
1769 (commit (string-append "v" version))))
1770 (file-name (git-file-name name version))
1771 (sha256
1772 (base32
1773 "1hvbifzcc97r9jwjzpnq31ynqnj5y93cjz4frmgddnkg8hxmp6w7"))))
1774 (build-system meson-build-system)
1775 (arguments
1776 (list #:configure-flags
1777 #~(list "-Dbuild_tests=true")
1778 #:phases
1779 #~(modify-phases %standard-phases
1780 (add-after 'unpack 'set-test-locales
1781 (lambda _
1782 (substitute* "tests/meson.build"
1783 (("foreach locale : test_locales" all)
1784 (format #f "test_locales = [~{'~a.utf8', ~}]~%~a"
1785 ;; %default-utf8-locales in (gnu packages base).
1786 '("C" "de_DE" "el_GR" "en_US" "fr_FR" "tr_TR")
1787 all))))))))
1788 ;; Tests require locales.
1789 (native-inputs (list cmake-minimal (libc-utf8-locales-for-target)))
1790 (home-page "https://marzer.github.io/tomlplusplus/")
1791 (synopsis "Header-only TOML config file parser and serializer for C++17")
1792 (description
1793 "This package provides header-only TOML config file parser and serializer
1794for C++17.")
1795 (license license:expat)))
1796
1797(define-public xtl
1798 (package
1799 (name "xtl")
1800 (version "0.7.7")
1801 (source
1802 (origin
1803 (method git-fetch)
1804 (uri (git-reference
1805 (url "https://github.com/xtensor-stack/xtl")
1806 (commit version)))
1807 (sha256
1808 (base32 "1b42mjxchinsf2ylbvhyypfysg5sfphxqby53vlg82wvr23rijkz"))
1809 (file-name (git-file-name name version))))
1810 (build-system cmake-build-system)
1811 (arguments
1812 (list
1813 #:configure-flags #~(list "-DBUILD_TESTS=ON")))
1814 (native-inputs
1815 (list doctest
1816 googletest
1817 nlohmann-json))
1818 (home-page "https://github.com/xtensor-stack/xtl")
1819 (synopsis "C++ template library providing some basic tools")
1820 (description "xtl is a C++ header-only template library providing basic
1821tools (containers, algorithms) used by other QuantStack packages.")
1822 (license license:bsd-3)))
1823
1824(define-public ccls
1825 (package
1826 (name "ccls")
1827 (version "0.20250815.1")
1828 (source
1829 (origin
1830 (method git-fetch)
1831 (uri (git-reference
1832 (url "https://github.com/MaskRay/ccls")
1833 (commit version)))
1834 (sha256
1835 (base32 "1jl4jv1z8vxjfmkv2mvii68aqqx2nrcbd6bhzjs5dd65r23bqs6x"))
1836 (file-name (git-file-name name version))))
1837 (build-system cmake-build-system)
1838 (arguments
1839 '(#:tests? #f)) ; no check target
1840 (inputs
1841 (list rapidjson))
1842 (native-inputs
1843 (list clang-13 llvm-13))
1844 (home-page "https://github.com/MaskRay/ccls")
1845 (synopsis "C/C++/Objective-C language server")
1846 (description
1847 "@code{ccls} is a server implementing the Language Server Protocol (LSP)
1848for C, C++ and Objective-C languages. It uses @code{clang} to perform static
1849code analysis and supports cross references, hierarchies, completion and
1850syntax highlighting. @code{ccls} is derived from @code{cquery} which is not
1851maintained anymore.")
1852 (license license:asl2.0)))
1853
1854(define-public concurrentqueue
1855 (package
1856 (name "concurrentqueue")
1857 (version "1.0.3")
1858 (source
1859 (origin
1860 (method git-fetch)
1861 (uri (git-reference
1862 (url "https://github.com/cameron314/concurrentqueue/")
1863 (commit "3747268264d0fa113e981658a99ceeae4dad05b7")))
1864 (file-name (git-file-name name version))
1865 (sha256
1866 (base32 "1n5v7n27llzg7khg1jvi35jrcf9v6adw8gaic9ndxn65dp723ssy"))))
1867 (build-system cmake-build-system)
1868 (arguments '(#:tests? #false)) ;no check target
1869 (home-page "https://github.com/cameron314/concurrentqueue/")
1870 (synopsis "Multi-producer, multi-consumer lock-free concurrent queue for C++11")
1871 (description
1872 "This package provides a fast multi-producer, multi-consumer lock-free
1873concurrent queue for C++11.")
1874 (license license:bsd-2)))
1875
1876(define-public ringbuffer
1877 (package
1878 (name "ringbuffer")
1879 (version "0.9.0")
1880 (source (origin
1881 (method git-fetch)
1882 (uri (git-reference
1883 (url "https://github.com/JohannesLorenz/ringbuffer")
1884 (commit (string-append "v" version))))
1885 (file-name (git-file-name name version))
1886 (sha256
1887 (base32
1888 "1c57hj6zyvcjpcbwrq8c1hj5brk1bnh69ayd88ny1p0gx031sjpk"))))
1889 (build-system cmake-build-system)
1890 (arguments
1891 (list #:configure-flags
1892 #~(list "-DCMAKE_CXX_FLAGS=-Wno-error=array-bounds"
1893 (string-append "-DINSTALL_LIB_DIR=" #$output "/lib"))
1894 #:phases
1895 #~(modify-phases %standard-phases
1896 (add-after 'install 'install-export-header
1897 (lambda _
1898 (install-file "src/lib/ringbuffer_export.h"
1899 (string-append #$output
1900 "/include/ringbuffer")))))))
1901 (home-page "https://github.com/JohannesLorenz/ringbuffer")
1902 (synopsis "Lock-free multi-reader ringbuffer")
1903 (description
1904 "@code{ringbuffer} is a library containing a ringbuffer. It is lock-free
1905(using atomics only), and allows multiple readers, but only one writer.")
1906 (license license:gpl3+)))
1907
1908(define-public spscqueue
1909 (package
1910 (name "spscqueue")
1911 (version "1.1")
1912 (source
1913 (origin
1914 (method git-fetch)
1915 (uri (git-reference
1916 (url "https://github.com/rigtorp/SPSCQueue/")
1917 (commit (string-append "v" version))))
1918 (file-name (git-file-name name version))
1919 (sha256
1920 (base32 "1428cj9x318afvnvnkhg0711iy4czqn86fi7ysgfhw91asa316rc"))))
1921 (build-system cmake-build-system)
1922 (home-page "https://github.com/rigtorp/SPSCQueue/")
1923 (synopsis "Single producer single consumer queue written in C++11")
1924 (description
1925 "This package provides a single producer single consumer wait-free and
1926lock-free fixed size queue written in C++11.")
1927 (license license:expat)))
1928
1929(define-public syscmdline
1930 (let ((commit "0c9f3de8b11bd2f33b03bea5521bf446af4ead69")
1931 (revision "0"))
1932 (package
1933 (name "syscmdline")
1934 ;; The version string is taken from
1935 ;; <https://raw.githubusercontent.com/SineStriker/syscmdline/refs/heads/main/CMakeLists.txt>.
1936 (version (git-version "1.0.0.0" revision commit))
1937 (source (origin
1938 (method git-fetch)
1939 (uri (git-reference
1940 (url "https://github.com/SineStriker/syscmdline")
1941 (commit commit)))
1942 (file-name (git-file-name name version))
1943 (sha256
1944 (base32
1945 "168dij7p2kjl0qs3k5lzrnbzf2s2mbfpm83jimk028whx8cbv4jh"))))
1946 (build-system cmake-build-system)
1947 (arguments
1948 (list #:configure-flags
1949 #~(list "-DSYSCMDLINE_BUILD_STATIC=OFF" ;build a shared library
1950 "-DSYSCMDLINE_BUILD_TESTS=ON")
1951 #:phases #~(modify-phases %standard-phases
1952 (replace 'check
1953 ;; There isn't currently any exposed test target.
1954 (lambda* (#:key tests? #:allow-other-keys)
1955 (when tests?
1956 (invoke "bin/tst_basic")))))))
1957 (home-page "https://github.com/SineStriker/syscmdline")
1958 (synopsis "C++ advanced command line parser")
1959 (description "SysCmdLine is a C++ command line parser that is inspired by
1960@code{QCommandLineParser} from Qt and @code{System.CommandLine} from C#. It
1961has features such as:
1962@itemize
1963@item Support sub-commands
1964@item Support case-insensitive parsing
1965@item Support global options
1966@item Support mutually exclusive options
1967@item Support short options and group flags
1968@item Support help text customization
1969@item Support localization
1970@item Simple tips for typo correction
1971@item Highly configurable
1972@item Friendly interface
1973@end itemize")
1974 (license license:expat))))
1975
1976(define-public gperftools
1977 (package
1978 (name "gperftools")
1979 (version "2.11")
1980 (source
1981 (origin
1982 (method git-fetch)
1983 (uri (git-reference
1984 (url "https://github.com/gperftools/gperftools")
1985 (commit (string-append "gperftools-" version))))
1986 (sha256
1987 (base32 "1mwsa4y696m8zjya0k7xzr9vsgb24dq4aq13m21hb5ygy7nh47id"))
1988 (file-name (git-file-name name version))))
1989 (build-system gnu-build-system)
1990 (arguments
1991 ;; The tests are flaky when run in parallel. For more info:
1992 ;; https://bugs.gnu.org/46562
1993 `(#:parallel-tests? #f
1994 ,@(if (target-riscv64?)
1995 `(#:make-flags (list "LDFLAGS=-latomic"))
1996 '())))
1997 (native-inputs
1998 (list autoconf automake libtool
1999 ;; For tests.
2000 perl))
2001 (home-page "https://github.com/gperftools/gperftools")
2002 (synopsis "Multi-threaded malloc() and performance analysis tools for C++")
2003 (description
2004 "@code{gperftools} is a collection of a high-performance multi-threaded
2005malloc() implementation plus some thread-friendly performance analysis
2006tools:
2007
2008@itemize
2009@item tcmalloc,
2010@item heap profiler,
2011@item heap checker,
2012@item CPU checker.
2013@end itemize\n")
2014 (license license:bsd-3)))
2015
2016(define-public gperftools-for-friction
2017 (let ((commit "b97c293c812c7ec3cdeccd50a89769e746c01377")
2018 (revision "0")
2019 (base-version "0.9.6"))
2020 (package
2021 (inherit gperftools)
2022 (name "gperftools")
2023 (version (git-version base-version revision commit))
2024 (source
2025 (origin
2026 (method git-fetch)
2027 (uri (git-reference
2028 (url "https://github.com/friction2d/gperftools")
2029 (commit (string-append "friction-" base-version))))
2030 (sha256
2031 (base32 "1ffkzlsdpcjjq8md21kr7a1q10bia77xriga6far2608rplmwsk8"))
2032 (file-name (git-file-name name version)))))))
2033
2034(define-public cpp-httplib
2035 ;; this package is not graftable, as everything is implemented in a single
2036 ;; header
2037 (package
2038 (name "cpp-httplib")
2039 (version "0.20.0")
2040 (source
2041 (origin
2042 (method git-fetch)
2043 (uri (git-reference
2044 (url "https://github.com/yhirose/cpp-httplib")
2045 (commit (string-append "v" version))))
2046 (sha256
2047 (base32 "0w5klyfsaws793xb0cbkjxg7lwrdm6f3m4z4v7pzkwl957f9q70m"))
2048 (file-name (git-file-name name version))))
2049 (build-system cmake-build-system)
2050 (arguments
2051 `(#:parallel-tests? #f
2052 #:configure-flags
2053 '("-DBUILD_SHARED_LIBS=ON"
2054 "-DHTTPLIB_TEST=ON"
2055 "-DHTTPLIB_COMPILE=ON"
2056 "-DHTTPLIB_REQUIRE_BROTLI=ON"
2057 "-DHTTPLIB_REQUIRE_OPENSSL=ON"
2058 "-DHTTPLIB_REQUIRE_ZLIB=ON")
2059 #:make-flags
2060 '(,(string-append "CXX=" (cxx-for-target)))
2061 #:phases
2062 (modify-phases %standard-phases
2063 (add-after 'unpack 'disable-network-tests
2064 (lambda _
2065 (for-each
2066 (lambda (test)
2067 (substitute* "test/test.cc"
2068 (((string-append "\\(" test))
2069 (string-append "(DISABLED_" test))))
2070 ;; There are tests requiring network access, disable them
2071 '("AbsoluteRedirectTest" "BaseAuthTest" "CancelTest"
2072 "ConnectionErrorTest"
2073 "ChunkedEncodingTest" "ChunkedEncodingTest"
2074 "ClientDefaultHeadersTest"
2075 "DecodeWithChunkedEncoding" "DefaultHeadersTest"
2076 "DigestAuthTest" "HttpsToHttpRedirectTest"
2077 "HostnameToIPConversionTest"
2078 "RangeTest" "RedirectTest" "RelativeRedirectTest"
2079 "SSLClientTest" "SendAPI"
2080 "SpecifyServerIPAddressTest"
2081 "TooManyRedirectTest" "UrlWithSpace"
2082 "YahooRedirectTest" "YahooRedirectTest")))))))
2083 (native-inputs
2084 (list curl googletest python))
2085 (inputs
2086 (list brotli openssl zlib))
2087 (home-page "https://github.com/yhirose/cpp-httplib")
2088 (synopsis "C++ HTTP/HTTPS server and client library")
2089 (description "cpp-httplib is a C++11 single-file cross platform blocking
2090HTTP/HTTPS library, easy to setup. It can also be used as a single-header
2091library.")
2092 (license license:expat)))
2093
2094(define-public rapidfuzz-cpp
2095 (package
2096 (name "rapidfuzz-cpp")
2097 (version "3.3.3")
2098 (source
2099 (origin
2100 (method git-fetch)
2101 (uri (git-reference
2102 (url "https://github.com/rapidfuzz/rapidfuzz-cpp")
2103 (commit (string-append "v" version))))
2104 (file-name (git-file-name name version))
2105 (sha256
2106 (base32 "1ma2hpp4c53fwjb8yi7rpkgivhsw7bkd8agw3sw5zwdlwsks88xv"))))
2107 (build-system cmake-build-system)
2108 (arguments
2109 (list
2110 #:configure-flags #~(list "-DRAPIDFUZZ_BUILD_TESTING=ON")))
2111 (native-inputs (list catch2-2))
2112 (home-page "https://github.com/rapidfuzz/rapidfuzz-cpp")
2113 (synopsis "Rapid fuzzy string matching using the Levenshtein Distance")
2114 (description
2115 "RapidFuzz is a fast string matching library for Python and C++, which is
2116using the string similarity calculations from FuzzyWuzzy.")
2117 (license license:expat)))
2118
2119(define-public cpplint
2120 (package
2121 (name "cpplint")
2122 (version "2.0.2")
2123 (source
2124 (origin
2125 (method git-fetch)
2126 (uri (git-reference
2127 (url "https://github.com/cpplint/cpplint")
2128 (commit version)))
2129 (sha256
2130 (base32 "0n9v4zayxp2r6lhmsi4xpk5lnjs4x6h6p7isr86xyhm7mjxd7jp1"))
2131 (file-name (git-file-name name version))))
2132 (build-system pyproject-build-system)
2133 (arguments
2134 (list
2135 ;; tests: 222 passed
2136 #:phases
2137 #~(modify-phases %standard-phases
2138 (add-after 'unpack 'fix-pytest-config
2139 (lambda _
2140 (substitute* "pyproject.toml"
2141 (("\"pytest-cov\", ") "")))))))
2142 (native-inputs
2143 (list python-pytest
2144 python-pytest-timeout
2145 python-setuptools
2146 python-testfixtures))
2147 (home-page "https://github.com/cpplint/cpplint")
2148 (synopsis "Static code checker for C++")
2149 (description "@code{cpplint} is a command-line tool to check C/C++ files
2150for style issues following Google’s C++ style guide. While Google maintains
2151its own version of the tool, this is a fork that aims to be more responsive
2152and make @code{cpplint} usable in wider contexts.")
2153 (license license:bsd-3)))
2154
2155(define-public readerwriterqueue
2156 (package
2157 (name "readerwriterqueue")
2158 (version "1.0.7")
2159 (source
2160 (origin
2161 (method git-fetch)
2162 (uri (git-reference
2163 (url "https://github.com/cameron314/readerwriterqueue")
2164 (commit (string-append "v" version))))
2165 (file-name (git-file-name name version))
2166 (sha256
2167 (base32
2168 "0dy77avwfcidxhzj249b1qfg0m86fzz624gi62ddpvm0dmds0h0m"))))
2169 (build-system cmake-build-system)
2170 (arguments
2171 (list
2172 #:tests? #f ;no make instructions
2173 #:phases
2174 #~(modify-phases %standard-phases
2175 (add-after 'unpack 'keep-license-out-of-include-dir
2176 (lambda _
2177 (substitute* "CMakeLists.txt"
2178 (("(readerwritercircularbuffer\\.h )LICENSE.md" _ f) f)))))))
2179 (home-page "https://github.com/cameron314/readerwriterqueue")
2180 (synopsis "Fast single-producer single-consumer lock free queue")
2181 (description "readerwriterqueue provides a lock free queue supporting
2182a two-thread use case (one consuming, one producing). Features include:
2183@itemize
2184@item compatible with C++11 (supports moving objects instead of making copies)
2185@item fully generic (templated container of any type); just like
2186@code{std::queue}, you never need to allocate memory for elements yourself
2187@item allocates memory up front, in contiguous blocks
2188@item provides a @code{try_enqueue} method which is guaranteed never to allocate
2189memory
2190@item provides an enqueue method which can dynamically grow the size of the
2191queue as needed
2192@item Completely wait-free (no compare-and-swap loop). Enqueue and dequeue are
2193always O(1) (not counting memory allocation)
2194@item On x86, the memory barriers compile down to no-ops
2195@end itemize")
2196 (license (list license:bsd-2
2197 license:zlib)))) ;embedded in atomicops.h
2198
2199(define-public reproc
2200 (package
2201 (name "reproc")
2202 (version "14.2.5")
2203 (source
2204 (origin
2205 (method git-fetch)
2206 (uri (git-reference
2207 (url "https://github.com/DaanDeMeyer/reproc")
2208 (commit (string-append "v" version))))
2209 (file-name (git-file-name name version))
2210 (sha256
2211 (base32 "07h11rzhvplgmd420v650h8abyvwcbws4w1xlq8x18nxbp4nnqn1"))))
2212 (build-system cmake-build-system)
2213 (arguments
2214 (list #:tests? #f ; No tests.
2215 #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON"
2216 "-DREPROC++=ON")))
2217 (native-inputs
2218 (list pkg-config))
2219 (synopsis "Process IO library")
2220 (description "reproc (Redirected Process) is a C/C++ library that
2221simplifies starting, stopping and communicating with external programs. The
2222main use case is executing command line applications directly from C or C++
2223code and retrieving their output.")
2224 (home-page "https://github.com/DaanDeMeyer/reproc")
2225 (license license:expat)))
2226
2227(define-public scn
2228 (package
2229 (name "scn")
2230 (version "4.0.1")
2231 (source (origin
2232 (method git-fetch)
2233 (uri (git-reference
2234 (url "https://github.com/eliaskosunen/scnlib")
2235 (commit (string-append "v" version))))
2236 (file-name (git-file-name name version))
2237 (patches (search-patches "scn-fast-float-compat.patch"))
2238 (sha256
2239 (base32 "0lnb9r004y75n4s4pd3k58cdcjpcylhdgr5phwja713g3dd40im8"))))
2240 (build-system cmake-build-system)
2241 (arguments
2242 (list #:configure-flags #~(list "-DSCN_USE_EXTERNAL_GTEST=yes"
2243 "-DSCN_USE_EXTERNAL_BENCHMARK=yes"
2244 "-DSCN_USE_EXTERNAL_FAST_FLOAT=yes"
2245 "-DBUILD_SHARED_LIBS=yes")))
2246 (propagated-inputs (list fast-float))
2247 (native-inputs (list googletest googlebenchmark))
2248 (home-page "https://scnlib.dev/")
2249 (synopsis "Type-safe text parsing library")
2250 (description "@code{scn} is a text parsing library for C++. It can
2251be used as a safe alternative to @code{scanf} or as a fast alternative to
2252@code{IOStreams}, analogous to @code{fmt}.")
2253 (license license:asl2.0)))
2254
2255(define-public sobjectizer
2256 (package
2257 (name "sobjectizer")
2258 (version "5.8.2")
2259 (source
2260 (origin
2261 (method git-fetch)
2262 (uri (git-reference
2263 (url "https://github.com/Stiffstream/sobjectizer")
2264 (commit (string-append "v." version))))
2265 (sha256
2266 (base32 "0ya5xlgm3arvzvcnsajw03kc3cibbdbap9p7kgpxn00byqbxixr7"))
2267 (file-name (git-file-name name version))))
2268 (build-system cmake-build-system)
2269 (arguments
2270 `(#:tests? #f
2271 #:phases
2272 (modify-phases %standard-phases
2273 (add-after 'unpack 'change-directory
2274 (lambda _
2275 (chdir "dev"))))))
2276 (home-page "https://stiffstream.com/en/products/sobjectizer.html")
2277 (synopsis "Cross-platform actor framework for C++")
2278 (description
2279 "SObjectizer is a cross-platform \"actor frameworks\" for C++.
2280SObjectizer supports not only the Actor Model but also the Publish-Subscribe
2281Model and CSP-like channels. The goal of SObjectizer is to simplify
2282development of concurrent and multithreaded applications in C++.")
2283 (license license:bsd-3)))
2284
2285(define-public taskflow
2286 (package
2287 (name "taskflow")
2288 (version "3.10.0")
2289 (source
2290 (origin
2291 (method git-fetch)
2292 (uri (git-reference
2293 (url "https://github.com/taskflow/taskflow")
2294 (commit (string-append "v" version))))
2295 (file-name (git-file-name name version))
2296 (sha256
2297 (base32 "08z7vif8lk4jri9m77j9gqyyv7nwza5qfgab0bk5gl9akb63qh5k"))))
2298 (build-system cmake-build-system)
2299 (home-page "https://taskflow.github.io/")
2300 (synopsis
2301 "General-purpose parallel and heterogeneous task programming system")
2302 (description
2303 "Taskflow is a C++ library for writing parallel and heterogeneous task
2304programs.")
2305 (license license:expat)))
2306
2307(define-public kokkos
2308 (package
2309 (name "kokkos")
2310 (version "4.6.02")
2311 (source
2312 (origin
2313 (method git-fetch)
2314 (uri (git-reference
2315 (url "https://github.com/kokkos/kokkos")
2316 (commit version)))
2317 (file-name (git-file-name name version))
2318 (sha256
2319 (base32 "0pfrxqjirm8qccb9k1krlw9fh0qlva62q6gyc6j7yz0zvdrdyi59"))
2320 (modules '((guix build utils)))
2321 (snippet
2322 ;; Remove bundled googletest.
2323 #~(delete-file-recursively "tpls/gtest"))))
2324 (build-system cmake-build-system)
2325 (arguments
2326 (list #:configure-flags
2327 ;; deal.II uses only the serial backend, so do not enable the
2328 ;; others yet.
2329 #~(list "-DBUILD_SHARED_LIBS=ON"
2330 "-DKokkos_ENABLE_SERIAL=ON"
2331 "-DKokkos_ENABLE_TESTS=ON"
2332 "-DKokkos_ENABLE_EXAMPLES=ON"
2333 "-DKokkos_ENABLE_HWLOC=ON"
2334 "-DKokkos_ENABLE_MEMKIND=ON")
2335 #:phases
2336 #~(modify-phases %standard-phases
2337 (add-after 'install-license-files 'remove-cruft
2338 (lambda _
2339 (delete-file
2340 (string-append #$output "/share/doc/"
2341 #$name "-" #$version
2342 "/LICENSE_FILE_HEADER")))))))
2343 (native-inputs
2344 (list googletest python))
2345 (inputs
2346 (list `(,hwloc "lib") memkind))
2347 (home-page "https://github.com/kokkos/kokkos")
2348 (synopsis "C++ abstractions for parallel execution and data management")
2349 (description
2350 "Kokkos Core implements a programming model in C++ for writing performance
2351portable applications targeting all major HPC platforms. For that purpose it
2352provides abstractions for both parallel execution of code and data management.
2353Kokkos is designed to target complex node architectures with N-level memory
2354hierarchies and multiple types of execution resources.")
2355
2356 ;; Code exhibits integer size mismatches when compiled on 32-bit systems.
2357 (supported-systems %64bit-supported-systems)
2358
2359 ;; This code can benefit from SIMD optimizations; tuning gives an effect
2360 ;; equivalent to setting the 'KOKKOS_ARCH_NATIVE' CMake flag, except for
2361 ;; the configuration metadata recorded in 'Kokkos_Core.cpp'.
2362 (properties '((tunable? . #t)))
2363
2364 (license license:asl2.0))) ; With LLVM exception
2365
2366(define-public kokkos-kernels
2367 (package
2368 (name "kokkos-kernels")
2369 ;; Synchronize with Kokkos version.
2370 (version (package-version kokkos))
2371 (source
2372 (origin
2373 (method git-fetch)
2374 (uri (git-reference
2375 (url "https://github.com/kokkos/kokkos-kernels")
2376 (commit version)))
2377 (file-name (git-file-name name version))
2378 (sha256
2379 ;; Version 4.6.02.
2380 (base32 "05g4dp1359rsx0y2wrg2yv4zx3aq5anxr8jgb2c5f1ay3nq3639s"))))
2381 (build-system cmake-build-system)
2382 (arguments
2383 (list #:tests? #f
2384 #:configure-flags
2385 #~(list "-DBUILD_SHARED_LIBS=ON")))
2386 (inputs
2387 (list kokkos
2388 openblas))
2389 (properties '((tunable? . #t)))
2390 (home-page "https://kokkos.org")
2391 (synopsis
2392 "Math kernels for Kokkos")
2393 (description "KokkosKernels implements local computational kernels for
2394linear algebra and graph operations, using the Kokkos shared-memory parallel
2395programming model. \"Local\" means not using MPI, or running within a
2396single MPI process without knowing about MPI.")
2397 (license license:asl2.0))) ;with LLVM exception
2398
2399(define-public kokkos-fft
2400 (package
2401 (name "kokkos-fft")
2402 (version "0.3.0")
2403 (source
2404 (origin
2405 (method git-fetch)
2406 (uri (git-reference
2407 (url "https://github.com/kokkos/kokkos-fft")
2408 (commit (string-append "v" version))))
2409 (file-name (git-file-name name version))
2410 (sha256 (base32 "0skajkzkrmlsfzrzkvspzqf6z9wqvs529cmknzhk4mhn917pykh6"))))
2411 (build-system cmake-build-system)
2412 (arguments
2413 (list #:configure-flags
2414 #~(list "-DKokkosFFT_DEPENDENCY_POLICIES=INSTALLED"
2415 "-DKokkosFFT_ENABLE_TESTS=ON")))
2416 (inputs
2417 (list kokkos
2418 fftw
2419 fftwf))
2420 (native-inputs
2421 (list googletest))
2422 (home-page "https://kokkosfft.readthedocs.io/")
2423 (synopsis "Shared-memory FFT for the Kokkos ecosystem")
2424 (description "Kokkos-fft is an experimental FFT interface for the
2425Kokkos C++ environment. It implements local interfaces between Kokkos
2426and FFT libraries such as FFTW, cufft, hipfft (rocfft), and oneMKL.
2427\"Local\" means not using MPI, or running within a single MPI process
2428without knowing about MPI.")
2429 ;; dual licensed, asl2.0 with LLVM exception
2430 (license (list license:expat license:asl2.0))))
2431
2432(define-public tweeny
2433 (package
2434 (name "tweeny")
2435 (version "3")
2436 (source
2437 (origin
2438 (method git-fetch)
2439 (uri (git-reference
2440 (url "https://github.com/mobius3/tweeny")
2441 (commit (string-append "v" version))))
2442 (file-name (git-file-name name version))
2443 (sha256
2444 (base32 "1adm4c17pi7xf3kf6sjyxibz5rdg1ka236p72xsm6js4j9gzlbp4"))))
2445 (arguments
2446 '(#:tests? #f)) ;no check target
2447 (build-system cmake-build-system)
2448 (home-page "https://mobius3.github.io/tweeny/")
2449 (synopsis "Modern C++ tweening library")
2450 (description "@code{Tweeny} is an inbetweening library designed for the
2451creation of complex animations for games and other beautiful interactive
2452software. It leverages features of modern @code{C++} to empower developers with
2453an intuitive API for declaring tweenings of any type of value, as long as they
2454support arithmetic operations. The goal of @code{Tweeny} is to provide means to
2455create fluid interpolations when animating position, scale, rotation, frames or
2456other values of screen objects, by setting their values as the tween starting
2457point and then, after each tween step, plugging back the result.")
2458 (license license:expat)))
2459
2460(define-public abseil-cpp-20220623
2461 (package
2462 (name "abseil-cpp")
2463 (version "20220623.2")
2464 (source (origin
2465 (method git-fetch)
2466 (uri (git-reference
2467 (url "https://github.com/abseil/abseil-cpp")
2468 (commit version)))
2469 (file-name (git-file-name name version))
2470 (sha256
2471 (base32
2472 "1cmchfcqp85yp5hc3i47xv3i14v0f2wd5h2jblvcjjmjyhji1bwr"))
2473 (patches
2474 (search-patches "abseil-cpp-20220623.1-no-kepsilon-i686.patch"))))
2475 (build-system cmake-build-system)
2476 (arguments
2477 (list
2478 #:configure-flags
2479 ;; The following convoluted expression has been crafted to avoid
2480 ;; changing the derivation when removing inheritance from
2481 ;; abseil-cpp-20200923.3.
2482 #~(cons*
2483 "-DABSL_BUILD_TESTING=ON"
2484 (delete
2485 "-DABSL_RUN_TESTS=ON"
2486 (list "-DBUILD_SHARED_LIBS=ON"
2487 "-DABSL_RUN_TESTS=ON"
2488 "-DABSL_USE_EXTERNAL_GOOGLETEST=ON"
2489 ;; Needed, else we get errors like:
2490 ;; ld: CMakeFiles/absl_periodic_sampler_test.dir/internal/periodic_sampler_test.cc.o:
2491 ;; undefined reference to symbol '_ZN7testing4Mock16UnregisterLockedEPNS_8internal25UntypedFunctionMockerBaseE'
2492 ;; ld: /gnu/store/...-googletest-1.10.0/lib/libgmock.so:
2493 ;; error adding symbols: DSO missing from command line
2494 ;; collect2: error: ld returned 1 exit status
2495 "-DCMAKE_EXE_LINKER_FLAGS=-lgtest -lpthread -lgmock")))
2496 #:phases
2497 #~(modify-phases %standard-phases
2498 (add-after 'unpack 'fix-max
2499 (lambda _
2500 (substitute* "absl/debugging/failure_signal_handler.cc"
2501 (("std::max\\(SIGSTKSZ, 65536\\)")
2502 "std::max<size_t>(SIGSTKSZ, 65536)"))))
2503 (add-before 'configure 'remove-gtest-check
2504 ;; The CMakeLists fails to find our googletest for some reason, but
2505 ;; it works nonetheless.
2506 (lambda _
2507 (substitute* "CMakeLists.txt"
2508 (("check_target\\(gtest\\)") "")
2509 (("check_target\\(gtest_main\\)") "")
2510 (("check_target\\(gmock\\)") "")))))))
2511 (native-inputs
2512 (list googletest-1.12))
2513 (home-page "https://abseil.io")
2514 (synopsis "Augmented C++ standard library")
2515 (description "Abseil is a collection of C++ library code designed to
2516augment the C++ standard library. The Abseil library code is collected from
2517Google's C++ code base.")
2518 (license license:asl2.0)))
2519
2520(define-public abseil-cpp
2521 (let ((base abseil-cpp-20220623))
2522 (package
2523 (inherit base)
2524 (name "abseil-cpp")
2525 (version "20250814.1")
2526 (source (origin
2527 (method git-fetch)
2528 (uri (git-reference
2529 (url "https://github.com/abseil/abseil-cpp")
2530 (commit version)))
2531 (file-name (git-file-name name version))
2532 (sha256
2533 (base32
2534 "1wm2271hwy2pnfv9b5iy0y9xvbhiwffdf9i6s3dn89k630wh6928"))
2535 (patches
2536 (search-patches "abseil-cpp-20220623.1-no-kepsilon-i686.patch"))))
2537 (arguments
2538 (substitute-keyword-arguments arguments
2539 ((#:configure-flags flags #~'())
2540 (if (target-riscv64?)
2541 #~(cons* "-DCMAKE_SHARED_LINKER_FLAGS=-latomic"
2542 #$flags)
2543 flags))
2544 ((#:phases phases)
2545 #~(modify-phases #$phases
2546 (add-before 'check 'set-env-vars
2547 (lambda* (#:key inputs #:allow-other-keys)
2548 ;; absl_time_test requires this environment variable.
2549 (setenv "TZDIR" (string-append #$(package-source this-package)
2550 "/absl/time/internal/cctz/testdata/zoneinfo"))))
2551 #$@(if (target-riscv64?)
2552 #~((replace 'check
2553 (lambda* (#:key tests? #:allow-other-keys)
2554 (when tests?
2555 (setenv "CTEST_OUTPUT_ON_FAILURE" "1")
2556 (invoke "ctest" "-E"
2557 "absl_symbolize_test|absl_log_format_test")))))
2558 #~())))))
2559 (native-inputs
2560 (modify-inputs native-inputs
2561 (replace "googletest" googletest))))))
2562
2563(define-public abseil-cpp-20250127
2564 (let ((base abseil-cpp))
2565 (package
2566 (inherit base)
2567 (name "abseil-cpp")
2568 (version "20250127.1")
2569 (source (origin
2570 (method git-fetch)
2571 (uri (git-reference
2572 (url "https://github.com/abseil/abseil-cpp")
2573 (commit version)))
2574 (file-name (git-file-name name version))
2575 (sha256
2576 (base32
2577 "0r2j360csym12jlgmcy92rgwdmng63shchxvfmln3j5402lv0g21"))
2578 (patches
2579 (search-patches "abseil-cpp-20220623.1-no-kepsilon-i686.patch")))))))
2580
2581(define (abseil-cpp-for-c++-standard base version)
2582 (hidden-package
2583 (package/inherit base
2584 (arguments
2585 (substitute-keyword-arguments arguments
2586 ((#:configure-flags flags)
2587 #~(cons* #$(string-append "-DCMAKE_CXX_STANDARD="
2588 (number->string version))
2589 #$flags)))))))
2590
2591(define (make-static-abseil-cpp version)
2592 (let ((base abseil-cpp))
2593 (hidden-package
2594 (package/inherit base
2595 (arguments
2596 (substitute-keyword-arguments arguments
2597 ((#:configure-flags flags)
2598 #~(cons* "-DCMAKE_POSITION_INDEPENDENT_CODE=ON"
2599 (delete "-DBUILD_SHARED_LIBS=ON" #$flags)))))))))
2600
2601(define-public abseil-cpp-cxxstd17
2602 (abseil-cpp-for-c++-standard abseil-cpp 17)) ;XXX: the default with GCC 11?
2603
2604(define-public abseil-cpp-cxxstd11
2605 (abseil-cpp-for-c++-standard abseil-cpp-20220623 11)) ;last version on C++11
2606
2607(define-public static-abseil-cpp
2608 (make-static-abseil-cpp abseil-cpp))
2609
2610(define-public miniaudio
2611 (package
2612 (name "miniaudio")
2613 (version "0.11.22")
2614 (source
2615 (origin
2616 (method git-fetch)
2617 (uri (git-reference
2618 (url "https://github.com/mackron/miniaudio")
2619 (commit version)))
2620 (file-name (git-file-name name version))
2621 (sha256
2622 (base32 "1pjaiq71x24n9983vkhjxrsbraa24053h727db22b1rb2xyfrzm3"))))
2623 (build-system gnu-build-system)
2624 (arguments
2625 (list
2626 #:phases
2627 #~(modify-phases %standard-phases
2628 (delete 'build)
2629 (delete 'configure)
2630 (replace 'check
2631 (lambda* (#:key tests? #:allow-other-keys)
2632 (when tests?
2633 (with-directory-excursion "tests/_build"
2634 (let ((tests '("conversion" "filtering" "generation")))
2635 (mkdir "bin")
2636 ;; Compile tests
2637 (for-each (lambda (test)
2638 (invoke "gcc"
2639 (string-append "../" test "/" test
2640 ".c")
2641 "-o"
2642 (string-append "bin/" test)
2643 "-ldl"
2644 "-lm"
2645 "-lpthread"
2646 "-Wall"
2647 "-Wextra"
2648 "-Wpedantic")
2649 (let ((bin (string-append "./bin/" test)))
2650 (if (string= test "filtering")
2651 ;; NOTE: the 'filtering' test
2652 ;; requires an input file.
2653 (invoke bin bin)
2654 (invoke bin))))
2655 tests))))))
2656 (replace 'install
2657 (lambda _
2658 (install-file "miniaudio.h"
2659 (string-append #$output "/include"))
2660 (copy-recursively "extras"
2661 (string-append #$output
2662 "/include/extras/")))))))
2663 (home-page "https://miniaud.io")
2664 (synopsis "Audio playback and capture library for C and C++")
2665 (description
2666 "Miniaudio is an audio playback and capture library for C and C++. It is
2667made up of a single source file and has no external dependencies.")
2668 (license license:expat)))
2669
2670;; Deprecated on 2026-07-08.
2671(define-deprecated/public-alias lexy
2672 (@ (gnu packages compiler-tools) lexy))
2673
2674;; Deprecated on 2026-07-08.
2675(define-deprecated/public-alias pegtl
2676 (@ (gnu packages compiler-tools) pegtl))
2677
2678(define-public psascan
2679 (package
2680 (name "psascan")
2681 (version "0.1.0")
2682 (source (origin
2683 (method url-fetch)
2684 (uri (string-append "https://www.cs.helsinki.fi/group"
2685 "/pads/software/pSAscan"
2686 "/pSAscan-" version ".tar.bz2"))
2687 (sha256
2688 (base32
2689 "1cphk4gf202nzkxz6jdjzls4zy27055gwpm0r8cn99gr6c8548cy"))
2690 (modules '((guix build utils)))
2691 (snippet '(begin (substitute* '("src/Makefile"
2692 "tools/delete-bytes-255/Makefile")
2693 (("-march=native") ""))))))
2694 (build-system gnu-build-system)
2695 (arguments
2696 (list
2697 #:tests? #false ;there are none
2698 #:phases
2699 #~(modify-phases %standard-phases
2700 (add-after 'unpack 'chdir (lambda _ (chdir "src")))
2701 (delete 'configure)
2702 (replace 'install
2703 (lambda _
2704 (install-file "psascan"
2705 (string-append #$output "/bin")))))))
2706 (inputs (list libdivsufsort))
2707 (properties '((tunable? . #t)))
2708 (home-page "https://www.cs.helsinki.fi/group/pads/pSAscan.html")
2709 (synopsis "Parallel external memory suffix array construction")
2710 (description "This package contains an implementation of the parallel
2711external-memory suffix array construction algorithm called pSAscan. The
2712algorithm is based on the sequential external-memory suffix array construction
2713algorithm called SAscan.")
2714 ;; Code exhibits integer size mismatches when compiled on 32-bit systems.
2715 (supported-systems %64bit-supported-systems)
2716 (license license:expat)))
2717
2718(define-public cxxopts
2719 (package
2720 (name "cxxopts")
2721 (version "3.2.1")
2722 (source (origin
2723 (method git-fetch)
2724 (uri (git-reference
2725 (url "https://github.com/jarro2783/cxxopts")
2726 (commit (string-append "v" version))))
2727 (file-name (git-file-name name version))
2728 (sha256
2729 (base32
2730 "0cvpgp4p4nfwnivv0399hnm311xlrkwx0n5jnrw8aj7v1jipgqb8"))))
2731 (build-system cmake-build-system)
2732 (synopsis "Lightweight C++ command line option parser")
2733 (description
2734 "A lightweight header-only C++ option parser library, supporting the
2735standard GNU style syntax for options.")
2736 (home-page "https://github.com/jarro2783/cxxopts/wiki")
2737 (license license:expat)))
2738
2739(define-public folly
2740 (package
2741 (name "folly")
2742 (version "2025.11.10.00")
2743 (source (origin
2744 (method git-fetch)
2745 (uri (git-reference
2746 (url "https://github.com/facebook/folly")
2747 (commit (string-append "v" version))))
2748 (file-name (git-file-name name version))
2749 (sha256
2750 (base32
2751 "11gdrc2jhb9dzjgpq6h3p5453f8gyvv4ngsnrqi4rylfil8a3b3i"))))
2752 (build-system cmake-build-system)
2753 (arguments
2754 (list
2755 ;; Tests must be explicitly enabled
2756 ;;#:configure-flags #~(list "-DBUILD_TESTS=ON")
2757 ;; Leave tests disabled; see https://github.com/facebook/folly/issues/2246
2758 #:tests? #f))
2759 (propagated-inputs
2760 (list boost gflags glog liburing))
2761 (inputs
2762 (list bzip2
2763 double-conversion
2764 fast-float
2765 fmt
2766 libaio
2767 libevent
2768 libiberty
2769 libsodium
2770 libunwind
2771 lz4
2772 openssl
2773 snappy
2774 zlib
2775 `(,zstd "lib")))
2776 (native-inputs
2777 (list googletest))
2778 (synopsis "Collection of C++ components complementing the standard library")
2779 (description
2780 "Folly (acronymed loosely after Facebook Open Source Library) is a library
2781of C++14 components that complements @code{std} and Boost.")
2782 (home-page "https://github.com/facebook/folly/wiki")
2783 ;; 32-bit is not supported: https://github.com/facebook/folly/issues/103
2784 (supported-systems '("aarch64-linux" "x86_64-linux"))
2785 (license license:asl2.0)))
2786
2787(define-public poco
2788 (package
2789 (name "poco")
2790 (version "1.15.0")
2791 (source (origin
2792 (method git-fetch)
2793 (uri (git-reference
2794 (url "https://github.com/pocoproject/poco")
2795 (commit (string-append "poco-" version "-release"))))
2796 (file-name (git-file-name name version))
2797 (sha256
2798 (base32
2799 "0fzf46y7rga233nsg7d1jc6xa83i6qajxil6rak1z2z2bmhk5xa8"))))
2800 (build-system cmake-build-system)
2801 (arguments
2802 (list
2803 #:configure-flags #~(list "-DENABLE_TESTS=ON" "-DENABLE_CRYPTO=ON"
2804 "-DENABLE_NETSSL=ON")
2805 #:phases
2806 #~(modify-phases %standard-phases
2807 (add-before 'check 'check-setenv
2808 (lambda _
2809 (setenv "HOME" "/tmp")
2810 (setenv "TMPDIR" "/tmp")))
2811 (add-after 'unpack 'disable-problematic-tests
2812 (lambda _
2813 (substitute* (list "Foundation/CMakeLists.txt" ; XXX: fails.
2814 ;; Require network access.
2815 "Net/CMakeLists.txt"
2816 "MongoDB/CMakeLists.txt"
2817 "Redis/CMakeLists.txt"
2818 ;; Requires network access and uses certificates
2819 ;; that will expire.
2820 "NetSSL_OpenSSL/CMakeLists.txt")
2821 (("ENABLE_TESTS") "FALSE")))))))
2822 (inputs (list openssl))
2823 (home-page "https://pocoproject.org/")
2824 (synopsis "Portable C++ components")
2825 (description "This package provides a collection of C++ libraries intended
2826to be useful for building network-based applications.")
2827 (license license:boost1.0)))
2828
2829(define-public aws-crt-cpp
2830 (package
2831 (name "aws-crt-cpp")
2832 ;; Update only when updating aws-sdk-cpp, and when updating also update
2833 ;; versions of library dependencies linked from from
2834 ;; https://github.com/awslabs/aws-crt-cpp/tree/{aws-crt-cpp commit}/crt
2835 (version "0.32.3")
2836 (source (origin
2837 (method git-fetch)
2838 (uri (git-reference
2839 (url "https://github.com/awslabs/aws-crt-cpp")
2840 (commit (string-append "v" version))))
2841 (file-name (git-file-name name version))
2842 (sha256
2843 (base32
2844 "0hl62qngg3qcm4dykv89bm2sn5wn8p1ik0vb79d7djq3r1bblzks"))))
2845 (build-system cmake-build-system)
2846 (arguments
2847 '(#:configure-flags
2848 (list "-DBUILD_DEPS=OFF"
2849 "-DBUILD_SHARED_LIBS=ON"
2850 (string-append "-DCMAKE_PREFIX_PATH="
2851 (assoc-ref %build-inputs "aws-c-common"))
2852 "-DENABLE_NET_TESTS=OFF")))
2853 (propagated-inputs
2854 (list aws-c-auth
2855 aws-c-cal
2856 aws-c-event-stream
2857 aws-c-http
2858 aws-c-mqtt
2859 aws-c-s3))
2860 (synopsis "C++ wrapper for Amazon Web Services C libraries")
2861 (description "The AWS Common Runtime (CRT) library provides a C++ wrapper
2862implementation for the following @acronym{AWS,Amazon Web Services} C libraries:
2863aws-c-auth, aws-c-cal, aws-c-common, aws-c-compression, aws-c-event-stream,
2864aws-c-http, aws-c-io, aws-c-mqtt, aws-checksums, and s2n.")
2865 (home-page "https://github.com/awslabs/aws-crt-cpp")
2866 (license license:asl2.0)))
2867
2868(define-public aws-sdk-cpp
2869 (package
2870 (name "aws-sdk-cpp")
2871 ; When updating also check for a tagged update to aws-crt-cpp from
2872 ; https://github.com/aws/aws-sdk-cpp/tree/main/crt
2873 (version "1.11.541")
2874 (source (origin
2875 (method git-fetch)
2876 (uri (git-reference
2877 (url "https://github.com/aws/aws-sdk-cpp")
2878 (commit version)))
2879 (file-name (git-file-name name version))
2880 (sha256
2881 (base32
2882 "0lvsskwpniip1m75w00aqa3ic1337r2c6a6brvgs6ff2qqi27cdg"))))
2883 (build-system cmake-build-system)
2884 (arguments
2885 '(;; Tests are run during the build phase.
2886 #:tests? #f
2887 #:configure-flags
2888 (list "-DBUILD_DEPS=OFF"
2889 "-DBUILD_SHARED_LIBS=ON"
2890 (string-append "-DCMAKE_PREFIX_PATH="
2891 (assoc-ref %build-inputs "aws-c-common")))))
2892 (propagated-inputs
2893 (list aws-crt-cpp))
2894 (inputs
2895 (list curl pulseaudio zlib))
2896 (synopsis "Amazon Web Services SDK for C++")
2897 (description
2898 "The AWS SDK for C++ provides a C++11 interface to the @acronym{AWS,Amazon
2899Web Services} API. AWS provides on-demand computing infrastructure and software
2900services including database, analytic, and machine learning technologies.")
2901 (home-page "https://github.com/aws/aws-sdk-cpp")
2902 (license license:asl2.0)))
2903
2904(define-public libexpected
2905 (package
2906 (name "libexpected")
2907 (version "1.1.0")
2908 (source
2909 (origin
2910 (method git-fetch)
2911 (uri (git-reference
2912 (url "https://github.com/TartanLlama/expected")
2913 (commit (string-append "v" version))
2914 ;; NOTE: Requires TL_CMAKE from custom
2915 ;; repository. Should not affect reproducibility.
2916 (recursive? #t)))
2917 (file-name (git-file-name name version))
2918 (sha256
2919 (base32 "17akrv80h0n4cfmxwvlvbb8ycqza7y3qqygjyphv95rrabqm9r02"))
2920 (patches (search-patches "libexpected-use-provided-catch2.patch"))))
2921 (build-system cmake-build-system)
2922 (native-inputs
2923 (list catch2-2))
2924 (synopsis "C++11/14/17 std::expected with functional-style extensions")
2925 (description "@code{std::expected} is proposed as the preferred way to
2926represent objects which will either have an expected value, or an unexpected
2927value giving information about why something failed. Unfortunately, chaining
2928together many computations which may fail can be verbose, as error-checking
2929code will be mixed in with the actual programming logic. This implementation
2930provides a number of utilities to make coding with expected cleaner.")
2931 (home-page "https://tl.tartanllama.xyz/")
2932 (license license:cc0)))
2933
2934(define-public libfccp
2935 ;; Header-only library without any official release versions available.
2936 (let ((commit "4ade42d5f8c454c6c57b3dce9c51c6dd02182a66")
2937 (revision "0"))
2938 (package
2939 (name "libfccp")
2940 (version (git-version "0.0.0" revision commit))
2941 (source
2942 (origin
2943 (method git-fetch)
2944 (uri (git-reference
2945 (url "https://github.com/ben-strasser/fast-cpp-csv-parser")
2946 (commit commit)))
2947 (file-name (git-file-name name version))
2948 (sha256
2949 (base32 "1y7ads97gkrjg1jc532n8gmjry0qhqxginw1gq7b4lk9s0pyl540"))))
2950 (build-system copy-build-system)
2951 (arguments
2952 (list
2953 #:install-plan
2954 #~`(("csv.h" "include/libfccp/"))))
2955 (synopsis "Fast header-only library for reading CSV files")
2956 (description
2957 "This is a small, easy-to-use and fast header-only library for reading
2958comma separated value (CSV) files.")
2959 (home-page "https://github.com/ben-strasser/fast-cpp-csv-parser")
2960 (license license:bsd-3))))
2961
2962(define-public immer
2963 (package
2964 (name "immer")
2965 (version "0.9.1")
2966 (source (origin
2967 (method git-fetch)
2968 (uri (git-reference
2969 (url "https://github.com/arximboldi/immer")
2970 (commit (string-append "v" version))))
2971 (file-name (git-file-name name version))
2972 (sha256
2973 (base32 "04ckvmi391pspqiglzgi8h57gwr8822xhlrg5qdxf5yg6scgkfj2"))))
2974 (build-system cmake-build-system)
2975 (arguments
2976 (list
2977 #:modules `((guix build cmake-build-system)
2978 ((guix build gnu-build-system) #:prefix gnu:)
2979 (guix build utils))
2980 #:phases
2981 #~(modify-phases %standard-phases
2982 (replace 'check (assoc-ref gnu:%standard-phases 'check)))))
2983 (inputs (list boost libgc c-rrb))
2984 (native-inputs (list catch2-3.5 doctest fmt pkg-config))
2985 (home-page "https://sinusoid.es/immer")
2986 (synopsis "Immutable data structures")
2987 (description "Immer is a library of persistent and immutable data structures
2988written in C++.")
2989 (properties '((lint-hidden-cpe-vendors . ("immer_project"))))
2990 (license license:boost1.0)))
2991
2992(define-public zug
2993 (package
2994 (name "zug")
2995 (version "0.1.2")
2996 (source (origin
2997 (method git-fetch)
2998 (uri (git-reference
2999 (url "https://github.com/arximboldi/zug")
3000 (commit (string-append "v" version))))
3001 (file-name (git-file-name name version))
3002 (sha256
3003 (base32 "1fy6wvvlp1253lzh66zcq5sp656jxvanxf7iq8pi37ymjq5fyynh"))
3004 (modules '((guix build utils)))
3005 (snippet #~(delete-file-recursively "tools"))))
3006 (build-system cmake-build-system)
3007 (arguments
3008 (list
3009 #:modules `((guix build cmake-build-system)
3010 ((guix build gnu-build-system) #:prefix gnu:)
3011 (guix build utils))
3012 #:phases
3013 #~(modify-phases %standard-phases
3014 (replace 'check (assoc-ref gnu:%standard-phases 'check)))))
3015 (native-inputs (list boost catch2-2))
3016 (home-page "https://sinusoid.es/zug")
3017 (synopsis "Higher-order sequence transformers")
3018 (description "Zug is a C++ library providing transducers, that is,
3019composable sequential transformations.")
3020 (license license:boost1.0)))
3021
3022(define-public lager
3023 (package
3024 (name "lager")
3025 (version "0.1.3")
3026 (source (origin
3027 (method git-fetch)
3028 (uri (git-reference
3029 (url "https://github.com/arximboldi/lager")
3030 (commit (string-append "v" version))))
3031 (file-name (git-file-name name version))
3032 (sha256
3033 (base32 "123a75qklhiyic3yaj74h4p8jav2m92x9ssjnfsdiilhycp4p764"))))
3034 (build-system cmake-build-system)
3035 (arguments (list #:configure-flags #~(list "-Dlager_BUILD_EXAMPLES=no")
3036 #:modules `((guix build cmake-build-system)
3037 ((guix build gnu-build-system) #:prefix gnu:)
3038 (guix build utils))
3039 #:phases
3040 #~(modify-phases %standard-phases
3041 (add-after 'unpack 'delete-failing-tests
3042 (lambda _
3043 (delete-file-recursively "test/event_loop")))
3044 (replace 'check (assoc-ref gnu:%standard-phases 'check)))))
3045 (inputs (list boost-1.83 immer zug))
3046 (native-inputs (list catch2-2 cereal))
3047 (home-page "https://sinusoid.es/lager")
3048 (synopsis "Library for value-oriented design")
3049 (description "Lager is a library for value-oriented design implementing
3050the unidirectional data-flow architecture. Apart from a store and various
3051event loops it also provides lenses and cursors.")
3052 (license license:expat)))
3053
3054(define-public atomic-queue
3055 (package
3056 (name "atomic-queue")
3057 (version "1.6.5")
3058 (source (origin
3059 (method git-fetch)
3060 (uri (git-reference
3061 (url "https://github.com/max0x7ba/atomic_queue")
3062 (commit (string-append "v" version))))
3063 (file-name (git-file-name name version))
3064 (sha256
3065 (base32
3066 "1qr9wi017pb62cfga91prxgqjsz4y2jr8fyp4dvfccwr2pynwrnh"))))
3067 (build-system meson-build-system)
3068 (arguments
3069 `(#:configure-flags '("-Dbenchmarks=false")
3070 #:phases
3071 (modify-phases %standard-phases
3072 ,@(if (%current-target-system)
3073 `(;; boost is a test dependency. We don't run tests when
3074 ;; cross-compiling. Disable all targets that depend on it.
3075 (add-after 'unpack 'do-not-check-for-boost
3076 (lambda _
3077 (substitute* "meson.build"
3078 (("unit_test_framework = [^\n]*" all)
3079 "unit_test_framework = disabler()")))))
3080 '())
3081 (replace 'check
3082 (lambda* (#:key tests? #:allow-other-keys)
3083 (when tests?
3084 (invoke "./tests"))))
3085 (replace 'install
3086 (lambda* (#:key outputs #:allow-other-keys)
3087 (copy-recursively "../source/include/atomic_queue"
3088 (string-append (assoc-ref outputs "out")
3089 "/include/atomic_queue")))))))
3090 (native-inputs
3091 (list boost
3092 pkg-config))
3093 (home-page "https://github.com/max0x7ba/atomic_queue")
3094 (synopsis "C++ lockless queue")
3095 (description
3096 "This package contains a C++11 multiple-producer-multiple-consumer lockless
3097queues header library based on circular buffer with @code{std::atomic}.")
3098 (license license:expat)))
3099
3100(define-public magic-enum
3101 (package
3102 (name "magic-enum")
3103 (version "0.9.6")
3104 (home-page "https://github.com/Neargye/magic_enum")
3105 (source (origin
3106 (method git-fetch)
3107 (uri (git-reference
3108 (url home-page)
3109 (commit (string-append "v" version))))
3110 (file-name (git-file-name name version))
3111 (sha256
3112 (base32
3113 "15lxn4sjwygxyq4am3jbwl0m7lb0fw8w39fghgm7a8klcwavv4yn"))))
3114 (build-system cmake-build-system)
3115 (synopsis "C++17 header only library for compile time reflection of enums")
3116 (description "Magic Enum offers static reflection of enums, with
3117conversions to and from strings, iteration and related functionality.")
3118 (license license:expat)))
3119
3120(define-public mcpp
3121 (package
3122 (name "mcpp")
3123 (version "2.7.2")
3124 (source (origin
3125 (method url-fetch)
3126 (uri (string-append "mirror://sourceforge/mcpp/mcpp/"
3127 "V." version "/mcpp-" version ".tar.gz"))
3128 (sha256
3129 (base32
3130 "0r48rfghjm90pkdyr4khxg783g9v98rdx2n69xn8f6c5i0hl96rv"))))
3131 (build-system gnu-build-system)
3132 (arguments
3133 (list #:configure-flags
3134 #~(list "--enable-mcpplib"
3135 "--disable-static"
3136 (string-append "CFLAGS=-g -O2"
3137 " -Wno-error=incompatible-pointer-types"
3138 " -Wno-error=implicit-function-declaration"))))
3139 (home-page "https://mcpp.sourceforge.net/")
3140 (synopsis "C/C++ preprocessor")
3141 (description
3142 "@code{mcpp} is Matsui's CPP implementation precisely conformed to
3143standards.")
3144 (license license:bsd-2)))
3145
3146(define-public cli11
3147 (package
3148 (name "cli11")
3149 (version "2.4.2")
3150 (source
3151 (origin
3152 (method git-fetch)
3153 (uri (git-reference
3154 (url "https://github.com/CLIUtils/CLI11")
3155 (commit (string-append "v" version))))
3156 (file-name (git-file-name name version))
3157 (sha256
3158 (base32 "1kxggvgbdjx73rx9d91dm9imzcacf5jjfnjn2vaq6h6lvwlcdf04"))))
3159 (build-system cmake-build-system)
3160 (arguments
3161 (list #:configure-flags
3162 #~(list "-DCLI11_SINGLE_FILE=OFF"
3163 "-DCLI11_BUILD_EXAMPLES=OFF")))
3164 (native-inputs
3165 (list catch2-2 doxygen googletest))
3166 (synopsis "Command line parser for C++11")
3167 (description
3168 "CLI11 is a command line parser for C++11 and beyond that provides a rich
3169feature set with a simple and intuitive interface.")
3170 (home-page "https://cliutils.github.io/CLI11/book/")
3171 (license license:bsd-3)))
3172
3173(define-public caf
3174 (package
3175 (name "caf")
3176 (version "1.0.2")
3177 (source (origin
3178 (method git-fetch)
3179 (uri (git-reference
3180 (url "https://github.com/actor-framework/actor-framework")
3181 (commit version)))
3182 (file-name (git-file-name name version))
3183 (sha256
3184 (base32
3185 "1za7yja76csa0jnvkyavg2hc5zcc00za46c4x2fq42skh1apqcnl"))))
3186 (build-system cmake-build-system)
3187 (arguments
3188 (list #:configure-flags
3189 #~(list "-DCAF_ENABLE_EXAMPLES=OFF")))
3190 (inputs
3191 (list openssl))
3192 (synopsis "C++ implementation of the actor model")
3193 (description "The C++ Actor Framework (CAF) offers a high-level C++17
3194programming environment using the actor model for concurrent, distributed
3195computation.")
3196 (home-page "https://www.actor-framework.org/")
3197 (license license:bsd-3)))
3198
3199(define-public clipper
3200 (package
3201 (name "clipper")
3202 (version "6.4.2")
3203 (source
3204 (origin
3205 (method url-fetch)
3206 (uri (string-append "mirror://sourceforge/polyclipping"
3207 "/clipper_ver" version ".zip"))
3208 (sha256
3209 (base32 "09q6jc5k7p9y5d75qr2na5d1gm0wly5cjnffh127r04l47c20hx1"))))
3210 (build-system cmake-build-system)
3211 (arguments
3212 `(#:tests? #f ;no check target
3213 #:phases (modify-phases %standard-phases
3214 (replace 'unpack
3215 (lambda* (#:key source #:allow-other-keys)
3216 (and (invoke "unzip" source)
3217 (chdir "cpp")))))))
3218 (native-inputs
3219 `(("unzip" ,unzip)))
3220 (home-page "https://sourceforge.net/projects/polyclipping")
3221 (synopsis "Polygon and line clipping and offsetting library")
3222 (description
3223 "The Clipper library performs line & polygon clipping - intersection,
3224union, difference & exclusive-or, and line & polygon offsetting.
3225The library is based on Vatti's clipping algorithm.")
3226 (license license:boost1.0)))
3227
3228(define-public clipper2
3229 (package
3230 (inherit clipper)
3231 (name "clipper2")
3232 (version "1.5.2")
3233 (source
3234 (origin
3235 (method git-fetch)
3236 (uri (git-reference
3237 (url "https://github.com/AngusJohnson/Clipper2")
3238 (commit (string-append "Clipper2_" version))))
3239 (file-name (git-file-name name version))
3240 (sha256
3241 (base32 "1w8cmx712k45cb8gh9dakmbmybiwdx8c0b45mwpcldywx2lwxi2j"))
3242 (modules '((guix build utils)))
3243 (snippet #~(for-each
3244 delete-file-recursively
3245 '("CSharp" "DLL" "Delphi")))))
3246 (build-system cmake-build-system)
3247 (arguments
3248 (list
3249 #:configure-flags
3250 #~(list "-DUSE_EXTERNAL_GTEST=ON"
3251 "-DCLIPPER2_EXAMPLES=OFF")
3252 #:phases #~(modify-phases %standard-phases
3253 (add-after 'unpack 'chdir
3254 (lambda _
3255 (chdir "CPP"))))))
3256 (native-inputs (list googletest))
3257 (home-page "https://github.com/AngusJohnson/Clipper2")
3258 (description
3259 (string-append (package-description clipper) "\
3260Note: This package is a major update of the original clipper library."))))
3261
3262(define-public pcg-cpp
3263 (let ((commit "428802d1a5634f96bcd0705fab379ff0113bcf13")
3264 (revision "3"))
3265 (package
3266 (name "pcg-cpp")
3267 (version (git-version "0.98.1" revision commit))
3268 (source (origin
3269 (method git-fetch)
3270 (uri (git-reference
3271 (url "https://github.com/imneme/pcg-cpp")
3272 (commit commit)))
3273 (file-name (git-file-name name version))
3274 (sha256
3275 (base32
3276 "0w4xb52b6glldkz1wnjc4r4m750m59yxp8jky71j3l4pvfbbj2m5"))))
3277 (build-system gnu-build-system)
3278 (arguments
3279 `(#:test-target "test"
3280 #:phases
3281 (modify-phases %standard-phases
3282 (delete 'configure))
3283 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
3284 (synopsis "C++11 header only library for random number generation")
3285 (description "The Permuted Congruential Generator (PCG) extends the
3286Linear Congruential Generator (LCG) with a permutation function to increase
3287output randomness while retaining speed, simplicity, and conciseness.")
3288 (home-page "https://www.pcg-random.org")
3289 (license (list license:expat license:asl2.0))))) ; dual licensed
3290
3291(define-public libconfini
3292 (package
3293 (name "libconfini")
3294 (version "1.16.4")
3295 (source (origin
3296 (method git-fetch)
3297 (uri (git-reference
3298 (url "https://github.com/madmurphy/libconfini")
3299 (commit version)))
3300 (file-name (git-file-name name version))
3301 (sha256
3302 (base32
3303 "002lmf1b2phmc6s348k00yx5shrcc7psn3pgqvraxvr6n8g747jx"))))
3304 (build-system gnu-build-system)
3305 (arguments
3306 `(#:configure-flags
3307 (list "--disable-static")
3308 #:phases
3309 (modify-phases %standard-phases
3310 (replace 'bootstrap
3311 (lambda _ (invoke "sh" "bootstrap" "--noconfigure"))))))
3312 (native-inputs
3313 (list autoconf automake libtool))
3314 (home-page "https://madmurphy.github.io/libconfini/html/index.html")
3315 (synopsis "INI file parser")
3316 (description "@code{libconfini} is an INI file parser library written in
3317C. It focuses on standardization and parsing exactness and is at ease with
3318almost every type of file containing key/value pairs.")
3319 (license license:gpl3+)))
3320
3321(define-public libcppgenerate
3322 ;; dbus-cxx requires an unreleased fix.
3323 (let ((commit "930c5503f76c877b72b9ff8546353d6f422bd010")
3324 (revision "0"))
3325 (package
3326 (name "libcppgenerate")
3327 (version (git-version "0.2" revision commit))
3328 (source (origin
3329 (method git-fetch)
3330 (uri (git-reference
3331 (url "https://github.com/rm5248/libcppgenerate")
3332 (commit commit)))
3333 (file-name (git-file-name name version))
3334 (sha256
3335 (base32
3336 "0csdg9b406i85aqgivjmvqjdnqbyiyjh3s0xsfsxppv7wlh7j85r"))))
3337 (build-system cmake-build-system)
3338 (arguments (list #:configure-flags #~'("-DENABLE_TESTS=ON")))
3339 (home-page "https://github.com/rm5248/libcppgenerate")
3340 (synopsis "C++ code generator library for C++")
3341 (description "@code{libcppgenerate} is a library for generating C++ code
3342from C++.")
3343 (license license:asl2.0))))
3344
3345(define-public libcutl
3346 (package
3347 (name "libcutl")
3348 (version "1.10.0")
3349 (source (origin
3350 (method url-fetch)
3351 (uri (string-append
3352 "https://www.codesynthesis.com/download/libcutl/"
3353 (version-major+minor version)
3354 "/libcutl-" version ".tar.bz2"))
3355 (sha256
3356 (base32
3357 "070j2x02m4gm1fn7gnymrkbdxflgzxwl7m96aryv8wp3f3366l8j"))
3358 (modules '((guix build utils)))
3359 (snippet
3360 '(begin
3361 ;; Remove bundled sources.
3362 (with-directory-excursion "cutl/details"
3363 (for-each delete-file-recursively
3364 ;; FIXME: Boost_RegEx isn't being detected.
3365 (list
3366 ;;"boost"
3367 "expat")))))))
3368 (build-system gnu-build-system)
3369 (arguments
3370 `(#:configure-flags (list "--disable-static"
3371 ;;"--with-external-boost"
3372 "--with-external-expat")
3373 #:make-flags (list "CXXFLAGS=-std=c++11 -O2 -g")))
3374 (inputs
3375 (list ;;("boost ,boost)
3376 expat))
3377 (home-page "https://www.codesynthesis.com/projects/libcutl/")
3378 (synopsis "C++ utility library with generic and independent components")
3379 (description "libcutl is a C++ utility library. It contains a collection
3380of generic and independent components such as meta-programming tests, smart
3381pointers, containers, compiler building blocks, etc.")
3382 (license (list license:expat ;everything except...
3383 license:boost1.0)))) ;...the files under cutl/details/boost
3384
3385(define-public libxsd-frontend
3386 (package
3387 (name "libxsd-frontend")
3388 (version "2.0.0")
3389 (source
3390 (origin
3391 (method url-fetch)
3392 (uri (string-append "https://www.codesynthesis.com/download/"
3393 "libxsd-frontend/" (version-major+minor version)
3394 "/libxsd-frontend-" version ".tar.bz2"))
3395 (sha256
3396 (base32 "1nmzchsvwvn66jpmcx18anzyl1a3l309x1ld4zllrg37ijc31fim"))))
3397 (build-system gnu-build-system)
3398 (arguments
3399 `(#:test-target "test"
3400 #:imported-modules ((guix build copy-build-system)
3401 ,@%default-gnu-imported-modules)
3402 #:modules (((guix build copy-build-system) #:prefix copy:)
3403 (guix build gnu-build-system)
3404 (guix build utils))
3405 #:make-flags (list (string-append "--include-dir="
3406 (assoc-ref %build-inputs "build")
3407 "/include/")
3408 "cxx_options=-std=c++11 -O2 -g")
3409 #:phases
3410 (modify-phases %standard-phases
3411 (delete 'configure)
3412 (replace 'install
3413 (lambda args
3414 (apply (assoc-ref copy:%standard-phases 'install)
3415 #:install-plan
3416 '(("xsd-frontend" "include/xsd-frontend"
3417 #:include-regexp ("\\.?xx$"))
3418 ("xsd-frontend" "lib"
3419 #:include-regexp ("\\.so$")))
3420 args))))))
3421 (native-inputs
3422 (list build))
3423 (inputs
3424 (list libcutl xerces-c))
3425 (synopsis "XSD Front-end")
3426 (description "@code{libxsd-frontend} is a compiler frontend for the W3C
3427XML Schema definition language. It includes a parser, semantic graph types
3428and a traversal mechanism.")
3429 (home-page "https://www.codesynthesis.com/projects/libxsd-frontend/")
3430 (license license:gpl2+)))
3431
3432(define-public cli
3433 (package
3434 (name "cli")
3435 (version "1.1.0")
3436 (source
3437 (origin
3438 (method url-fetch)
3439 (uri (string-append "https://www.codesynthesis.com/download/"
3440 "cli/" (version-major+minor version)
3441 "/cli-" version ".tar.bz2"))
3442 (sha256
3443 (base32 "0bg0nsai2q4h3mldpnj0jz4iy4svs0bcfvmq0v0c9cdyknny606g"))))
3444 (build-system gnu-build-system)
3445 (arguments
3446 `(#:test-target "test"
3447 #:make-flags (list (string-append "--include-dir="
3448 (assoc-ref %build-inputs "build")
3449 "/include")
3450 (string-append "install_prefix="
3451 (assoc-ref %outputs "out"))
3452 "cxx_options=-std=c++11 -O2 -g")
3453 #:phases
3454 (modify-phases %standard-phases
3455 (add-after 'unpack 'patch
3456 (lambda _
3457 (substitute* (find-files "." "\\.make$")
3458 (("build-0\\.3")
3459 (string-append (assoc-ref %build-inputs "build")
3460 "/include/build-0.3")))
3461 ;; Add the namespace prefix, to avoid errors such as "error:
3462 ;; ‘iterate_and_dispatch’ was not declared in this scope".
3463 (substitute* (find-files "." "\\.?xx$")
3464 (("add \\(typeid \\(type\\), \\*this\\);" all)
3465 (string-append "traverser_map<B>::" all))
3466 (("iterate_and_dispatch \\(s\\.names_begin.*;" all)
3467 (string-append "edge_dispatcher::" all)))))
3468 (delete 'configure))))
3469 (native-inputs
3470 (list build))
3471 (inputs
3472 (list libcutl))
3473 (synopsis "C++ Command Line Interface (CLI) definition language")
3474 (description "@code{cli} is a domain-specific language (DSL) for defining
3475command line interfaces of C++ programs. It allows you to describe the
3476options that your program supports, their types, default values, and
3477documentation.")
3478 (home-page "https://codesynthesis.com/projects/cli/")
3479 (properties `((lint-hidden-cpe-vendors . ("github" "snyk"))))
3480 (license license:expat)))
3481
3482(define-public xsd
3483 (package
3484 (name "xsd")
3485 (version "4.0.0")
3486 (source
3487 (origin
3488 (method url-fetch)
3489 (uri (string-append "https://www.codesynthesis.com/download/"
3490 "xsd/" (version-major+minor version)
3491 "/xsd-" version ".tar.bz2"))
3492 (sha256
3493 (base32 "1hi9ppxd34np8ydv1h0vgc2qpdmgcd1cdzgk30aidv670xjg91fx"))))
3494 (build-system gnu-build-system)
3495 (outputs '("out" "doc")) ;3.8 MiB of doc and examples
3496 (arguments
3497 `(#:test-target "test"
3498 #:make-flags (list (string-append "--include-dir="
3499 (assoc-ref %build-inputs "build")
3500 "/include/")
3501 (string-append "install_prefix="
3502 (assoc-ref %outputs "out"))
3503 "cxx_options=-std=c++11 -O2 -g")
3504 #:phases (modify-phases %standard-phases
3505 (add-after 'install 'move-doc
3506 (lambda* (#:key outputs #:allow-other-keys)
3507 (let ((out (assoc-ref outputs "out"))
3508 (doc (assoc-ref outputs "doc")))
3509 (mkdir-p (string-append doc "/share/doc"))
3510 (rename-file (string-append out "/share/doc/xsd")
3511 (string-append doc "/share/doc/xsd-"
3512 ,version)))))
3513 (delete 'configure))))
3514 (native-inputs
3515 (list build cli))
3516 (inputs
3517 (list libcutl libnsl libxsd-frontend))
3518 (propagated-inputs
3519 ;; The code XSD generates requires the following library at run time;
3520 ;; propagate it for convenience.
3521 (list xerces-c))
3522 (synopsis "XML Data Binding for C++")
3523 (description "CodeSynthesis XSD (also known as libxsd or xsdcxx) is an XML
3524Schema to C++ data binding compiler. Provided with an XML instance
3525specification (XML Schema), it generates C++ classes that represent the given
3526vocabulary as well as XML parsing and serialization code. The data stored in
3527XML can then be accessed using types and functions that semantically
3528correspond to an application domain rather than dealing with the intricacies
3529of reading and writing XML.")
3530 (home-page "https://codesynthesis.com/projects/xsd/")
3531 ;; Exceptions are made to allow using the generated source files as well
3532 ;; as the libxsd library in free software projects whose license is
3533 ;; incompatible with the GPL v2. Refer to the file named FLOSSE for the
3534 ;; details.
3535 (license license:gpl2+)))
3536
3537(define-public jsonnet
3538 (package
3539 (name "jsonnet")
3540 (version "0.17.0")
3541 (source
3542 (origin
3543 (method git-fetch)
3544 (uri (git-reference
3545 (url "https://github.com/google/jsonnet")
3546 (commit (string-append "v" version))))
3547 (file-name (git-file-name name version))
3548 (sha256
3549 (base32 "1ddz14699v5lqx3dh0mb7hfffr6fk5zhmzn3z8yxkqqvriqnciim"))
3550 (modules '((guix build utils)))
3551 (patches (search-patches "jsonnet-include-cstdint-for-gcc-13-builds.patch"))
3552 (snippet
3553 #~(begin
3554 (rename-file "third_party/md5" ".md5")
3555 (delete-file-recursively "third_party")
3556 (delete-file-recursively "doc/third_party")
3557 (substitute* '("core/vm.cpp")
3558 (("#include \"json.hpp\"") "#include <nlohmann/json.hpp>"))
3559 (mkdir "third_party")
3560 (rename-file ".md5" "third_party/md5")))))
3561 (build-system cmake-build-system)
3562 (arguments
3563 `(#:configure-flags '("-DUSE_SYSTEM_GTEST=ON" "-DUSE_SYSTEM_JSON=ON"
3564 "-DBUILD_STATIC_LIBS=OFF")))
3565 (native-inputs
3566 (list googletest pkg-config))
3567 (inputs
3568 (list nlohmann-json))
3569 (home-page "https://jsonnet.org/")
3570 (synopsis "Data templating language")
3571 (description "Jsonnet is a templating language extending JSON
3572syntax with variables, conditions, functions and more.")
3573 (license license:asl2.0)))
3574
3575(define-public python-jsonnet
3576 (package
3577 (inherit jsonnet)
3578 (name "python-jsonnet")
3579 (build-system pyproject-build-system)
3580 (arguments
3581 (list #:test-flags #~(list "--ignore=case_studies/")))
3582 (native-inputs (modify-inputs native-inputs
3583 (append python-pyyaml python-pytest python-setuptools)))
3584 (synopsis "Python bindings for Jsonnet, the data templating language")
3585 (description "This package provides a Python library named @code{_jsonnet}
3586which can evaluate Jsonnet files and expressions.")))
3587
3588(define-public simdjson
3589 (package
3590 (name "simdjson")
3591 (version "4.6.3")
3592 (source (origin
3593 (method git-fetch)
3594 (uri (git-reference
3595 (url "https://github.com/simdjson/simdjson")
3596 (commit (string-append "v" version))))
3597 (file-name (git-file-name name version))
3598 (sha256
3599 (base32
3600 "0729mxnc2wjb94gr4znwlzfmgw5w2v9kd8glvn3vnjhkdnd87zry"))))
3601 (build-system cmake-build-system)
3602 (arguments
3603 '(#:tests? #f ; tests require downloading dependencies
3604 #:configure-flags
3605 '("-DBUILD_SHARED_LIBS=ON")))
3606 (synopsis "JSON parser for C++ using SIMD instructions")
3607 (description
3608 "The simdjson library uses commonly available SIMD instructions and
3609microparallel algorithms to implement a strict JSON parser with UTF-8
3610validation.")
3611 (home-page "https://github.com/simdjson/simdjson")
3612 (license license:asl2.0)))
3613
3614(define-public bloomberg-bde-tools
3615 (package
3616 (name "bloomberg-bde-tools")
3617 (version "4.27.0.0")
3618 (source (origin
3619 (method git-fetch)
3620 (uri (git-reference
3621 (url "https://github.com/bloomberg/bde-tools")
3622 (commit version)))
3623 (file-name (git-file-name name version))
3624 (sha256
3625 (base32
3626 "0zkf6vdvzp73h6bai6kmd062k0wyqwrrdv2z9m416kgxr6qickl2"))
3627 (patches
3628 (search-patches
3629 "bloomberg-bde-tools-fix-install-path.patch"))))
3630 (build-system copy-build-system)
3631 ;; Unable to be an inline dependency of bloomberg-bde due to patch.
3632 (properties '((hidden? . #t)))
3633 (synopsis "Tools for developing and building libraries modeled on BDE")
3634 (description
3635 "This package provides the cmake imports needed to build bloomberg-bde.")
3636 (home-page "https://github.com/bloomberg/bde-tools")
3637 (license license:asl2.0)))
3638
3639(define-public bloomberg-bde
3640 (package
3641 (name "bloomberg-bde")
3642 (version "4.27.0.0")
3643 (source (origin
3644 (method git-fetch)
3645 (uri (git-reference
3646 (url "https://github.com/bloomberg/bde")
3647 (commit version)))
3648 (file-name (git-file-name name version))
3649 (sha256
3650 (base32
3651 "17315r9j20pvv4ccnd59m85miq96hp07pysfr64glb7r4f4zjkfs"))
3652 ;;(modules '((guix build utils)))
3653 (snippet
3654 `(begin
3655 ;; FIXME: Delete bundled software. The third-party packages
3656 ;; may be patched or modified from upstream sources.
3657 ;;(for-each delete-file-recursively
3658 ;; (list "thirdparty"))
3659 ))))
3660 (build-system cmake-build-system)
3661 (arguments
3662 (list
3663 ;; Set UFID to build shared libraries. Flag descriptions can be found at
3664 ;; https://bloomberg.github.io/bde-tools/bbs/reference/bbs_build_configuration.html#ufid
3665 #:configure-flags #~(list "-DUFID=opt_dbg_exc_mt_64_shr_cpp20")
3666 #:test-exclude (string-join (list "balcl_commandline.t"
3667 "balst_stacktraceprintutil.t"
3668 "bslalg_numericformatterutil.t"
3669 "bslh_hash.t"
3670 "bslstl_deque.0[1345].t"
3671 "bslstl_queue.t"
3672 "bslstl_stack.t"
3673 "bslstl_string_test.t")
3674 "|")
3675 #:modules '((guix build cmake-build-system)
3676 ((guix build gnu-build-system) #:prefix gnu:)
3677 (guix build utils))
3678 #:phases
3679 #~(modify-phases %standard-phases
3680 ;; Explicitly build tests after the main build.
3681 (add-after 'build 'build-tests
3682 (lambda* (#:key make-flags #:allow-other-keys #:rest args)
3683 (apply (assoc-ref gnu:%standard-phases 'build)
3684 (list #:make-flags (list "all.t"))))))))
3685 (native-inputs
3686 (list bloomberg-bde-tools pkg-config python))
3687 (synopsis "Foundational C++ libraries used at Bloomberg")
3688 (description
3689 "The BDE Development Environment libraries provide an enhanced
3690implementation of STL containers, vocabulary types for representing common
3691concepts (like dates and times), and building blocks for developing
3692multi-threaded applications and network applications.")
3693 (home-page "https://github.com/bloomberg/bde")
3694 ;; Out-of-memory on i686-linux, compile errors with non-x86.
3695 (supported-systems '("x86_64-linux"))
3696 (license license:asl2.0)))
3697
3698(define-public gulrak-filesystem
3699 (package
3700 (name "gulrak-filesystem")
3701 (version "1.5.12")
3702 (source (origin
3703 (method git-fetch)
3704 (uri (git-reference
3705 (url "https://github.com/gulrak/filesystem")
3706 (commit (string-append "v" version))))
3707 (file-name (git-file-name name version))
3708 (sha256
3709 (base32
3710 "1qg10akvhp801xirkj4mqcpvcxj90z81ygpyg752xv110zj4914g"))))
3711 (build-system cmake-build-system)
3712 (synopsis "Header only C++ std::filesystem compatible library")
3713 (description "This package provides a header-only single-file
3714std::filesystem compatible helper library, based on the C++17 and C++20 specs,
3715but implemented for C++11, C++14, C++17 or C++20.")
3716 (home-page "https://github.com/gulrak/filesystem")
3717 (license license:expat)))
3718
3719(define-public bitsery
3720 (package
3721 (name "bitsery")
3722 (version "5.2.4")
3723 (source (origin
3724 (method git-fetch)
3725 (uri (git-reference
3726 (url "https://github.com/fraillt/bitsery")
3727 (commit (string-append "v" version))))
3728 (file-name (git-file-name name version))
3729 (sha256
3730 (base32
3731 "0s628p6qayajan4v8arsmbvzsml8zhc56k01zhmnlakbl7v0vwip"))))
3732 (build-system cmake-build-system)
3733 (arguments
3734 (list #:configure-flags
3735 #~(list "-DBITSERY_BUILD_TESTS=ON"
3736 "-DCMAKE_CXX_FLAGS=-Wno-error=maybe-uninitialized")))
3737 (native-inputs (list googletest))
3738 (synopsis "Header only C++ binary serialization library")
3739 (description "This package provides header only C++ binary serialization
3740library. It is designed around the networking requirements for real-time data
3741delivery, especially for games.")
3742 (home-page "https://github.com/fraillt/bitsery")
3743 (license license:expat)))
3744
3745(define-public function2
3746 (package
3747 (name "function2")
3748 (version "4.2.5")
3749 (source (origin
3750 (method git-fetch)
3751 (uri (git-reference
3752 (url "https://github.com/Naios/function2")
3753 (commit version)))
3754 (file-name (git-file-name name version))
3755 (sha256
3756 (base32
3757 "0sn760zk79hfbf21v9qvf67mrrlnmw6a2rhrp5l440b6f4f3xbzr"))
3758 (modules '((guix build utils)))
3759 (snippet
3760 ;; Unbundle googletest.
3761 '(begin
3762 (delete-file-recursively "test")
3763 (substitute* "CMakeLists.txt"
3764 (("add_subdirectory\\(test\\)") ""))))))
3765 (build-system cmake-build-system)
3766 ;; The test size_match_layout fails on i586/i686. For more info:
3767 ;; https://github.com/Naios/function2/issues/57
3768 (arguments
3769 (list #:tests? #f))
3770 (synopsis "Improved implementations of std::function")
3771 (description "This package provides the following implementations of
3772std::function:
3773@itemize
3774@item copyable @code{fu2::function}
3775@item move-only @code{fu2::unique_function} (capable of holding move only
3776 types)
3777@item non-owning @code{fu2::function_view} (capable of referencing callables in
3778 a non owning way)
3779@end itemize")
3780 (home-page "https://naios.github.io/function2/")
3781 (license license:boost1.0)))
3782
3783(define-public cpp-mustache
3784 (package
3785 (name "cpp-mustache")
3786 (version "5.0")
3787 (source (origin
3788 (method git-fetch)
3789 (uri (git-reference
3790 (url "https://github.com/kainjow/Mustache")
3791 (commit "4ed8c0b5a2a43d59394bd6900dc04e738dbf8c02")))
3792 (file-name (git-file-name name version))
3793 (sha256
3794 (base32
3795 "0qwrg35gby851viwd6dgrc346712701a0gll8a0m4xs8invxavrh"))))
3796 (build-system cmake-build-system)
3797 (arguments
3798 (list #:configure-flags
3799 #~(list
3800 (string-append "-DCMAKE_CXX_FLAGS=-I"
3801 #$(this-package-native-input "catch2")
3802 "/include/catch2/"))
3803 #:phases
3804 #~(modify-phases %standard-phases
3805 (replace 'check
3806 (lambda* (#:key tests? #:allow-other-keys)
3807 (when tests?
3808 (invoke "./tests/mustache-unit-tests"))))
3809 (replace 'install
3810 (lambda* (#:key outputs #:allow-other-keys)
3811 (install-file "../source/mustache.hpp"
3812 (string-append (assoc-ref outputs "out")
3813 "/include")))))))
3814 (native-inputs (list catch2-2))
3815 (home-page "https://github.com/kainjow/Mustache")
3816 (synopsis "Mustache text templates for modern C++")
3817 (description "@code{cpp-mustache} is a Mustache implementation for C++ 11
3818and above. It is header only and has zero dependencies. It provides a
3819templated string type for compatibility with any STL-like string (std::string,
3820std::wstring, etc).")
3821 (license license:boost1.0)))
3822
3823(define fast-float-test-files
3824 (let ((name "fast-float-test-files")
3825 (version "1.0.0"))
3826 (origin
3827 (method git-fetch)
3828 (uri (git-reference
3829 (url "https://github.com/fastfloat/supplemental_test_files")
3830 (commit version)))
3831 (file-name (git-file-name name version))
3832 (sha256
3833 (base32
3834 "0z0z7qy3pxv6bhg2apvs8gp3mnixbxk92a9f7vby01p26zq1lnwl")))))
3835
3836(define-public fast-float
3837 (package
3838 (name "fast-float")
3839 (version "8.2.5")
3840 (source (origin
3841 (method git-fetch)
3842 (uri (git-reference
3843 (url "https://github.com/fastfloat/fast_float")
3844 (commit (string-append "v" version))))
3845 (file-name (git-file-name name version))
3846 (sha256
3847 (base32
3848 "1l13nsl4sgq71m7aifrmmmfyl14vp48vqdh7pb50hxqq6f8bq2b5"))))
3849 (build-system cmake-build-system)
3850 (arguments
3851 (list
3852 #:configure-flags #~(list "-DFASTFLOAT_TEST=ON"
3853 "-DSYSTEM_DOCTEST=ON")
3854 #:phases
3855 #~(modify-phases %standard-phases
3856 (add-after 'unpack 'patch-cmake-tests
3857 (lambda* (#:key inputs native-inputs #:allow-other-keys)
3858 (substitute* "tests/CMakeLists.txt"
3859 (("FetchContent_MakeAvailable\\(supplemental_test_files.*")
3860 (string-append
3861 "set(supplemental_test_files_BINARY_DIR "
3862 #$fast-float-test-files ")\n"))))))))
3863 (native-inputs (list doctest fast-float-test-files))
3864 (home-page "https://github.com/fastfloat/fast_float")
3865 (synopsis "Floating point number parser for C++")
3866 (description "@code{fast_float} is a header-only C++ library for parsing
3867floating point numbers from strings. It implements the C++ from_chars
3868functions for the float and double types.")
3869 (license (list license:asl2.0 license:boost1.0 license:expat)))) ; triple licensed
3870
3871(define-public pocketfft-cpp
3872 (let ((commit "daa8bb18327bc5c7d22c69428c25cf5dc64167d3")
3873 (revision "0"))
3874 (package
3875 (name "pocketfft-cpp")
3876 (version (git-version "0" revision commit))
3877 (source (origin
3878 (method git-fetch)
3879 (uri (git-reference
3880 (url "https://github.com/mreineck/pocketfft")
3881 (commit commit)))
3882 (file-name (git-file-name name version))
3883 (sha256
3884 (base32
3885 "1dbkkqkmkxgmz1qjpsqzic5ig3qw1pqndbb3dvjc7xq5f2rdzyq1"))
3886 (patches (search-patches
3887 "pocketfft-cpp-prefer-preprocessor-if.patch"))))
3888 (build-system copy-build-system)
3889 (arguments
3890 (list
3891 #:install-plan #~'(("pocketfft_hdronly.h" "include/"))))
3892 (home-page "https://github.com/mreineck/pocketfft")
3893 (synopsis "C++11 header-only Fast Fourier Transform library")
3894 (description "This package provides a single-header C++11 library for
3895computing Fast Fourier transformations. It supports multidimensional arrays,
3896different floating point sizes and complex transformations.")
3897 (license license:bsd-3))))
3898
3899(define-public libbinio
3900 ;; The latest tagged version does not support CMake build. This commit has
3901 ;; builds with CMake and has updated CMake version support.
3902 (let ((commit "e88dad086265e179ab6aef7f479e19f3917c7a98")
3903 (revision "0"))
3904 (package
3905 (name "libbinio")
3906 (version (git-version "1.5" revision commit))
3907 (source (origin
3908 (method git-fetch)
3909 (uri (git-reference
3910 (url "https://github.com/adplug/libbinio")
3911 (commit commit)))
3912 (file-name (git-file-name name version))
3913 (sha256
3914 (base32
3915 "0rb33jl6gpxb88zymzl996m43b7r6wyw4lq0ib3626kna3baqnha"))))
3916 (native-inputs
3917 (list autoconf automake libtool texinfo))
3918 (build-system cmake-build-system)
3919 (arguments
3920 (list #:tests? #f ;no tests
3921 #:configure-flags
3922 #~(list "-DBUILD_SHARED_LIBS=ON")))
3923 (home-page "http://adplug.github.io/libbinio/")
3924 (synopsis "Binary I/O stream class library")
3925 (description
3926 "This binary I/O stream class library presents a platform-independent
3927way to access binary data streams in C++. The library is hardware independent
3928in the form that it transparently converts between the different forms of
3929machine-internal binary data representation.")
3930 (license license:lgpl2.1+))))
3931
3932(define-public priocpp
3933 ;; Latest release is from 2022-08-14.
3934 (let ((commit "ea15402adcd0d9191dc29ca6f7e4dd0bff67b9b5")
3935 (revision "1"))
3936 (package
3937 (name "priocpp")
3938 (version (git-version "0.0.0" revision commit))
3939 (source
3940 (origin
3941 (method git-fetch)
3942 (uri (git-reference
3943 (url "https://github.com/Grumbel/priocpp")
3944 (commit commit)))
3945 (file-name (git-file-name name version))
3946 (sha256
3947 (base32 "0x4cgivaprj5c74yyyzny5dsg288w9y8sf21h79sl9r303ins867"))))
3948 (build-system cmake-build-system)
3949 (arguments
3950 (list
3951 #:configure-flags
3952 #~(list "-DBUILD_TESTS=ON")))
3953 (inputs (list fmt-10 logmich))
3954 (native-inputs (list googletest pkg-config tinycmmc))
3955 ;; TODO: cmake-built dependents currently require propagation -- why?
3956 (propagated-inputs (list jsoncpp sexp-cpp))
3957 (home-page "https://github.com/Grumbel/priocpp")
3958 (synopsis "Property input/output for C++")
3959 (description
3960 "This package provides simple property input/output utilities for C++.")
3961 (license license:gpl3+))))
3962
3963(define-public sajson
3964 (let ((commit "ec644013e34f9984a3cc9ba568cab97a391db9cd")
3965 (revision "0"))
3966 (package
3967 (name "sajson")
3968 (version (git-version "1.0" revision commit))
3969 (source (origin
3970 (method git-fetch)
3971 (uri (git-reference
3972 (url "https://github.com/chadaustin/sajson")
3973 (commit commit)))
3974 (file-name (git-file-name name version))
3975 (patches
3976 (search-patches "sajson-build-with-gcc10.patch"))
3977 (sha256
3978 (base32
3979 "0fjag27w7gvkc5pdhq3ad7yc09rabpzahndw1sgsg04ipznidmmq"))
3980 (modules '((guix build utils)))
3981 (snippet '(delete-file-recursively "third-party"))))
3982 (build-system scons-build-system)
3983 (arguments
3984 (list
3985 #:phases
3986 #~(modify-phases %standard-phases
3987 (add-after 'unpack 'disable-other-builds
3988 (lambda _
3989 (substitute* "SConstruct"
3990 (("for name, tools in builds:")
3991 "for name, tools in [('opt', [gcc, opt])]:"))))
3992 (add-after 'unpack 'use-external-unittest-cpp
3993 (lambda _
3994 (substitute* "SConscript"
3995 (("unittestpp_env\\.Library") "_dummy = ")
3996 (("test_env = env.Clone\\(tools=\\[unittestpp, sajson\\]\\)")
3997 (string-append
3998 "test_env = env.Clone(tools=[sajson])\n"
3999 "test_env.Append(CPPPATH='"
4000 (search-input-directory %build-inputs "/include/UnitTest++")
4001 "', LIBPATH='"
4002 (string-append #$(this-package-native-input "unittest-cpp")
4003 "/lib")
4004 "', LIBS=['UnitTest++'])")))))
4005 (add-after 'unpack 'fix-example
4006 (lambda _
4007 (substitute* "example/main.cpp"
4008 (("fclose\\(file\\);")
4009 "if (file != nullptr) {fclose(file); file = nullptr;}"))))
4010 (replace 'build
4011 (lambda* (#:key tests? #:allow-other-keys #:rest args)
4012 (when tests?
4013 (apply (assoc-ref %standard-phases 'build)
4014 args))))
4015 (replace 'check
4016 (lambda* (#:key tests? #:allow-other-keys)
4017 (when tests?
4018 (invoke "build/opt/test")
4019 (invoke "build/opt/test_unsorted"))))
4020 (replace 'install
4021 (lambda _
4022 (let ((out (string-append #$output "/include")))
4023 (install-file "include/sajson.h" out)
4024 (install-file "include/sajson_ostream.h" out)))))))
4025 (native-inputs (list unittest-cpp))
4026 (home-page "https://github.com/chadaustin/sajson")
4027 (synopsis "C++11 header-only, in-place JSON parser")
4028 (description "@code{sajson} is an in-place JSON parser with support for
4029parsing with only a single memory allocation.")
4030 (license license:expat))))
4031
4032(define-public sajson-for-gemmi
4033 (package/inherit sajson
4034 (name "sajson-for-gemmi")
4035 (source (origin
4036 (inherit (package-source sajson))
4037 (patches (cons
4038 (search-patch
4039 "sajson-for-gemmi-numbers-as-strings.patch")
4040 (origin-patches (package-source sajson))))))
4041 (arguments
4042 (substitute-keyword-arguments arguments
4043 ;; This is a modified version used in gemmi, in which numbers are kept
4044 ;; as strings. Building the tests fails with the modification.
4045 ((#:tests? _ #f) #f)))
4046 (properties '((hidden? . #t)))))
4047
4048(define-public optional-lite
4049 (package
4050 (name "optional-lite")
4051 (version "3.5.0")
4052 (source (origin
4053 (method git-fetch)
4054 (uri (git-reference
4055 (url "https://github.com/martinmoene/optional-lite")
4056 (commit (string-append "v" version))))
4057 (file-name (git-file-name name version))
4058 (sha256
4059 (base32
4060 "0jpsm94kp1504yk9s2km86zv8xrszz30qanmhz2ljmvsdblz2l47"))))
4061 (build-system cmake-build-system)
4062 (home-page "https://github.com/martinmoene/optional-lite")
4063 (synopsis "Nullable object for C++98, C++11 and later")
4064 (description
4065 "Optional lite is a single-file header-only library to represent optional
4066(nullable) objects and pass them by value. The library aims to provide a
4067C++17-like optional for use with C++98 and later. If available,
4068@code{std::optional} is used.")
4069 (license license:boost1.0)))
4070
4071(define-public optionparser
4072 (package
4073 (name "optionparser")
4074 (version "1.7")
4075 (source (origin
4076 (method url-fetch)
4077 (uri
4078 (string-append "mirror://sourceforge/optionparser/"
4079 "optionparser-" version ".tar.gz"))
4080 (sha256
4081 (base32
4082 "04gfxrdzwacaynb8scsz6rr7nh64n6yk6w9dh2qdhrxw4caqr0dk"))))
4083 (outputs '("out" "doc"))
4084 (build-system gnu-build-system)
4085 (arguments
4086 (list
4087 #:phases
4088 #~(modify-phases %standard-phases
4089 (delete 'configure)
4090 (add-before 'build 'chdir
4091 (lambda _ (chdir "src")))
4092 (replace 'check
4093 (lambda* (#:key tests? #:allow-other-keys)
4094 (when tests?
4095 (begin
4096 (invoke "./example_arg")
4097 (invoke "./testparse")
4098 (invoke "./testprintusage")
4099 (invoke "./testodr")
4100 (invoke "./example")))))
4101 (replace 'install
4102 (lambda _
4103 (install-file "optionparser.h"
4104 (string-append #$output "/include"))))
4105 (add-after 'install 'install-doc
4106 (lambda _
4107 (copy-recursively
4108 "../html"
4109 (string-append #$output:doc "/share/doc/optionparser/html")))))))
4110 (native-inputs (list doxygen))
4111 (home-page "https://optionparser.sourceforge.net/")
4112 (synopsis "Header-only C++ library to parse command line options")
4113 (description "This package provides a header-only C++ library to parse
4114command line options. It supports the short and long option formats of
4115getopt(), getopt_long() and getopt_long_only().")
4116 (license license:expat)))
4117
4118(define-public safeint
4119 (package
4120 (name "safeint")
4121 (version "3.0.28")
4122 (source
4123 (origin
4124 (method git-fetch)
4125 (uri (git-reference
4126 (url "https://github.com/dcleblanc/SafeInt")
4127 (commit version)))
4128 (file-name (git-file-name name version))
4129 (sha256
4130 (base32 "0bgqvyz5zp4mqzkm9545r3564n52bcdnq8bjn6azhxdsmap26g56"))
4131 (patches
4132 (search-patches "safeint-disable-tests.patch"))))
4133 (build-system cmake-build-system)
4134 (arguments
4135 (list
4136 #:phases
4137 #~(modify-phases %standard-phases
4138 (replace 'install
4139 (lambda _
4140 (let ((include-dir (string-append #$output "/include")))
4141 (with-directory-excursion "../source"
4142 (install-file "SafeInt.hpp" include-dir)
4143 (install-file "safe_math.h" include-dir)
4144 (install-file "safe_math_impl.h" include-dir)))))
4145 (add-after 'install 'install-doc
4146 (lambda _
4147 (let ((doc-dir (string-append #$output "/share/doc/safeint")))
4148 (with-directory-excursion "../source"
4149 (install-file "helpfile.md" doc-dir))))))))
4150 (home-page "https://github.com/dcleblanc/SafeInt")
4151 (synopsis "C and C++ library for managing integer overflows")
4152 (description
4153 "SafeInt is a class library for C++ that manages integer overflows. It
4154also includes a C library that checks casting, multiplication, division,
4155addition and subtraction for all combinations of signed and unsigned 32-bit and
415664-bit integers.")
4157 (license license:expat)))
4158
4159(define-public wide-integer
4160 (let ((commit "22b8428746248e682d5276f8e8b7fb52af73ea47")
4161 (revision "1314")) ; commit count
4162 (package
4163 (name "wide-integer")
4164 (version (git-version "0" revision commit))
4165 (source (origin
4166 (method git-fetch)
4167 (uri (git-reference
4168 (url "https://github.com/ckormanyos/wide-integer")
4169 (commit commit)))
4170 (file-name (git-file-name name version))
4171 (sha256
4172 (base32 "0bhjnbdcphv5kddddh8kpwjpjix23m12vmfsz0r6wjc5d27md33z"))
4173 (modules '((guix build utils)))
4174 (snippet #~(substitute* "CMakeLists.txt"
4175 (("WideIntegerTargets") "wide-integer-targets")
4176 (("WideIntegerConfig") "wide-integer-config")
4177 (("WideInteger") "wide-integer")))))
4178 (build-system cmake-build-system)
4179 (native-inputs (list boost))
4180 (home-page "https://github.com/ckormanyos/wide-integer")
4181 (synopsis "C++ template for arbitrary-precision integers")
4182 (description "This package implements a generic template for extended
4183width signed and unsigned integral types. Up to 63 limbs of any built-in
4184integer type are supported, and can be used to build powers of two like
4185int128_t, uint256_t, but also somewhat esoteric types such as int24_t,
4186uint80_t, or uint1536_t. The provided types can be used in much the same
4187way as basic integer types.")
4188 (license license:boost1.0))))
4189
4190(define-public swell
4191 (let ((commit "599228ffee6ad8d02122a171e0e79271b24abbd3")
4192 (revision "1"))
4193 (package
4194 (name "swell")
4195 (version (git-version "0" revision commit)) ;no tags
4196 (source
4197 (origin
4198 (method git-fetch)
4199 (uri (git-reference
4200 (url "https://github.com/justinfrankel/WDL")
4201 (commit commit)))
4202 (file-name (git-file-name "wdl" version))
4203 (sha256
4204 (base32
4205 "0nfnapl520k9ls16km3yh0jrh4jvxg1x06gm4rq8zgcm02pxbbrd"))
4206 (modules '((guix build utils)))
4207 (snippet
4208 '(with-directory-excursion "WDL"
4209 ;; Delete 3rd party libraries and sample projects.
4210 (for-each delete-file-recursively
4211 (list "cmath"
4212 "giflib"
4213 "jpeglib"
4214 "libpng"
4215 "zlib"))
4216 ;; Fix including headers from the system.
4217 (substitute* (find-files "." "\\.(h|cpp)")
4218 (("\\\".*giflib\\/gif_lib\\.h\\\"") "<gif_lib.h>")
4219 (("\\\".*jpeglib\\/jpeglib\\.h\\\"") "<jpeglib.h>")
4220 (("\\\".*jnetlib\\/asyncdns\\.h\\\"") "<jnetlib/asyncdns.h>")
4221 (("\\\".*jnetlib\\/connection\\.h\\\"")
4222 "<jnetlib/connection.h>")
4223 (("\\\".*jnetlib\\/httpget\\.h\\\"") "<jnetlib/httpget.h>")
4224 (("\\\".*jnetlib\\/jnetlib\\.h\\\"") "<jnetlib/jnetlib.h>")
4225 (("\\\".*jnetlib\\/netinc\\.h\\\"") "<jnetlib/netinc.h>")
4226 (("\\\".*libpng\\/png\\.h\\\"") "<png.h>")
4227 (("\\\"\\.\\.\\/plush2\\/plush\\.h\\\"") "<plush2/plush.h>")
4228 (("\\\".*zlib\\.h\\\"") "<zlib.h>"))
4229 ;; Fix building jnetlib.
4230 (substitute* "jnetlib/Makefile"
4231 ;; Link the missing library.
4232 (("-pthread") "-pthread -lstdc++")
4233 ;; Remove the unavailable object.
4234 ((" sercon\\.o") "")
4235 ;; Add webserver.
4236 (("util\\.o") "util.o webserver.o "))
4237 ;; Fix building eel2.
4238 (substitute* "eel2/Makefile"
4239 ;; Do not build swell objects.
4240 ((" \\$\\(SWELL_OBJS\\)") "")
4241 ;; Do not depend again on the dependencies of swell.
4242 (("(-lX11 -lXi|\\$\\(shell pkg-config.*\\))") "")
4243 ;; Link swell.
4244 (("-lGL") "-lGL -lSwell"))))))
4245 (build-system gnu-build-system)
4246 (arguments
4247 (list #:tests? #f ;test object does not exist
4248 #:test-target "test"
4249 #:make-flags #~'("SWELL_SUPPORT_GTK=1")
4250 #:phases
4251 #~(modify-phases %standard-phases
4252 (delete 'configure) ;no configure script
4253 (add-after 'unpack 'change-directory
4254 (lambda _ (chdir "WDL/swell")))
4255 ;; No install rule.
4256 (replace 'install
4257 (lambda _
4258 (install-file "libSwell.so"
4259 (string-append #$output "/lib"))
4260 (for-each
4261 (lambda (file)
4262 (when (not (string-contains file "/sample_project"))
4263 (install-file file
4264 (string-append #$output
4265 "/include/SWELL"))))
4266 (find-files "." "\\.h$")))))))
4267 (native-inputs (list perl pkg-config))
4268 (inputs
4269 (list cairo
4270 fontconfig
4271 freetype
4272 gdk-pixbuf
4273 glib
4274 gtk+
4275 libxi
4276 libx11
4277 mesa
4278 zlib))
4279 (home-page "https://www.cockos.com/wdl/")
4280 (synopsis "Windows emulation layer")
4281 (description
4282 "SWELL is a Windows emulation Layer. It provides a set of common APIs,
4283common controls and win32-style extensions.")
4284 (license license:zlib))))
4285
4286(define-public swell-colortheme
4287 (package
4288 (inherit swell)
4289 (name "swell-colortheme")
4290 (arguments
4291 (substitute-keyword-arguments arguments
4292 ((#:make-flags flags)
4293 #~(append #$flags '("libSwell.colortheme")))
4294 ((#:phases phases)
4295 #~(modify-phases #$phases
4296 (replace 'install
4297 (lambda _
4298 (install-file "libSwell.colortheme"
4299 (string-append #$output
4300 "/share/SWELL"))))))))
4301 (native-inputs
4302 (list pkg-config
4303 gtk+)) ;only for compilation
4304 (inputs '())
4305 (synopsis "SWELL colortheme sample")
4306 (description
4307 "This package provides the default @code{libSwell.colortheme} file for
4308programs that use @code{swell}.")))
4309
4310(define-public jnetlib
4311 (package
4312 (inherit swell)
4313 (name "jnetlib")
4314 (arguments
4315 (substitute-keyword-arguments arguments
4316 ((#:tests? _ #t) #t)
4317 ((#:phases phases)
4318 #~(modify-phases #$phases
4319 (replace 'change-directory
4320 (lambda _ (chdir "WDL/jnetlib")))
4321 (replace 'install
4322 (lambda _
4323 (install-file "jnl.a" (string-append #$output "/lib"))
4324 (for-each (lambda (file)
4325 (install-file file (string-append #$output
4326 "/include"
4327 "/jnetlib")))
4328 (find-files "." "\\.h"))))))))
4329 (native-inputs '())
4330 (inputs '())
4331 (synopsis "C++ asynchronous network abstraction layer")
4332 (description
4333 "JNetLib is a portable C++ asynchronous network abstraction layer. It
4334features:
4335@itemize
4336@item TCP connections support,
4337@item listening sockets support,
4338@item asynchronous DNS support,
4339@item HTTP serving and getting support,
4340@item Completely asynchronous love for single threaded apps.
4341@end itemize")))
4342
4343(define-public eel2
4344 (package
4345 (inherit swell)
4346 (name "eel2")
4347 (arguments
4348 (substitute-keyword-arguments arguments
4349 ((#:tests? _ #t) #f) ;no tests
4350 ;; FIXME: Remove this flag when this issue will be fixed:
4351 ;; https://github.com/justinfrankel/WDL/issues/32.
4352 ((#:make-flags _ '()) #~'("NO_GFX=1"))
4353 ((#:phases phases)
4354 #~(modify-phases #$phases
4355 (replace 'change-directory
4356 (lambda _ (chdir "WDL/eel2")))
4357 (replace 'install
4358 (lambda _
4359 ;; Install executable files.
4360 (for-each (lambda (file)
4361 (install-file file
4362 (string-append #$output "/bin")))
4363 '("eel_pp" "loose_eel"))
4364 ;; Install headers.
4365 (for-each (lambda (file)
4366 (install-file file
4367 (string-append #$output
4368 "/include/EEL2")))
4369 (find-files "." "\\.h$"))
4370 ;; Install scripts.
4371 (copy-recursively "scripts"
4372 (string-append #$output
4373 "/share/EEL2/scripts"))))))))
4374 (native-inputs (list nasm))
4375 (inputs (list jnetlib))
4376 (home-page "https://www.cockos.com/EEL2/")
4377 (synopsis "Expression evaluation library")
4378 (description
4379 "EEL2 is an expression evaluation library and realtime compiler based on
4380@uref{http://1014.org/code/nullsoft/avs/, AVS's EEL}.")))
4381
4382(define-public juce
4383 (package
4384 (name "juce")
4385 (version "8.0.12")
4386 (source (origin
4387 (method git-fetch)
4388 (uri (git-reference
4389 (url "https://github.com/juce-framework/JUCE")
4390 (commit version)))
4391 (file-name (git-file-name name version))
4392 (sha256
4393 (base32
4394 "0m4kbpwg2gblnilly0h2a3rr7f7lb13gsx4fvs2mnvyvy6jfbbls"))))
4395 (build-system cmake-build-system)
4396 (arguments
4397 (list #:tests? #f ;no test suite
4398 #:configure-flags #~(list "-DJUCE_TOOL_INSTALL_DIR=bin")
4399 #:phases
4400 #~(modify-phases %standard-phases
4401 (add-after 'unpack 'patch-paths
4402 (lambda* (#:key inputs #:allow-other-keys)
4403 (substitute*
4404 (find-files "." "juce_Fonts_linux.cpp$")
4405 (("fonts\\.conf\" };")
4406 (string-append
4407 "fonts.conf\",\n\""
4408 (search-input-file inputs "/etc/fonts/fonts.conf")
4409 "\"\n};"))))))))
4410 (native-inputs
4411 (list alsa-lib
4412 curl
4413 jack-2
4414 ladspa
4415 libx11
4416 pkg-config
4417 webkitgtk-for-gtk3))
4418 (inputs (list fontconfig freetype libjpeg-turbo libpng))
4419 (home-page "https://juce.com")
4420 (synopsis "C++ application framework for audio plugins and plugin hosts")
4421 (description
4422 "JUCE is a C++ application framework for creating applications including
4423VST, VST3, AU, AUv3, AAX and LV2 audio plug-ins and plug-in hosts.")
4424 (license
4425 (list license:asl2.0 ;for Oboe and AudioUnitSDK
4426 license:bsd-3 ;for FLAC, Ogg Vorbis and OpenGL Extension Wrangler
4427 license:expat ;for Mesa 3-D graphics and jucer icons
4428 license:gpl3 ;for JUCE and VST3 SDK
4429 license:ijg ;for jpeglib
4430 license:isc ;for LV2 SDK
4431 license:zlib)))) ;for pngLib, zlib and Box2D
4432
4433(define-public ftxui
4434 (package
4435 (name "ftxui")
4436 (version "6.1.9")
4437 (source (origin
4438 (method git-fetch)
4439 (uri (git-reference
4440 (url "https://github.com/ArthurSonzogni/FTXUI")
4441 (commit (string-append "v" version))))
4442 (sha256
4443 (base32
4444 "1sbgp1b5v0z8dcfwmgincd759brc1bz64vifdfp4r1afp1672lm6"))
4445 (file-name (git-file-name name version))))
4446 (build-system cmake-build-system)
4447 (native-inputs (list googletest benchmark))
4448 (arguments
4449 (list #:configure-flags
4450 #~(list (string-append "-DFTXUI_BUILD_TESTS:BOOL="
4451 #$(if (%current-target-system)
4452 "OFF"
4453 "ON"))
4454 "-DFTXUI_BUILD_TESTS_FUZZER:BOOL=OFF"
4455 "-DBUILD_SHARED_LIBS=ON")))
4456 (home-page "https://github.com/ArthurSonzogni/FTXUI")
4457 (synopsis "C++ Functional Terminal User Interface")
4458 (description
4459 "Functional Terminal (X) User interface (FTXUI) is a simple C++ library for
4460terminal based user interfaces.
4461
4462Main features:
4463@itemize
4464@item Functional style.
4465@item Keyboard & mouse navigation.
4466@item Support for UTF8 and fullwidth chars.
4467@item Support for animations.
4468@item Support for drawing.
4469@item No dependencies.
4470@end itemize")
4471 (license license:expat)))
4472
4473(define-public mapbox-variant
4474 (package
4475 (name "mapbox-variant")
4476 (version "1.2.0")
4477 (source (origin
4478 (method git-fetch)
4479 (uri (git-reference
4480 (url "https://github.com/mapbox/variant")
4481 (commit (string-append "v" version))))
4482 (file-name (git-file-name name version))
4483 (sha256
4484 (base32 "03cmxm34ralh8y07bs80gz3v4pql51206dn5h7lcnm7vishkk241"))
4485 (modules '((guix build utils)))
4486 (snippet #~(begin
4487 (delete-file "test/include/catch.hpp")
4488 (substitute* (find-files "test" "\\.[ch]pp")
4489 (("\"catch.hpp\"") "<catch/catch.hpp>"))))))
4490 (build-system gnu-build-system)
4491 (arguments
4492 (list #:test-target "test"
4493 #:phases
4494 #~(modify-phases %standard-phases
4495 (delete 'bootstrap)
4496 (delete 'configure)
4497 (delete 'build)
4498 (replace 'install
4499 (lambda* (#:key outputs #:allow-other-keys)
4500 (copy-recursively "include"
4501 (string-append (assoc-ref outputs "out")
4502 "/include")))))))
4503 (native-inputs (list catch2-1))
4504 (home-page "https://github.com/mapbox/variant")
4505 (synopsis "Implementation of std::variant for C++11/14")
4506 (description "This package provides a header-only implementation of
4507std::variant (formerly boost::variant) for C++11/14.")
4508 (license license:bsd-3)))
4509
4510(define-public mpark-variant
4511 (package
4512 (name "mpark-variant")
4513 (version "1.4.0")
4514 (source (origin
4515 (method git-fetch)
4516 (uri (git-reference
4517 (url "https://github.com/mpark/variant")
4518 (commit (string-append "v" version))))
4519 (sha256
4520 (base32
4521 "0gz8d5qprlfqb42cfyyc4nbwhgarhw027a9nr52h3gbdn560j0j4"))
4522 (file-name (git-file-name name version))))
4523 (build-system cmake-build-system)
4524 (arguments
4525 (list
4526 #:configure-flags #~(list "-DMPARK_VARIANT_INCLUDE_TESTS=mpark")
4527 #:phases
4528 #~(modify-phases %standard-phases
4529 (add-after 'unpack 'find-googletest
4530 (lambda _
4531 (substitute* "test/CMakeLists.txt"
4532 (("add_subdirectory.*3rdparty/googletest.*\n")
4533 "find_package(GTest REQUIRED)\n")
4534 ((".*3rdparty/googletest.*\n") "")
4535 ((".*config_compiler_and_linker.*\n") "")
4536 (("gtest_main") "gtest gtest_main")))))))
4537 (native-inputs (list googletest))
4538 (home-page "https://github.com/mpark/variant")
4539 (synopsis "Implementation of std::variant for C++11/14/17")
4540 (description
4541 "MPark.Variant provides the C++17 std::variant for C++11/14/17. It is
4542based on the implementation of std::variant in libc++.")
4543 (license license:boost1.0)))
4544
4545(define-public nativefiledialog-extended
4546 (package
4547 (name "nativefiledialog-extended")
4548 (version "1.2.1")
4549 (source
4550 (origin
4551 (method git-fetch)
4552 (uri (git-reference
4553 (url "https://github.com/btzy/nativefiledialog-extended")
4554 (commit (string-append "v" version))))
4555 (file-name (git-file-name name version))
4556 (sha256
4557 (base32 "15l0jy3v4p6rgg9dk8zr80lqp51s32ii62cm4s90400ragdgh10v"))))
4558 (build-system cmake-build-system)
4559 (arguments
4560 '(#:tests? #f
4561 #:configure-flags '("-DBUILD_SHARED_LIBS=ON")))
4562 (native-inputs (list pkg-config))
4563 (inputs (list gtk+))
4564 (home-page "https://github.com/btzy/nativefiledialog-extended")
4565 (synopsis "Native file dialog library with C and C++ bindings")
4566 (description
4567 "This package provides a library that portably invokes native file open,
4568folder select and file save dialogs. It allows the specification of a default
4569file name and location, as well as filters with friendly names (such as
4570\"source files\" or \"image files\") where supported.")
4571 (license license:zlib)))
4572
4573(define-public sexp-cpp
4574 ;; XXX: Does not release anymore.
4575 (let ((commit "4d8096c223d2f469ca6e407e793d20980f6aba76")
4576 (revision "0"))
4577 (package
4578 (name "sexp-cpp")
4579 (version (git-version "0.1.0" revision commit))
4580 (source
4581 (origin
4582 (method git-fetch)
4583 (uri (git-reference
4584 (url "https://github.com/lispparser/sexp-cpp")
4585 (commit commit)))
4586 (file-name (git-file-name name version))
4587 (sha256
4588 (base32 "1c79mp0d0b52k7bk0xlh9xmczd60v3f5jv5b240mm8r9z7gyk1vz"))))
4589 (build-system cmake-build-system)
4590 (arguments
4591 (list
4592 #:configure-flags
4593 #~(list "-DBUILD_TESTS=ON")))
4594 (native-inputs (list googletest tinycmmc))
4595 (home-page "https://github.com/lispparser/sexp-cpp")
4596 (synopsis "S-Expression parser for C++")
4597 (description
4598 "This package provides a simple S-Expression parser for C++.")
4599 (license license:gpl3+))))
4600
4601(define-public sfl-library
4602 (package
4603 (name "sfl-library")
4604 (version "2.2.0")
4605 (source
4606 (origin
4607 (method git-fetch)
4608 (uri (git-reference
4609 (url "https://github.com/slavenf/sfl-library")
4610 (commit version)))
4611 (file-name (git-file-name name version))
4612 (sha256
4613 (base32 "1ngy86b9y1b8a4j37c14m1jrg0q5b12jj8b0gdnpl5sjb1r2fljk"))))
4614 (build-system cmake-build-system)
4615 (arguments (list #:tests? #f)) ;no tests
4616 (home-page "https://github.com/slavenf/sfl-library")
4617 (synopsis "Header-only C++11/20 container library")
4618 (description "sfl-library provides many STL-like (Standard Template Library)
4619containers including vectors, associative containers, and unordered containers
4620based on hash tables. These containers are designed for C++11 and C++20
4621constant expression usage.")
4622 (license license:zlib)))
4623
4624(define-public stduuid
4625 (package
4626 (name "stduuid")
4627 (version "1.2.3")
4628 (source
4629 (origin
4630 (method git-fetch)
4631 (uri (git-reference
4632 (url "https://github.com/mariusbancila/stduuid")
4633 (commit (string-append "v" version))))
4634 (file-name (git-file-name name version))
4635 (sha256
4636 (base32 "1y7jgf45dydq0jlac5clnanwcc22la4y8c83d5i0rp87x2zll6ij"))))
4637 (build-system cmake-build-system)
4638 (home-page "https://github.com/mariusbancila/stduuid")
4639 (synopsis
4640 "C++17 implementation of @acronym{UUID, universally unique identifiers}")
4641 (description "This library is a C++17 cross-platform, single-header
4642implementation of UUID, a 128-bit number used to uniquely identify information
4643in computer systems, such as database table keys, COM interfaces, classes and
4644type libraries, and many others.")
4645 (license license:expat)))
4646
4647(define-public string-view-lite
4648 (package
4649 (name "string-view-lite")
4650 (version "1.8.0")
4651 (source
4652 (origin
4653 (method git-fetch)
4654 (uri (git-reference
4655 (url "https://github.com/martinmoene/string-view-lite")
4656 (commit (string-append "v" version))))
4657 (file-name (git-file-name name version))
4658 (sha256
4659 (base32 "1mfp3lmqx7ac0545akxd2v05rrapa3byz8q4gb9rqy94pcqbfyc5"))))
4660 (build-system cmake-build-system)
4661 (home-page "https://github.com/martinmoene/string-view-lite")
4662 (synopsis "C++17 string-view for older C++")
4663 (description "This package provides a compatibility header-only library
4664for C++17 string-view.")
4665 (license license:boost1.0)))
4666
4667(define-public strutcpp
4668 ;; XXX: No releases.
4669 (let ((commit "108ac9bb4993d661187ac7add0863abc7ff2531f")
4670 (revision "0"))
4671 (package
4672 (name "strutcpp")
4673 (version (git-version "0.0.0" revision commit))
4674 (source
4675 (origin
4676 (method git-fetch)
4677 (uri (git-reference
4678 (url "https://github.com/Grumbel/strutcpp")
4679 (commit commit)))
4680 (file-name (git-file-name name version))
4681 (sha256
4682 (base32 "0m344qq3d57balzvc26fjx985nj2xwnfb1a7prkv3njj5lfcf127"))
4683 (patches (search-patches "strutcpp-fix-includes.patch"))))
4684 (build-system cmake-build-system)
4685 (arguments
4686 (list
4687 #:configure-flags
4688 #~(list "-DBUILD_TESTS=ON")))
4689 (native-inputs (list googletest tinycmmc))
4690 (home-page "https://github.com/Grumbel/strutcpp")
4691 (synopsis "Collection of string utilities for C++")
4692 (description "This package provides simple string utilities for C++.")
4693 (license license:gpl3+))))
4694
4695(define-public tfel
4696 (package
4697 (name "tfel")
4698 (version "4.2.2") ;Keep in sync with compatible version of mgis
4699 (source
4700 (origin
4701 (method git-fetch)
4702 (uri (git-reference
4703 (url "https://github.com/thelfer/tfel")
4704 (commit (string-append "TFEL-" version))))
4705 (file-name (git-file-name name version))
4706 (sha256
4707 (base32 "14br7n76qfh651hvmn1i0ma5lr5ayhvj4ay2182isx26m1j15cfz"))))
4708 (build-system cmake-build-system)
4709 (arguments
4710 (list
4711 #:configure-flags
4712 #~(list "-Denable-portable-build=ON")
4713 #:phases
4714 #~(modify-phases %standard-phases
4715 ;; Test targets are not build by default. By building these
4716 ;; additional targets the majority of tests (over 6000) can
4717 ;; be run.
4718 (add-after 'build 'build-test-targets
4719 (lambda* (#:key tests? parallel-build? #:allow-other-keys)
4720 (if tests?
4721 (invoke "make"
4722 "MFrontGenericBehaviours"
4723 "MFrontGenericBehaviours2"
4724 "MFrontGenericBehaviours3"
4725 "-j"
4726 (if parallel-build?
4727 (number->string (parallel-job-count)) "1"))
4728 (format #t "test suite not run~%"))))
4729 (replace 'check
4730 (lambda* (#:key tests? parallel-tests? #:allow-other-keys)
4731 (if tests?
4732 (invoke "ctest"
4733 "-R"
4734 "generic"
4735 "-E"
4736 "brick"
4737 "-j"
4738 (if parallel-tests?
4739 (number->string (parallel-job-count)) "1"))
4740 (format #t "test suite not run~%")))))))
4741 (home-page "https://thelfer.github.io/tfel/web/index.html")
4742 (synopsis "TFEL library and MFront code generator")
4743 (description
4744 "MFront is a code generator which translates a set of closely
4745related domain specific languages into plain C++ on top of the TFEL library.")
4746 ;; TFEL/MFront is released under either the GNU GPL licence with linking
4747 ;; exception or the CECILL-A licence:
4748 (license (list license:gpl3+ license:cecill))))
4749
4750(define-public mgis
4751 (package
4752 (name "mgis")
4753 (version "2.2") ;Keep in sync with compatible version of tfel
4754 (source
4755 (origin
4756 (method git-fetch)
4757 (uri (git-reference
4758 (url "https://github.com/thelfer/MFrontGenericInterfaceSupport")
4759 (commit (string-append "MFrontGenericInterfaceSupport-" version))))
4760 (file-name (git-file-name name version))
4761 (sha256
4762 (base32 "00ij7gaqrzakvc3n6irq5z5b5nd08kik5i87prvnp9604ssa6h8k"))))
4763 (build-system cmake-build-system)
4764 (arguments
4765 (list
4766 #:configure-flags
4767 #~(list "-Denable-doxygen-doc=OFF" "-Denable-portable-build=ON")
4768 #:phases
4769 #~(modify-phases %standard-phases
4770 ;; Test targets are not build by default. By building these
4771 ;; additional targets some tests can be run.
4772 (add-after 'build 'build-test-targets
4773 (lambda* (#:key tests? parallel-build? #:allow-other-keys)
4774 (if tests?
4775 (invoke "make"
4776 "BehaviourTest"
4777 "MFrontGenericBehaviourInterfaceTest"
4778 "MFrontGenericBehaviourInterfaceTest2"
4779 "MFrontGenericBehaviourInterfaceTest3"
4780 "-j"
4781 (if parallel-build?
4782 (number->string (parallel-job-count)) "1"))
4783 (format #t "test suite not run~%"))))
4784 (replace 'check
4785 (lambda* (#:key tests? parallel-tests? #:allow-other-keys)
4786 (if tests?
4787 (invoke "ctest" "-R" "MFrontGenericBehaviourInterfaceTest"
4788 "-j"
4789 (if parallel-tests?
4790 (number->string (parallel-job-count)) "1"))
4791 (format #t "test suite not run~%")))))))
4792 (inputs (list tfel))
4793 (home-page "https://thelfer.github.io/mgis/web/index.html")
4794 (synopsis
4795 "MFrontGenericInterfaceSupport provides tools to handle MFront behaviours")
4796 (description
4797 "Those tools are meant to be used by solver developers to e.g. load
4798MFront behaviours from external shared libraries and retrieve all relevant
4799meta data function.")
4800 ;; MFrontGenericInterfaceSupport is released under either the GNU LGPL license
4801 ;; or the CECILL-C license:
4802 (license (list license:lgpl3 license:cecill-c))))
4803
4804(define-public tcbrindle-span
4805 (let ((commit "836dc6a0efd9849cb194e88e4aa2387436bb079b")
4806 (revision "0"))
4807 (package
4808 (name "tcbrindle-span")
4809 (version (git-version "0" revision commit))
4810 (source
4811 (origin
4812 (method git-fetch)
4813 (uri (git-reference
4814 (url "https://github.com/tcbrindle/span")
4815 (commit commit)))
4816 (file-name (git-file-name name version))
4817 (sha256
4818 (base32 "1v3x1mj4if8jrr7cmrcbhv8n8ygla0liqb0dic6g6ji7px2pr6jf"))
4819 (modules '((guix build utils)))
4820 ;; Unbundle catch.
4821 (snippet
4822 '(with-directory-excursion "test"
4823 (delete-file "catch.hpp")
4824 (substitute* (find-files "." "\\.cpp$")
4825 (("\"catch\\.hpp\"") "<catch.hpp>"))))))
4826 (build-system cmake-build-system)
4827 (native-inputs (list catch-framework))
4828 (arguments
4829 (list
4830 #:phases
4831 #~(modify-phases %standard-phases
4832 (replace 'install
4833 (lambda _
4834 (mkdir-p (string-append #$output))
4835 (copy-recursively "../source/include"
4836 (string-append #$output "/include")))))))
4837 (home-page "https://github.com/tcbrindle/span")
4838 (synopsis "Implementation of C++20's @code{std::span} for older compilers")
4839 (description
4840 "This package provides a single-header implementation of C++20's
4841@code{std::span}, conforming to the C++20 committee draft. It is compatible
4842with C++11, but will use newer language features if they are available.")
4843 (license license:boost1.0))))
4844
4845(define-public tsl-hopscotch-map
4846 (package
4847 (name "tsl-hopscotch-map")
4848 (version "2.3.0")
4849 (source (origin
4850 (method git-fetch)
4851 (uri (git-reference
4852 (url "https://github.com/Tessil/hopscotch-map")
4853 (commit (string-append "v" version))))
4854 (file-name (git-file-name name version))
4855 (sha256
4856 (base32
4857 "012pw37w000pdxdvps0wsqrw6597cm6i6kr5rpl303qmiwqicb2p"))))
4858 (build-system cmake-build-system)
4859 (arguments
4860 (list
4861 #:phases
4862 #~(modify-phases %standard-phases
4863 (add-after 'unpack 'patch-cmake-test
4864 (lambda _
4865 (let ((file (open-file "CMakeLists.txt" "a")))
4866 (display "\nenable_testing()\nadd_subdirectory(tests)" file)
4867 (close-port file))
4868 (substitute* "tests/CMakeLists.txt"
4869 (("set\\(Boost_USE_STATIC_LIBS.*") "")
4870 (("add_subdirectory\\(\\.\\..*")
4871 "add_test(tsl_hopscotch_map_tests tsl_hopscotch_map_tests)\n")))))))
4872 (native-inputs (list boost))
4873 (home-page "https://github.com/Tessil/hopscotch-map")
4874 (synopsis "Hash maps and hash sets using hopscotch hashing")
4875 (description "This package provides a C++ implementation of several hash
4876map and a hash set variants using open addressing and hopscotch hashing to
4877resolve collisions. It is intended to be fast and provides additional
4878features, such as heterogeneous lookups and different growth policies.")
4879 (license license:expat)))
4880
4881(define-public tsl-sparse-map
4882 (package
4883 (name "tsl-sparse-map")
4884 (version "0.6.2")
4885 (source (origin
4886 (method git-fetch)
4887 (uri (git-reference
4888 (url "https://github.com/Tessil/sparse-map")
4889 (commit (string-append "v" version))))
4890 (sha256
4891 (base32
4892 "0rb7w0hzsj4qbm0dff1niaf75aag9lj0xqhgb3vg5h9hfic62ic2"))
4893 (file-name (git-file-name name version))))
4894 (build-system cmake-build-system)
4895 (arguments
4896 (list
4897 #:phases
4898 #~(modify-phases %standard-phases
4899 (add-after 'unpack 'patch-cmake-test
4900 (lambda _
4901 (let ((file (open-file "CMakeLists.txt" "a")))
4902 (display "\nenable_testing()\nadd_subdirectory(tests)" file)
4903 (close-port file))
4904 (substitute* "tests/CMakeLists.txt"
4905 (("set\\(Boost_USE_STATIC_LIBS.*") "")
4906 (("add_subdirectory\\(\\.\\..*")
4907 "add_test(tsl_sparse_map_tests tsl_sparse_map_tests)\n")))))))
4908 (native-inputs (list boost))
4909 (home-page "https://github.com/Tessil/sparse-map")
4910 (synopsis "Sparse hash map")
4911 (description "This package provides a C++ implementation of a hash map and
4912a hash set with open addressing and sparse quadratic probing. It is intended
4913to be memory efficient and provides additional features, such as heterogeneous
4914lookups and different growth policies.")
4915 (license license:expat)))
4916
4917(define-public tsl-ordered-map
4918 (package
4919 (name "tsl-ordered-map")
4920 (version "1.1.0")
4921 (source (origin
4922 (method git-fetch)
4923 (uri (git-reference
4924 (url "https://github.com/Tessil/ordered-map")
4925 (commit (string-append "v" version))))
4926 (file-name (git-file-name name version))
4927 (sha256
4928 (base32
4929 "0bz5zgabalb7z0j9scng4zmi95hy7iasry5gz15x6y6dsdz0qf3j"))))
4930 (build-system cmake-build-system)
4931 (arguments
4932 (list
4933 #:phases
4934 #~(modify-phases %standard-phases
4935 (add-after 'unpack 'patch-cmake-test
4936 (lambda _
4937 (let ((file (open-file "CMakeLists.txt" "a")))
4938 (display "\nenable_testing()\nadd_subdirectory(tests)" file)
4939 (close-port file))
4940 (substitute* "tests/CMakeLists.txt"
4941 (("set\\(Boost_USE_STATIC_LIBS.*") "")
4942 (("add_subdirectory\\(\\.\\..*")
4943 "add_test(tsl_ordered_map_tests tsl_ordered_map_tests)\n")))))))
4944 (native-inputs (list boost))
4945 (home-page "https://github.com/Tessil/ordered-map")
4946 (synopsis "Order-preserving hash map and hash set")
4947 (description "This package provides a C++ implementation of a hash map and
4948a hash set which preserve the order of insertion. It is intended for
4949efficient ordered insertions and lookup, while sacrifing performance for
4950ordered erase operations.")
4951 (license license:expat)))
4952
4953(define-public tinygettext
4954 ;; XXX: Does not release anymore.
4955 (let ((commit "ef4164639004d7de5bf8ab28ed0e85ea521b7c5e")
4956 (revision "0"))
4957 (package
4958 (name "tinygettext")
4959 (version (git-version "0.2.0" revision commit))
4960 (source
4961 (origin
4962 (method git-fetch)
4963 (uri (git-reference
4964 (url "https://github.com/tinygettext/tinygettext")
4965 (commit commit)))
4966 (file-name (git-file-name name version))
4967 (sha256
4968 (base32 "0a8l92nba33f3j2hk6ckrn9javmy2xbnsfkks1z740y3bj4sxzw9"))))
4969 (build-system cmake-build-system)
4970 (arguments
4971 (list
4972 #:configure-flags
4973 #~(list "-DBUILD_TESTS=ON")
4974 #:phases
4975 #~(modify-phases %standard-phases
4976 (replace 'check
4977 (lambda _
4978 (substitute* "../source/test/test.sh"
4979 (("^\\.")
4980 (getcwd)))
4981 (with-directory-excursion "../source/test"
4982 (invoke "bash" "test.sh")))))))
4983 (native-inputs (list tinycmmc))
4984 (home-page "https://github.com/tinygettext/tinygettext")
4985 (synopsis "Simple gettext replacement")
4986 (description
4987 "This package provides a simple gettext replacement that works directly
4988on @code{.po} files and doesn't need @code{.mo} files pre-generated.")
4989 (license license:expat))))
4990
4991(define-public tinygettext-with-sdl2
4992 (package/inherit tinygettext
4993 (arguments
4994 (substitute-keyword-arguments arguments
4995 ((#:configure-flags flags)
4996 #~(list "-DTINYGETTEXT_WITH_SDL=ON" "-DBUILD_TESTS=ON"))))
4997 (native-inputs (list pkg-config tinycmmc))
4998 (inputs (list sdl2))))
4999
5000(define-public tl-optional
5001 (package
5002 (name "tl-optional")
5003 (version "1.1.0")
5004 (source (origin
5005 (method git-fetch)
5006 (uri (git-reference
5007 (url "https://github.com/TartanLlama/optional")
5008 (commit (string-append "v" version))))
5009 (file-name (git-file-name name version))
5010 (sha256
5011 (base32
5012 "0qkjplmhilbi1iqxx3pz0grcx5355ymk6wwd4h4309mk156xgx2q"))))
5013 (build-system cmake-build-system)
5014 (arguments
5015 (list
5016 #:phases
5017 #~(modify-phases %standard-phases
5018 (add-after 'unpack 'patch-cmake-test
5019 (lambda _
5020 (substitute* "CMakeLists.txt"
5021 (("FetchContent_Declare.*") "")
5022 ((".*http.*catchorg/Catch2.*") "")
5023 (("FetchContent_MakeAvailable\\(Catch2\\)")
5024 "find_package(Catch2 REQUIRED)")))))))
5025 (native-inputs (list catch2-2))
5026 (home-page "https://github.com/TartanLlama/optional")
5027 (synopsis "Implementation of std::optional with extensions for C++11/14/17")
5028 (description "@code{tl::optional} provides a single-header implementation of
5029the std::optional for C++11/14/17, with support for monadic operations added in
5030C++23.")
5031 (license license:cc0)))
5032
5033(define-public type-safe
5034 (package
5035 (name "type-safe")
5036 (version "0.2.4")
5037 (source
5038 (origin
5039 (method git-fetch)
5040 (uri (git-reference
5041 (url "https://github.com/foonathan/type_safe")
5042 (commit (string-append "v" version))))
5043 (file-name (git-file-name name version))
5044 (sha256
5045 (base32 "0qb4g9x22m8w9d7n9793cbig5a06wlhzqwlr276yxvz5yyzsxjfg"))
5046 (modules '((guix build utils)))
5047 ;; Remove bundled debug_assert.
5048 ;; Keep external/external.cmake because it enables
5049 ;; TYPE_SAFE_HAS_IMPORTED_TARGETS, required for installing the CMake
5050 ;; config files.
5051 (snippet #~(delete-file-recursively "external/debug_assert"))))
5052 (build-system cmake-build-system)
5053 (arguments
5054 (list #:configure-flags
5055 #~(list "-DTYPE_SAFE_BUILD_TEST_EXAMPLE=ON"
5056 "-DTYPE_SAFE_BUILD_DOC=OFF") ; needs standardese
5057 #:phases
5058 #~(modify-phases %standard-phases
5059 (add-after 'unpack 'fix-dependencies
5060 (lambda _
5061 (substitute*
5062 (list "include/type_safe/detail/assert.hpp"
5063 "include/type_safe/detail/force_inline.hpp")
5064 (("#include <debug_assert.hpp>")
5065 (string-append "#include <"
5066 #$(this-package-input "debug-assert")
5067 "/include/debug_assert.hpp>")))
5068 (substitute* "test/CMakeLists.txt"
5069 (("^if\\(NOT EXISTS .*/catch\\.hpp\\)") "if(FALSE)")
5070 (("^(target_include_directories\\(type_safe_test) .*"
5071 all prefix)
5072 (string-append all prefix " PRIVATE \""
5073 #$(this-package-native-input "catch2")
5074 "/include/catch2\")\n")))))
5075 (add-after 'install 'fix-cmake-config
5076 (lambda _
5077 (substitute* (string-append
5078 #$output
5079 "/lib/cmake/type_safe/type_safe-config.cmake")
5080 (("^(find_dependency\\(debug_assert)\\)" _ prefix)
5081 (string-append prefix " PATHS \""
5082 #$(this-package-input "debug-assert")
5083 "/lib/cmake/debug_assert\")"))))))))
5084 (native-inputs (list catch2-2))
5085 (inputs (list debug-assert))
5086 (home-page "https://github.com/foonathan/type_safe")
5087 (synopsis "C++ abstractions for preventing bugs via the type system")
5088 (description "type_safe is a C++ header-only library which provides
5089abstractions for defining more appropriate types, thus allowing C++'s type
5090system to prevent more bugs.")
5091 (license license:expat)))
5092
5093(define-public cpp-ada-url-parser
5094 (package
5095 (name "cpp-ada-url-parser")
5096 (version "2.9.2")
5097 (source
5098 (origin
5099 (method git-fetch)
5100 (uri (git-reference
5101 (url "https://github.com/ada-url/ada")
5102 (commit (string-append "v" version))))
5103 (file-name (git-file-name name version))
5104 (sha256
5105 (base32 "0xvvjlia627ajl966gdxzy2b1j0jiimx7zx8ypmffwx0k6x72qam"))))
5106 (build-system cmake-build-system)
5107 (arguments
5108 (list
5109 #:configure-flags
5110 #~(list "-DCPM_LOCAL_PACKAGES_ONLY=ON")
5111 #:phases
5112 #~(modify-phases %standard-phases
5113 (add-after 'unpack 'patch-deps
5114 (lambda _
5115 (substitute* "CMakeLists.txt"
5116 (("cmake/CPM.cmake")
5117 (string-append #$(this-package-native-input
5118 "cpm-cmake")
5119 "/lib/cmake/CPM.cmake"))
5120 ;; We force CPM to find system packages rather than using git
5121 ;; to download them.
5122 (("Git_FOUND") "TRUE")
5123 (("(simdjson@)[0-9.]*" _ simdjson)
5124 (string-append simdjson
5125 #$(package-version (this-package-native-input
5126 "simdjson")))))
5127 (substitute* "tools/cli/CMakeLists.txt"
5128 (("(VERSION\\s)[0-9.]*" _ a)
5129 (string-append a
5130 #$(package-version (this-package-native-input
5131 "cxxopts")))))))
5132 (add-after 'patch-deps 'python-zipfile-disable-strict-timestamps
5133 (lambda _
5134 (substitute* "singleheader/amalgamate.py"
5135 (("zipfile.ZIP_DEFLATED")
5136 "zipfile.ZIP_DEFLATED, strict_timestamps=False")))))))
5137 (native-inputs (list cpm-cmake
5138 cxxopts
5139 fmt-10
5140 googletest
5141 python
5142 simdjson))
5143 (home-page "https://github.com/ada-url/ada")
5144 (synopsis "URL parser")
5145 (description
5146 "Ada is a fast and spec-compliant URL parser written in C++.
5147Specification for URL parser can be found from the WHATWG website.")
5148 (license license:gpl3+)))
5149
5150(define-public tclap
5151 (package
5152 (name "tclap")
5153 (version "1.4.0-rc2")
5154 (source
5155 (origin
5156 (method url-fetch)
5157 (uri (string-append "mirror://sourceforge/" name "/" name "-" version
5158 ".tar.bz2"))
5159 (sha256
5160 (base32 "1xy5q78ff7z22gnia320qlaf0mawv2m02rl6b7dawxy4mmdwwlna"))))
5161 (build-system cmake-build-system)
5162 (arguments
5163 (list
5164 #:phases #~(modify-phases %standard-phases
5165 (replace 'check
5166 (lambda* (#:key tests? parallel-tests? #:allow-other-keys)
5167 (if tests?
5168 (invoke "ctest" "-j"
5169 (if parallel-tests?
5170 (number->string (parallel-job-count))
5171 "1"))
5172 (format #t "test suite not run~%")))))))
5173 (native-inputs (list python))
5174 (home-page "https://sourceforge.net/p/tclap/discussion/")
5175 (synopsis "Templatized Command Line Argument Parser")
5176 (description
5177 "This is a simple C++ library that facilitates parsing command line
5178arguments in a type independent manner.")
5179 (license license:expat)))
5180
5181(define-public aklomp-base64
5182 (package
5183 (name "aklomp-base64")
5184 (version "0.5.2")
5185 (source (origin
5186 (method git-fetch)
5187 (uri (git-reference
5188 (url "https://github.com/aklomp/base64.git")
5189 (commit (string-append "v" version))))
5190 (file-name (git-file-name name version))
5191 (sha256
5192 (base32
5193 "0xc541vhq44d9i1vf5hyrznqd1kyad9qbvsghcfr17pk1xyqv1kl"))))
5194 (build-system cmake-build-system)
5195 (arguments
5196 (list #:tests? #t
5197 #:phases
5198 #~(modify-phases %standard-phases
5199 (replace 'check
5200 (lambda* (#:key tests? parallel-tests? #:allow-other-keys)
5201 (if tests?
5202 (invoke "ctest" "-VV" "--build-config" "Release" "--output-on-failure")
5203 (format #t "test suite not run~%")))))
5204
5205 #:configure-flags
5206 #~(append
5207 (list "-DBASE64_BUILD_TESTS=ON"
5208 "-DCMAKE_BUILD_TYPE=Release")
5209 (let ((system #$(or (%current-target-system)
5210 (%current-system))))
5211 (cond
5212 ;; ARM 64-bit (aarch64)
5213 ((string-prefix? "aarch64-" system)
5214 (list
5215 "-DCMAKE_C_FLAGS=-march=armv8-a"
5216 "-DNEON64_CFLAGS= "
5217 "-DBASE64_WITH_NEON64=ON"
5218 "-DBASE64_WITH_AVX2=OFF"
5219 "-DBASE64_WITH_SSSE3=OFF"
5220 "-DBASE64_WITH_SSE41=OFF"
5221 "-DBASE64_WITH_SSE42=OFF"
5222 "-DBASE64_WITH_AVX=OFF"
5223 "-DBASE64_WITH_AVX512=OFF"))
5224 ;; ARM 32-bit (armhf)
5225 ((string-prefix? "armhf-" system)
5226 (list
5227 "-DCMAKE_C_FLAGS=-march=armv7 -mfpu=neon"
5228 "-DNEON32_CFLAGS=-march=armv7 -mfpu=neon"
5229 "-DBASE64_WITH_NEON32=ON"
5230 "-DBASE64_WITH_AVX2=OFF"
5231 "-DBASE64_WITH_SSSE3=OFF"
5232 "-DBASE64_WITH_SSE41=OFF"
5233 "-DBASE64_WITH_SSE42=OFF"
5234 "-DBASE64_WITH_AVX=OFF"
5235 "-DBASE64_WITH_AVX512=OFF"))
5236 ;; x86_64 (with all extensions except AVX512).
5237 ((string-prefix? "x86_64-" system)
5238 (list
5239 "-DAVX2_CFLAGS=-mavx2"
5240 "-DSSSE3_CFLAGS=-mssse3"
5241 "-DSSE41_CFLAGS=-msse4.1"
5242 "-DSSE42_CFLAGS=-msse4.2"
5243 "-DAVX_CFLAGS=-mavx"
5244 "-DBASE64_WITH_AVX512=OFF"))
5245 ;; i686 (32-bit x86, limited extensions)
5246 ((string-prefix? "i686-" system)
5247 (list
5248 "-DSSE41_CFLAGS=-msse4.1"
5249 "-DSSE42_CFLAGS=-msse4.2"
5250 "-DBASE64_WITH_AVX=OFF"
5251 "-DBASE64_WITH_AVX2=OFF"
5252 "-DBASE64_WITH_AVX512=OFF"))
5253 (else
5254 (list
5255 "-DBASE64_WITH_AVX2=OFF"
5256 "-DBASE64_WITH_SSSE3=OFF"
5257 "-DBASE64_WITH_SSE41=OFF"
5258 "-DBASE64_WITH_SSE42=OFF"
5259 "-DBASE64_WITH_AVX=OFF"
5260 "-DBASE64_WITH_AVX512=OFF"
5261 "-DBASE64_WITH_NEON32=OFF"
5262 "-DBASE64_WITH_NEON64=OFF")))))))
5263 (synopsis "Fast base64 stream encoder/decoder")
5264 (description "This package provides a base64 stream encoder/decoder
5265written in C99.")
5266 (properties `((tunable? . #t)))
5267 (home-page "https://github.com/aklomp/base64")
5268 (license license:bsd-2)))
5269
5270(define-public unordered-dense
5271 (package
5272 (name "unordered-dense")
5273 (version "4.8.1")
5274 (source
5275 (origin
5276 (method git-fetch)
5277 (uri (git-reference
5278 (url "https://github.com/martinus/unordered_dense")
5279 (commit (string-append "v" version))))
5280 (file-name (git-file-name name version))
5281 (sha256
5282 (base32 "02a86p2abrjkjw6kxd2gcxhknn50mcb1shrch8fhg72n534yblr5"))))
5283 ;; This library uses CMake as build system to distribute the package, but
5284 ;; uses Meson to build and launch tests. Hence, the phase 'check is replaced
5285 ;; to mimic what is defined for meson-build-system.
5286 (build-system cmake-build-system)
5287 (arguments
5288 (list
5289 #:phases
5290 #~(modify-phases %standard-phases
5291 (replace 'check
5292 (lambda* (#:key tests? #:allow-other-keys)
5293 (when tests?
5294 (substitute* "../source/test/app/doctest.h"
5295 (("#include <doctest\\.h>")
5296 "#include <doctest/doctest.h>"))
5297 (setenv "FUZZ_CORPUS_BASE_DIR"
5298 (string-append (getcwd) "/../source/data/fuzz/"))
5299 (invoke "meson" "setup" "../source/")
5300 (invoke "ninja" "--verbose" "-j"
5301 (number->string (parallel-job-count)))
5302 (setenv "MESON_TESTTHREADS"
5303 (number->string (parallel-job-count)))
5304 (invoke "meson" "test")))))))
5305 (native-inputs (list meson pkg-config))
5306 (inputs (list doctest fmt boost))
5307 (home-page "https://github.com/martinus/unordered_dense")
5308 (synopsis "C++17 fast and densely stored hashmap and hashset library")
5309 (description
5310 "A fast & densely stored hashmap and hashset based on robin-hood backward
5311shift deletion for C++17 and later.
5312
5313The classes @code{ankerl::unordered_dense::map} and
5314@code{ankerl::unordered_dense::set} are (almost) drop-in replacements of
5315@code{std::unordered_map} and @code{std::unordered_set.} While they don't have
5316as strong iterator / reference stability guarantees, they are typically much
5317faster. Additionally, there are @code{ankerl::unordered_dense::segmented_map}
5318and @code{ankerl::unordered_dense::segmented_set} with lower peak memory usage,
5319and stable references (iterators are NOT stable) on insert.")
5320 (license license:expat)))
5321
5322(define-public zpp-serializer
5323 (package
5324 (name "zpp-serializer")
5325 (version "0.5")
5326 (source (origin
5327 (method git-fetch)
5328 (uri (git-reference
5329 (url "https://github.com/eyalz800/serializer")
5330 (commit (string-append "v" version))))
5331 (file-name (git-file-name name version))
5332 (sha256
5333 (base32
5334 "0cmk3xx9885zgg3g96ka6cdaibi10fbpf1bi7q8lqsli6z07x4zj"))))
5335 (build-system copy-build-system)
5336 (arguments
5337 (list
5338 #:install-plan #~'(("serializer.h" "include/zpp/"))))
5339 (home-page "https://github.com/eyalz800/serializer")
5340 (synopsis "Single header standard C++ serialization framework")
5341 (description "This package provides a single-header C++14 library for
5342saving and loading C++ objects using a binary format.")
5343 (license license:expat)))
5344
5345(define-public libdivide
5346 (package
5347 (name "libdivide")
5348 (version "5.2.0")
5349 (source (origin
5350 (method git-fetch)
5351 (uri (git-reference
5352 (url "https://github.com/ridiculousfish/libdivide")
5353 (commit (string-append "v" version))))
5354 (file-name (git-file-name name version))
5355 (sha256
5356 (base32
5357 "18gpi9z9kimidkijpbrbf9vxg9s2md3nhyx9yh3n17cdj6aabgq2"))))
5358 (build-system cmake-build-system)
5359 (home-page "https://libdivide.com/")
5360 (synopsis "Header-only library for optimized integer division")
5361 (description "This package provides a header-only C and C++ library for
5362calculating integer division by using shift, add and multiply instructions.")
5363 ;; dual licensed
5364 (license (list license:zlib license:boost1.0))))
5365
5366(define-public functionalplus
5367 (package
5368 (name "functionalplus")
5369 (version "0.2.27")
5370 (source (origin
5371 (method git-fetch)
5372 (uri (git-reference
5373 (url "https://github.com/Dobiasd/FunctionalPlus")
5374 (commit (string-append "v" version))))
5375 (file-name (git-file-name name version))
5376 (sha256
5377 (base32
5378 "1my5npxj9fnm1lxpqnx5jpp7s278zjb9l06wdzjbg4f52z7rsm9f"))))
5379 (arguments
5380 (list
5381 #:phases
5382 #~(modify-phases %standard-phases
5383 (add-after 'unpack 'chdir
5384 (lambda _
5385 (chdir "test"))))))
5386 (build-system cmake-build-system)
5387 (native-inputs (list doctest-next))
5388 (home-page "https://github.com/Dobiasd/FunctionalPlus")
5389 (synopsis "Functional Programming Library for C++")
5390 (description "@code{FunctionalPlus} is a header-only library for
5391simplifying functional programming in C++.")
5392 (license license:boost1.0)))