gnu: kdenlive: Add missing dependencies.
[jackhill/guix/guix.git] / gnu / packages / cpp.scm
CommitLineData
17ce0d45
EJ
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2017 Ethan R. Jones <doubleplusgood23@gmail.com>
f020c7cc 3;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
e8b40974 4;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
27031358 5;;; Copyright © 2018 Ludovic Courtès <ludo@gnu.org>
6c25b00d 6;;; Copyright © 2019, 2020 Mathieu Othacehe <m.othacehe@gmail.com>
cdc81cce 7;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz>
27bcdfcd 8;;; Copyright © 2019 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
999f1f0b 9;;; Copyright © 2020 Nicolò Balzarotti <nicolo@nixo.xyz>
33aa372e 10;;; Copyright © 2020 Roel Janssen <roel@gnu.org>
8b19fa51 11;;; Copyright © 2020 Ricardo Wurmus <rekado@elephly.net>
741d2226 12;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
26407098 13;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
295b4f7e 14;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
697e54b2 15;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
24e37fbb 16;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>
17ce0d45
EJ
17;;;
18;;; This file is part of GNU Guix.
19;;;
20;;; GNU Guix is free software; you can redistribute it and/or modify it
21;;; under the terms of the GNU General Public License as published by
22;;; the Free Software Foundation; either version 3 of the License, or (at
23;;; your option) any later version.
24;;;
25;;; GNU Guix is distributed in the hope that it will be useful, but
26;;; WITHOUT ANY WARRANTY; without even the implied warranty of
27;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28;;; GNU General Public License for more details.
29;;;
30;;; You should have received a copy of the GNU General Public License
31;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
32
33(define-module (gnu packages cpp)
34 #:use-module ((guix licenses) #:prefix license:)
35 #:use-module (guix packages)
36 #:use-module (guix download)
e8b40974
FT
37 #:use-module (guix git-download)
38 #:use-module (guix build-system cmake)
17ce0d45 39 #:use-module (guix build-system gnu)
7e08be71 40 #:use-module (guix build-system python)
17ce0d45 41 #:use-module (gnu packages)
e8b40974
FT
42 #:use-module (gnu packages autotools)
43 #:use-module (gnu packages check)
e3c0676a 44 #:use-module (gnu packages code)
e8b40974 45 #:use-module (gnu packages compression)
e3c0676a 46 #:use-module (gnu packages llvm)
cdc81cce 47 #:use-module (gnu packages perl)
e8b40974 48 #:use-module (gnu packages pkg-config)
8da3513f
MO
49 #:use-module (gnu packages tls)
50 #:use-module (gnu packages web))
17ce0d45
EJ
51
52(define-public libzen
53 (package
54 (name "libzen")
d8cf1b32 55 (version "0.4.38")
17ce0d45
EJ
56 (source (origin
57 (method url-fetch)
c0588f98
PN
58 ;; Warning: This source has proved unreliable 1 time at least.
59 ;; Consider an alternate source or report upstream if this
60 ;; happens again.
17ce0d45 61 (uri (string-append "https://mediaarea.net/download/source/"
d8cf1b32
TGR
62 "libzen/" version "/"
63 "libzen_" version ".tar.bz2"))
17ce0d45
EJ
64 (sha256
65 (base32
d8cf1b32 66 "1nkygc17sndznpcf71fdrhwpm8z9a3hc9csqlafwswh49axhfkjr"))))
17ce0d45
EJ
67 (native-inputs
68 `(("autoconf" ,autoconf)
69 ("automake" ,automake)
70 ("libtool" ,libtool)))
71 (build-system gnu-build-system)
72 (arguments
73 '(#:phases
d8cf1b32 74 ;; The build scripts are not at the root of the archive.
17ce0d45 75 (modify-phases %standard-phases
d10092b8 76 (add-after 'unpack 'pre-configure
17ce0d45 77 (lambda _
c0588f98
PN
78 (chdir "Project/GNU/Library")
79 #t)))))
17ce0d45
EJ
80 (home-page "https://github.com/MediaArea/ZenLib")
81 (synopsis "C++ utility library")
82 (description "ZenLib is a C++ utility library. It includes classes for handling
83strings, configuration, bit streams, threading, translation, and cross-platform
84operating system functions.")
85 (license license:zlib)))
e8b40974 86
697e54b2
MR
87(define-public rttr
88 (package
89 (name "rttr")
90 (version "0.9.6")
91 (source
92 (origin
93 (method git-fetch)
94 (uri (git-reference
95 (url "https://github.com/rttrorg/rttr/")
96 (commit (string-append "v" version))))
97 (sha256
98 (base32 "1yxad8sj40wi75hny8w6imrsx8wjasjmsipnlq559n4b6kl84ijp"))
99 (file-name (git-file-name name version))))
100 (build-system cmake-build-system)
101 (arguments
102 '(;; No check target. Setting test-target to "unit_test" runs it twice.
103 #:tests? #f
104 #:configure-flags
105 '("-DBUILD_DOCUMENTATION=OFF" "-DBUILD_EXAMPLES=OFF")
106 #:phases
107 (modify-phases %standard-phases
108 ;; library_test fails in chroot.
109 (add-after 'unpack 'skip-library-test
110 (lambda _
111 (substitute* "src/unit_tests/unit_tests.cmake"
112 (("misc/library_test.cpp") ""))
113 #t)))))
114 (native-inputs `(("pkg-config" ,pkg-config)))
115 (home-page "https://github.com/rttrorg/rttr/")
116 (synopsis "C++ Reflection Library")
117 (description
118 "RTTR stands for Run Time Type Reflection. It describes the ability of a
119computer program to introspect and modify an object at runtime. It is also
120the name of the library itself, which is written in C++.")
121 (license license:expat)))
122
e8b40974
FT
123(define-public rct
124 (let* ((commit "b3e6f41d9844ef64420e628e0c65ed98278a843a")
1e72a23d 125 (revision "2"))
e8b40974
FT
126 (package
127 (name "rct")
1e72a23d 128 (version (git-version "0.0.0" revision commit))
e8b40974
FT
129 (source (origin
130 (method git-fetch)
131 (uri (git-reference
1e72a23d 132 (url "https://github.com/Andersbakken/rct")
e8b40974
FT
133 (commit commit)))
134 (sha256
135 (base32
136 "1m2931jacka27ghnpgf1z1plkkr64z0pga4r4zdrfpp2d7xnrdvb"))
a893dc2f 137 (patches (search-patches "rct-add-missing-headers.patch"))
e8b40974
FT
138 (file-name (git-file-name name version))))
139 (build-system cmake-build-system)
140 (arguments
141 '(#:configure-flags
a893dc2f
FT
142 '("-DWITH_TESTS=ON" ; To run the test suite
143 "-DRCT_RTTI_ENABLED=ON")))
e8b40974
FT
144 (native-inputs
145 `(("cppunit" ,cppunit)
bad12e83
LF
146 ("pkg-config" ,pkg-config)))
147 (inputs
148 `(("openssl" ,openssl)
e8b40974 149 ("zlib" ,zlib)))
1e72a23d 150 (home-page "https://github.com/Andersbakken/rct")
e8b40974
FT
151 (synopsis "C++ library providing Qt-like APIs on top of the STL")
152 (description "Rct is a set of C++ tools that provide nicer (more Qt-like)
153 APIs on top of Standard Template Library (@dfn{STL}) classes.")
154 (license (list license:expat ; cJSON
155 license:bsd-4))))) ; everything else (LICENSE.txt)
27031358
LC
156
157(define-public dashel
158 (package
159 (name "dashel")
160 (version "1.3.3")
6d42b87f
TGR
161 (source
162 (origin
163 (method git-fetch)
164 (uri (git-reference
b0e7b699 165 (url "https://github.com/aseba-community/dashel")
6d42b87f
TGR
166 (commit version)))
167 (sha256
168 (base32 "0anks2l2i2qp0wlzqck1qgpq15a3l6dg8lw2h8s4nsj7f61lffwy"))
169 (file-name (git-file-name name version))))
27031358 170 (build-system cmake-build-system)
6d42b87f 171 (arguments '(#:tests? #f)) ; no tests
27031358 172 (native-inputs `(("pkg-config" ,pkg-config)))
6d42b87f 173 (home-page "https://github.com/aseba-community/dashel")
27031358
LC
174 (synopsis "Data stream helper encapsulation library")
175 (description
176 "Dashel is a data stream helper encapsulation C++ library. It provides a
177unified access to TCP/UDP sockets, serial ports, console, and files streams.
178It also allows a server application to wait for any activity on any
179combination of these streams.")
180 (license license:bsd-3)))
655ca713
FT
181
182(define-public xsimd
183 (package
184 (name "xsimd")
7f5c1233 185 (version "7.2.3")
e8211364
TGR
186 (source
187 (origin
188 (method git-fetch)
189 (uri (git-reference
b0e7b699 190 (url "https://github.com/QuantStack/xsimd")
e8211364
TGR
191 (commit version)))
192 (sha256
7f5c1233 193 (base32 "1ny2qin1j4h35mljivh8z52kwdyjxf4yxlzb8j52ji91v2ccc88j"))
e8211364 194 (file-name (git-file-name name version))))
655ca713
FT
195 (build-system cmake-build-system)
196 (arguments
7f5c1233
TGR
197 `(#:configure-flags (list "-DBUILD_TESTS=ON")
198 #:test-target "xtest"))
655ca713
FT
199 (native-inputs
200 `(("googletest" ,googletest)))
e8211364 201 (home-page "https://github.com/QuantStack/xsimd")
655ca713
FT
202 (synopsis "C++ wrappers for SIMD intrinsics and math implementations")
203 (description "xsimd provides a unified means for using SIMD features for
204library authors. Namely, it enables manipulation of batches of numbers with
205the same arithmetic operators as for single values. It also provides
206accelerated implementation of common mathematical functions operating on
207batches.")
208 (license license:bsd-3)))
385357c0 209
26407098
VM
210(define-public chaiscript
211 (package
212 (name "chaiscript")
213 (version "6.1.0")
214 (source
215 (origin
216 (method git-fetch)
217 (uri (git-reference
218 (url "https://github.com/ChaiScript/ChaiScript")
219 (commit (string-append "v" version))))
220 (file-name (git-file-name name version))
221 (sha256
222 (base32 "0i1c88rn1wwz8nf3dpapcdkk4w623m3nksfy5yjai10k9irkzy3c"))))
223 (build-system cmake-build-system)
224 (home-page "https://chaiscript.com/")
225 (synopsis "Embedded scripting language designed for C++")
226 (description
227 "ChaiScript is one of the only embedded scripting language designed from
228the ground up to directly target C++ and take advantage of modern C++
229development techniques. Being a native C++ application, it has some advantages
230over existing embedded scripting languages:
231
232@enumerate
233@item Uses a header-only approach, which makes it easy to integrate with
234existing projects.
235@item Maintains type safety between your C++ application and the user scripts.
236@item Supports a variety of C++ techniques including callbacks, overloaded
237functions, class methods, and stl containers.
238@end enumerate\n")
239 (license license:bsd-3)))
240
385357c0
FT
241(define-public fifo-map
242 (let* ((commit "0dfbf5dacbb15a32c43f912a7e66a54aae39d0f9")
243 (revision "0")
244 (version (git-version "1.1.1" revision commit)))
245 (package
246 (name "fifo-map")
247 (version version)
248 (home-page "https://github.com/nlohmann/fifo_map")
249 (source (origin
250 (method git-fetch)
251 (uri (git-reference
252 (url home-page)
253 (commit commit)))
254 (sha256
255 (base32
256 "0pi77b75kp0l7z454ihcd14nzpi3nc5m4nyjbsgy5f9bw3676196"))
257 (patches (search-patches "fifo-map-remove-catch.hpp.patch"
258 "fifo-map-fix-flags-for-gcc.patch"))
259 (file-name (git-file-name name version))
260 (modules '((guix build utils)))
261 (snippet '(delete-file-recursively "./test/thirdparty"))))
262 (native-inputs
8aa59a54 263 `(("catch2" ,catch-framework2-1)))
385357c0
FT
264 (build-system cmake-build-system)
265 (arguments
266 `(#:phases
267 (modify-phases %standard-phases
268 (replace 'check
269 (lambda _
270 (invoke "./unit")))
271 (replace 'install
272 (lambda* (#:key outputs #:allow-other-keys)
273 (let* ((out (assoc-ref outputs "out"))
274 (inc (string-append out "/include/fifo_map")))
275 (with-directory-excursion
276 (string-append "../" ,name "-" ,version "-checkout")
277 (install-file "src/fifo_map.hpp" inc)
278 #t)))))))
279 (synopsis "FIFO-ordered associative container for C++")
280 (description "Fifo_map is a C++ header only library for associative
281container which uses the order in which keys were inserted to the container
282as ordering relation.")
283 (license license:expat))))
e3c0676a
FT
284
285(define-public json-modern-cxx
286 (package
287 (name "json-modern-cxx")
7b403575 288 (version "3.9.1")
8f22bf9e 289 (home-page "https://github.com/nlohmann/json")
e3c0676a
FT
290 (source
291 (origin
8f22bf9e
MB
292 (method git-fetch)
293 (uri (git-reference (url home-page)
294 (commit (string-append "v" version))))
e3c0676a 295 (sha256
7b403575 296 (base32 "0ar4mzp53lskxw3vdzw07f47njcshl3lwid9jfq6l7yx6ds2nyjc"))
8f22bf9e 297 (file-name (git-file-name name version))
e3c0676a
FT
298 (modules '((guix build utils)))
299 (snippet
300 '(begin
ff97c862
MB
301 ;; Delete bundled software. Preserve doctest_compatibility.h, which
302 ;; is a wrapper library added by this package.
303 (install-file "./test/thirdparty/doctest/doctest_compatibility.h" "/tmp")
304 (for-each delete-file-recursively
305 '("./third_party" "./test/thirdparty" "./benchmarks/thirdparty"))
306 (install-file "/tmp/doctest_compatibility.h" "./test/thirdparty/doctest")
307
308 ;; Adjust for the unbundled fifo_map and doctest.
309 (substitute* "./test/thirdparty/doctest/doctest_compatibility.h"
310 (("#include \"doctest\\.h\"")
311 "#include <doctest/doctest.h>"))
e3c0676a 312 (with-directory-excursion "test/src"
ff97c862 313 (let ((files (find-files "." "\\.cpp$")))
e3c0676a
FT
314 (substitute* files
315 (("#include ?\"(fifo_map.hpp)\"" all fifo-map-hpp)
316 (string-append
8f22bf9e
MB
317 "#include <fifo_map/" fifo-map-hpp ">")))))
318 #t))))
295b4f7e
MB
319 (build-system cmake-build-system)
320 (arguments
321 '(#:configure-flags
322 (list (string-append "-DJSON_TestDataDirectory="
323 (assoc-ref %build-inputs "json_test_data")))
324 #:phases (modify-phases %standard-phases
295b4f7e
MB
325 ;; XXX: When tests are enabled, the install phase will cause
326 ;; a needless rebuild without the given configure flags,
327 ;; ultimately creating both $out/lib and $out/lib64. Move
328 ;; the check phase after install to work around it.
329 (delete 'check)
330 (add-after 'install 'check
331 (lambda* (#:key tests? #:allow-other-keys)
332 (if tests?
333 ;; Some tests need git and a full checkout, skip those.
334 (invoke "ctest" "-LE" "git_required")
335 (format #t "test suite not run~%"))
336 #t)))))
e3c0676a 337 (native-inputs
ff97c862 338 `(("amalgamate" ,amalgamate)
295b4f7e
MB
339 ("doctest" ,doctest)
340 ("json_test_data"
341 ,(let ((version "3.0.0"))
342 (origin
343 (method git-fetch)
344 (uri (git-reference
345 (url "https://github.com/nlohmann/json_test_data")
346 (commit (string-append "v" version))))
347 (file-name (git-file-name "json_test_data" version))
348 (sha256
349 (base32
350 "0nzsjzlvk14dazwh7k2jb1dinb0pv9jbx5jsyn264wvva0y7daiv")))))))
e3c0676a 351 (inputs
ff97c862 352 `(("fifo-map" ,fifo-map)))
e3c0676a
FT
353 (synopsis "JSON parser and printer library for C++")
354 (description "JSON for Modern C++ is a C++ JSON library that provides
cfcfc6ab 355intuitive syntax and trivial integration.")
e3c0676a 356 (license license:expat)))
6f3c8506 357
936aa052
MB
358(define-public nlohmann-json-cpp
359 (deprecated-package "nlohmann-json-cpp" json-modern-cxx))
360
6f3c8506
FT
361(define-public xtl
362 (package
363 (name "xtl")
098593e6 364 (version "0.6.18")
6f3c8506 365 (source (origin
0bb41aec
KK
366 (method git-fetch)
367 (uri
368 (git-reference
b0e7b699 369 (url "https://github.com/QuantStack/xtl")
0bb41aec 370 (commit version)))
6f3c8506
FT
371 (sha256
372 (base32
098593e6 373 "0s9gnv1wq0cmpw878dmx0lnci86895hhdrwyc9x8lfbc1hr7ypnh"))
0bb41aec 374 (file-name (git-file-name name version))))
6f3c8506
FT
375 (native-inputs
376 `(("googletest" ,googletest)
377 ("json-modern-cxx" ,json-modern-cxx)))
378 (arguments
379 `(#:configure-flags
380 '("-DBUILD_TESTS=ON")
381 #:phases
382 (modify-phases %standard-phases
383 (replace 'check
384 (lambda* _
385 (with-directory-excursion "test"
386 (invoke "./test_xtl")
387 #t))))))
388 (home-page "https://github.com/QuantStack/xtl")
389 (build-system cmake-build-system)
390 (synopsis "C++ template library providing some basic tools")
391 (description "xtl is a C++ header-only template library providing basic
392tools (containers, algorithms) used by other QuantStack packages.")
393 (license license:bsd-3)))
8da3513f
MO
394
395(define-public ccls
396 (package
397 (name "ccls")
abd90f63 398 (version "0.20190823.6")
8da3513f
MO
399 (source
400 (origin
401 (method git-fetch)
402 (uri (git-reference
403 (url "https://github.com/MaskRay/ccls")
404 (commit version)))
405 (sha256
abd90f63 406 (base32 "11h5nwk4qqshf3i8yr4bxpnvmidrhkzd0zxhf1xqv8cv6r08k47f"))
8da3513f
MO
407 (file-name (git-file-name name version))))
408 (build-system cmake-build-system)
409 (arguments
abd90f63 410 '(#:tests? #f)) ; no check target
1171c4b3
BG
411 (inputs
412 `(("rapidjson" ,rapidjson)))
2c82d4ad 413 (native-inputs
1171c4b3
BG
414 `(("clang" ,clang)
415 ("llvm" ,llvm)))
8da3513f
MO
416 (home-page "https://github.com/MaskRay/ccls")
417 (synopsis "C/C++/Objective-C language server")
418 (description
419 "@code{ccls} is a server implementing the Language Server Protocol (LSP)
420for C, C++ and Objective-C languages. It uses @code{clang} to perform static
421code analysis and supports cross references, hierarchies, completion and
422syntax highlighting. @code{ccls} is derived from @code{cquery} which is not
423maintained anymore.")
424 (license license:asl2.0)))
cdc81cce
PN
425
426(define-public gperftools
427 (package
428 (name "gperftools")
4ec610af 429 (version "2.8")
cdc81cce
PN
430 (source
431 (origin
432 (method git-fetch)
433 (uri (git-reference
434 (url "https://github.com/gperftools/gperftools")
435 (commit (string-append "gperftools-" version))))
436 (sha256
4ec610af 437 (base32 "1rnc53kaxlljgbpsff906vdsry9jl9gcvcnmxgkprwzxq1wipyd0"))
cdc81cce
PN
438 (file-name (git-file-name name version))))
439 (build-system gnu-build-system)
440 (native-inputs
441 `(("autoconf" ,autoconf)
442 ("automake" ,automake)
443 ("libtool" ,libtool)
4ec610af 444 ;; For tests.
cdc81cce
PN
445 ("perl" ,perl)))
446 (home-page "https://github.com/gperftools/gperftools")
447 (synopsis "Multi-threaded malloc() and performance analysis tools for C++")
448 (description
449 "@code{gperftools} is a collection of a high-performance multi-threaded
450malloc() implementation plus some thread-friendly performance analysis
451tools:
452
453@itemize
454@item tcmalloc,
455@item heap profiler,
456@item heap checker,
457@item CPU checker.
458@end itemize\n")
459 (license license:bsd-3)))
7e08be71
MO
460
461(define-public cpplint
462 (package
463 (name "cpplint")
6c25b00d 464 (version "1.4.5")
7e08be71
MO
465 (source
466 (origin
467 (method git-fetch)
468 ;; Fetch from github instead of pypi, since the test cases are not in
469 ;; the pypi archive.
470 (uri (git-reference
471 (url "https://github.com/cpplint/cpplint")
472 (commit version)))
473 (sha256
6c25b00d 474 (base32 "1yzcxqx0186sh80p0ydl9z0ld51fn2cdpz9hmhrp15j53g9ira7c"))
7e08be71 475 (file-name (git-file-name name version))))
6c25b00d
MO
476 (arguments
477 `(#:phases
478 (modify-phases %standard-phases
479 (add-before 'check 'use-later-pytest
480 (lambda _
481 (substitute* "test-requirements"
482 (("pytest.*") "pytest\n"))
483 #t)))))
7e08be71 484 (build-system python-build-system)
6c25b00d
MO
485 (native-inputs
486 `(("python-pytest" ,python-pytest)
487 ("python-pytest-cov" ,python-pytest-cov)
488 ("python-pytest-runner" ,python-pytest-runner)))
7e08be71
MO
489 (home-page "https://github.com/cpplint/cpplint")
490 (synopsis "Static code checker for C++")
491 (description "@code{cpplint} is a command-line tool to check C/C++ files
492for style issues following Google’s C++ style guide. While Google maintains
493it's own version of the tool, this is a fork that aims to be more responsive
494and make @code{cpplint} usable in wider contexts.")
495 (license license:bsd-3)))
27bcdfcd 496
24e37fbb
AT
497(define-public reproc
498 (package
499 (name "reproc")
500 (version "14.1.0")
501 (source
502 (origin
503 (method git-fetch)
504 (uri (git-reference
505 (url "https://github.com/DaanDeMeyer/reproc")
506 (commit (string-append "v" version))))
507 (file-name (git-file-name name version))
508 (sha256
509 (base32
510 "1n71wb50qv2dmhjgw7azx5gigbrp19l2n3d41g9p05l5l0y1qg0q"))))
511 (build-system cmake-build-system)
512 (arguments
513 ;; No tests.
514 `(#:tests? #f
515 ;; Enable building of shared library.
516 #:configure-flags `("-DBUILD_SHARED_LIBS=1")))
517 (native-inputs
518 `(("pkg-config" ,pkg-config)))
519 (synopsis "Process IO library")
520 (description "reproc (Redirected Process) is a C/C++ library that
521simplifies starting, stopping and communicating with external programs. The
522main use case is executing command line applications directly from C or C++
523code and retrieving their output.")
524 (home-page "https://github.com/DaanDeMeyer/reproc")
525 (license license:expat)))
526
27bcdfcd
JW
527(define-public sobjectizer
528 (package
529 (name "sobjectizer")
530 (version "5.6.1")
531 (source
532 (origin
533 (method git-fetch)
534 (uri (git-reference
b0e7b699 535 (url "https://github.com/Stiffstream/sobjectizer")
27bcdfcd
JW
536 (commit (string-append "v." version))))
537 (sha256
538 (base32 "0jfai7sqxnnjkms38krm7mssj5l79nb3pllkbyj4j581a7l5j6l5"))
539 (file-name (git-file-name name version))))
540 (build-system cmake-build-system)
541 (arguments
542 `(#:tests? #f
543 #:phases
544 (modify-phases %standard-phases
545 (add-after 'unpack 'change-directory
546 (lambda _
547 (chdir "dev")
548 #t)))))
549 (home-page "https://stiffstream.com/en/products/sobjectizer.html")
550 (synopsis "Cross-platform actor framework for C++")
551 (description
552 "SObjectizer is a cross-platform \"actor frameworks\" for C++.
553SObjectizer supports not only the Actor Model but also the Publish-Subscribe
554Model and CSP-like channels. The goal of SObjectizer is to simplify
555development of concurrent and multithreaded applications in C++.")
556 (license license:bsd-3)))
999f1f0b 557
558(define-public tweeny
559 (package
560 (name "tweeny")
561 (version "3")
562 (source
563 (origin
564 (method git-fetch)
565 (uri (git-reference
b0e7b699 566 (url "https://github.com/mobius3/tweeny")
999f1f0b 567 (commit (string-append "v" version))))
568 (file-name (git-file-name name version))
569 (sha256
570 (base32 "1adm4c17pi7xf3kf6sjyxibz5rdg1ka236p72xsm6js4j9gzlbp4"))))
571 (arguments
572 '(#:tests? #f)) ;no check target
573 (build-system cmake-build-system)
574 (home-page "https://mobius3.github.io/tweeny/")
575 (synopsis "Modern C++ tweening library")
576 (description "@code{Tweeny} is an inbetweening library designed for the
577creation of complex animations for games and other beautiful interactive
578software. It leverages features of modern @code{C++} to empower developers with
579an intuitive API for declaring tweenings of any type of value, as long as they
580support arithmetic operations. The goal of @code{Tweeny} is to provide means to
581create fluid interpolations when animating position, scale, rotation, frames or
582other values of screen objects, by setting their values as the tween starting
583point and then, after each tween step, plugging back the result.")
584 (license license:expat)))
33aa372e
RJ
585
586(define-public abseil-cpp
587 (package
588 (name "abseil-cpp")
6dcc1710 589 (version "20200225.2")
33aa372e
RJ
590 (source (origin
591 (method git-fetch)
592 (uri (git-reference
b0e7b699 593 (url "https://github.com/abseil/abseil-cpp")
33aa372e
RJ
594 (commit version)))
595 (file-name (git-file-name name version))
596 (sha256
597 (base32
6dcc1710 598 "0dwxg54pv6ihphbia0iw65r64whd7v8nm4wwhcz219642cgpv54y"))))
33aa372e
RJ
599 (build-system cmake-build-system)
600 (arguments
601 `(#:configure-flags (list "-DBUILD_SHARED_LIBS=ON"
602 "-DABSL_RUN_TESTS=ON"
603 ;; Needed, else we get errors like:
604 ;;
605 ;; ld: CMakeFiles/absl_periodic_sampler_test.dir/internal/periodic_sampler_test.cc.o:
606 ;; undefined reference to symbol '_ZN7testing4Mock16UnregisterLockedEPNS_8internal25UntypedFunctionMockerBaseE'
87bf5680 607 ;; ld: /gnu/store/...-googletest-1.10.0/lib/libgmock.so:
33aa372e
RJ
608 ;; error adding symbols: DSO missing from command line
609 ;; collect2: error: ld returned 1 exit status
610 "-DCMAKE_EXE_LINKER_FLAGS=-lgtest -lpthread -lgmock")
611 #:phases
612 (modify-phases %standard-phases
613 (add-before 'configure 'remove-gtest-check
614 ;; The CMakeLists fails to find our googletest for some reason, but
615 ;; it works nonetheless.
616 (lambda _
617 (substitute* "CMakeLists.txt"
618 (("check_target\\(gtest\\)") "")
619 (("check_target\\(gtest_main\\)") "")
620 (("check_target\\(gmock\\)") "")))))))
621 (native-inputs
622 `(("googletest" ,googletest)))
623 (home-page "https://abseil.io")
624 (synopsis "Augmented C++ standard library")
625 (description "Abseil is a collection of C++ library code designed to
626augment the C++ standard library. The Abseil library code is collected from
627Google's C++ code base.")
628 (license license:asl2.0)))
741d2226
BW
629
630(define-public pegtl
631 (package
632 (name "pegtl")
633 (version "2.8.3")
634 (source (origin
635 (method git-fetch)
636 (uri (git-reference
b0e7b699 637 (url "https://github.com/taocpp/PEGTL")
741d2226
BW
638 (commit version)))
639 (file-name (git-file-name name version))
640 (sha256
641 (base32
642 "17crgjfdx55imi2dqnz6xpvsxq07390yfgkz5nd2g77ydkvq9db3"))))
643 (build-system cmake-build-system)
644 (home-page "https://github.com/taocpp/PEGTL")
645 (synopsis "Parsing Expression Grammar template library")
646 (description "The Parsing Expression Grammar Template Library (PEGTL) is
647a zero-dependency C++ header-only parser combinator library for creating
648parsers according to a Parsing Expression Grammar (PEG).")
649 (license license:expat)))