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