summaryrefslogtreecommitdiff
path: root/gnu/packages/cpp.scm
diff options
context:
space:
mode:
authorSughosha <sughosha@disroot.org>2026-05-01 20:40:54 +0530
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2026-05-04 08:55:25 +0200
commit7714e0bfb57ea31cd44cea7d5f0c9258146f19bb (patch)
tree358f7ceec2f9af26963d6880491f4a0f7cbcfb73 /gnu/packages/cpp.scm
parentacc8f821c8c675934ade276b6e648b19856701ea (diff)
gnu: Add tcbrindle-span.
* gnu/packages/cpp.scm (tcbrindle-span): New variable. Change-Id: I3d439358a4460765f945390ce509e897713cf69b Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu/packages/cpp.scm')
-rw-r--r--gnu/packages/cpp.scm41
1 files changed, 41 insertions, 0 deletions
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index 93c06759f0b..9607b2f9979 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -4494,6 +4494,47 @@ meta data function.")
4494 ;; or the CECILL-C license: 4494 ;; or the CECILL-C license:
4495 (license (list license:lgpl3 license:cecill-c)))) 4495 (license (list license:lgpl3 license:cecill-c))))
4496 4496
4497(define-public tcbrindle-span
4498 (let ((commit "836dc6a0efd9849cb194e88e4aa2387436bb079b")
4499 (revision "0"))
4500 (package
4501 (name "tcbrindle-span")
4502 (version (git-version "0" revision commit))
4503 (source
4504 (origin
4505 (method git-fetch)
4506 (uri (git-reference
4507 (url "https://github.com/tcbrindle/span")
4508 (commit commit)))
4509 (file-name (git-file-name name version))
4510 (sha256
4511 (base32 "1v3x1mj4if8jrr7cmrcbhv8n8ygla0liqb0dic6g6ji7px2pr6jf"))
4512 (modules '((guix build utils)))
4513 ;; Unbundle catch.
4514 (snippet
4515 '(with-directory-excursion "test"
4516 (delete-file "catch.hpp")
4517 (substitute* (find-files "." "\\.cpp$")
4518 (("\"catch\\.hpp\"") "<catch.hpp>"))))))
4519 (build-system cmake-build-system)
4520 (native-inputs (list catch-framework))
4521 (arguments
4522 (list
4523 #:phases
4524 #~(modify-phases %standard-phases
4525 (replace 'install
4526 (lambda _
4527 (mkdir-p (string-append #$output))
4528 (copy-recursively "../source/include"
4529 (string-append #$output "/include")))))))
4530 (home-page "https://github.com/tcbrindle/span")
4531 (synopsis "Implementation of C++20's @code{std::span} for older compilers")
4532 (description
4533 "This package provides a single-header implementation of C++20's
4534@code{std::span}, conforming to the C++20 committee draft. It is compatible
4535with C++11, but will use newer language features if they are available.")
4536 (license license:boost1.0))))
4537
4497(define-public tsl-hopscotch-map 4538(define-public tsl-hopscotch-map
4498 (package 4539 (package
4499 (name "tsl-hopscotch-map") 4540 (name "tsl-hopscotch-map")