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