summaryrefslogtreecommitdiff
path: root/gnu/packages/cpp.scm
diff options
context:
space:
mode:
authorSergio Pastor Pérez <sergio.pastorperez@gmail.com>2026-08-11 08:36:55 +0200
committerLudovic Courtès <ludo@gnu.org>2026-08-18 18:09:50 +0200
commit05535afe1ccbbc365884ef1aecf00e491b2a1a61 (patch)
tree62e36597aa699ef6d675e8c820f0acd37c84a353 /gnu/packages/cpp.scm
parent6279303caa636820ff9030d4bdb10f9ea2d28800 (diff)
gnu: Add splice.
* gnu/packages/cpp.scm (splice): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Merges: #10480
Diffstat (limited to 'gnu/packages/cpp.scm')
-rw-r--r--gnu/packages/cpp.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index f9a1d073223..7167adb98ad 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -1091,6 +1091,33 @@ compatible with C++11, but will use newer language features if they are
1091available.") 1091available.")
1092 (license license:boost1.0)))) 1092 (license license:boost1.0))))
1093 1093
1094(define-public splice
1095 (package
1096 (name "splice")
1097 (version "0.2.0")
1098 (source
1099 (origin
1100 (method git-fetch)
1101 (uri (git-reference
1102 (url "https://github.com/FloofyPlasma/splice")
1103 (commit (string-append "v" version))))
1104 (file-name (git-file-name name version))
1105 (sha256
1106 (base32 "11g3g8zjq612lfxnk8yfyv5rm7s7cvhrjq5prqyix1lsdrfkq5r8"))))
1107 (build-system cmake-build-system)
1108 (arguments
1109 (list
1110 #:configure-flags
1111 #~(list "-DSPLICE_BUILD_TESTS=ON")))
1112 (native-inputs (list catch2 gcc-16))
1113 (home-page "https://github.com/FloofyPlasma/splice")
1114 (synopsis "Header-only C++26 reflection-based hook and mixin library")
1115 (description
1116 "Splice is a header-only C++26 hook and mixin library powered by static
1117reflection. Splice lets you register before, after, and return hooks on
1118annotated class methods at runtime, with zero overhead for unannotated code.")
1119 (license license:expat)))
1120
1094(define-public google-highway 1121(define-public google-highway
1095 (package 1122 (package
1096 (name "google-highway") 1123 (name "google-highway")