diff options
| author | Cayetano Santos <csantosb@inventati.org> | 2026-06-06 22:18:12 +0200 |
|---|---|---|
| committer | Cayetano Santos <csantosb@inventati.org> | 2026-06-08 08:31:56 +0200 |
| commit | 583ca6973967eeecd898cbfe9b2d993babf3a041 (patch) | |
| tree | 81f391952bd3789954cd4abe1e4d3d7f8630f4fc /gnu/packages | |
| parent | 2acb5f9da33586b20cb49aeb60d5adcd7468e1fc (diff) | |
gnu: Add cpptrace.
* gnu/packages/cpp.scm (cpptrace): New variable.
Merges guix/guix!9119
Change-Id: I79180a77f33450c3f2f7229ff0a6c70b9b44d0bf
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/cpp.scm | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 778bf9c9701..1c3b56b9f85 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm | |||
| @@ -54,6 +54,7 @@ | |||
| 54 | ;;; Copyright © 2026 Justin Veilleux <terramorpha@cock.li> | 54 | ;;; Copyright © 2026 Justin Veilleux <terramorpha@cock.li> |
| 55 | ;;; Copyright © 2026 Daniel Littlewood <dan@danielittlewood.xyz> | 55 | ;;; Copyright © 2026 Daniel Littlewood <dan@danielittlewood.xyz> |
| 56 | ;;; Copyright © 2026 bdunahu <bdunahu@operationnull.com> | 56 | ;;; Copyright © 2026 bdunahu <bdunahu@operationnull.com> |
| 57 | ;;; Copyright © 2026 Cayetano Santos <csantosb@inventati.org> | ||
| 57 | ;;; | 58 | ;;; |
| 58 | ;;; This file is part of GNU Guix. | 59 | ;;; This file is part of GNU Guix. |
| 59 | ;;; | 60 | ;;; |
| @@ -104,6 +105,7 @@ | |||
| 104 | #:use-module (gnu packages datastructures) | 105 | #:use-module (gnu packages datastructures) |
| 105 | #:use-module (gnu packages disk) | 106 | #:use-module (gnu packages disk) |
| 106 | #:use-module (gnu packages documentation) | 107 | #:use-module (gnu packages documentation) |
| 108 | #:use-module (gnu packages elf) | ||
| 107 | #:use-module (gnu packages fontutils) | 109 | #:use-module (gnu packages fontutils) |
| 108 | #:use-module (gnu packages file) | 110 | #:use-module (gnu packages file) |
| 109 | #:use-module (gnu packages freedesktop) | 111 | #:use-module (gnu packages freedesktop) |
| @@ -387,6 +389,53 @@ and other types of content.") | |||
| 387 | parser, IO and conversion utilities.") | 389 | parser, IO and conversion utilities.") |
| 388 | (license license:gpl2+))) | 390 | (license license:gpl2+))) |
| 389 | 391 | ||
| 392 | (define-public cpptrace | ||
| 393 | (package | ||
| 394 | (name "cpptrace") | ||
| 395 | (version "1.0.4") | ||
| 396 | (source | ||
| 397 | (origin | ||
| 398 | (method git-fetch) | ||
| 399 | (uri (git-reference | ||
| 400 | (url "https://github.com/jeremy-rifkin/cpptrace") | ||
| 401 | (commit (string-append "v" version)))) | ||
| 402 | (file-name (git-file-name name version)) | ||
| 403 | (sha256 | ||
| 404 | (base32 "11lnfjgch6849p9ajk2j6pi0xfwnn5a9d0g1jnq34s9m8l80jq1a")))) | ||
| 405 | (build-system cmake-build-system) | ||
| 406 | (arguments | ||
| 407 | (list | ||
| 408 | #:configure-flags | ||
| 409 | #~(list | ||
| 410 | "-DCPPTRACE_USE_EXTERNAL_ZSTD=ON" | ||
| 411 | "-DCPPTRACE_USE_EXTERNAL_LIBDWARF=ON" | ||
| 412 | "-DCPPTRACE_FIND_LIBDWARF_WITH_PKGCONFIG=ON" | ||
| 413 | "-DBUILD_SHARED_LIBS=ON" | ||
| 414 | "-DCPPTRACE_USE_EXTERNAL_GTEST=ON") | ||
| 415 | #:phases | ||
| 416 | #~(modify-phases %standard-phases | ||
| 417 | ;; Fails with "zlib and zstd are missing, cannot decompress section". | ||
| 418 | (add-after 'unpack 'disable-failing-tests | ||
| 419 | (lambda _ | ||
| 420 | (substitute* "test/CMakeLists.txt" | ||
| 421 | ((".*stacktrace.*") "") | ||
| 422 | ((".*object_trace.*") "") | ||
| 423 | ((".*from_current.*") "") | ||
| 424 | ((".*try_catch.*") "") | ||
| 425 | ((".*traced_exception.*") "") | ||
| 426 | ((".*rethrow.*") ""))))))) | ||
| 427 | (native-inputs | ||
| 428 | (list googletest pkg-config)) | ||
| 429 | (inputs | ||
| 430 | (list libdwarf zlib zstd)) | ||
| 431 | (home-page "https://github.com/jeremy-rifkin/cpptrace") | ||
| 432 | (synopsis "Stacktrace library for C++11 and newer") | ||
| 433 | (description "@code{cpptrace} is a simple and portable C++ stacktrace | ||
| 434 | library supporting C++11 and greater. In addition to providing access to | ||
| 435 | stack traces, @code{cpptrace} also provides a mechanism for getting | ||
| 436 | stacktraces from thrown exceptions for debugging and triaging.") | ||
| 437 | (license license:expat))) | ||
| 438 | |||
| 390 | (define-public rang | 439 | (define-public rang |
| 391 | (package | 440 | (package |
| 392 | (name "rang") | 441 | (name "rang") |
