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