summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorArun Isaac <arunisaac@systemreboot.net>2026-03-25 02:13:54 +0000
committerArun Isaac <arunisaac@systemreboot.net>2026-05-21 17:10:48 +0100
commitcaa2352f39b318172fc1596dca44397e7c0995e5 (patch)
tree2ed62bf4b126a988612e13ffeffc34cd08721303 /gnu
parentb7da86ff56f73cdde910674bf55461ee7b71bc7c (diff)
gnu: Add tinyformat.
* gnu/packages/cpp.scm (tinyformat): New variable. Change-Id: Ief1692ba4be1d999d07a4468e982855366cc1062
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/cpp.scm40
1 files changed, 39 insertions, 1 deletions
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index f9de2e49fdb..e554ba75fe7 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -28,7 +28,7 @@
28;;; Copyright © 2022-2024 Efraim Flashner <efraim@flashner.co.il> 28;;; Copyright © 2022-2024 Efraim Flashner <efraim@flashner.co.il>
29;;; Copyright © 2022 muradm <mail@muradm.net> 29;;; Copyright © 2022 muradm <mail@muradm.net>
30;;; Copyright © 2022 Attila Lendvai <attila@lendvai.name> 30;;; Copyright © 2022 Attila Lendvai <attila@lendvai.name>
31;;; Copyright © 2022 Arun Isaac <arunisaac@systemreboot.net> 31;;; Copyright © 2022, 2026 Arun Isaac <arunisaac@systemreboot.net>
32;;; Copyright © 2022-2025 David Elsing <david.elsing@posteo.net> 32;;; Copyright © 2022-2025 David Elsing <david.elsing@posteo.net>
33;;; Copyright © 2022-2024 Zheng Junjie <873216071@qq.com> 33;;; Copyright © 2022-2024 Zheng Junjie <873216071@qq.com>
34;;; Copyright © 2022-2024, 2026 Maxim Cournoyer <maxim@guixotic.coop> 34;;; Copyright © 2022-2024, 2026 Maxim Cournoyer <maxim@guixotic.coop>
@@ -937,6 +937,44 @@ inspired by the @url{https://github.com/gruns/icecream, Python library} of the
937same name.") 937same name.")
938 (license license:expat))) 938 (license license:expat)))
939 939
940(define-public tinyformat
941 (package
942 (name "tinyformat")
943 (version "2.3.0")
944 (source (origin
945 (method git-fetch)
946 (uri (git-reference
947 (url "https://github.com/c42f/tinyformat")
948 (commit (string-append "v" version))))
949 (file-name (git-file-name name version))
950 (sha256
951 (base32
952 "0j8bxrg7i4rn98iqpfh03krshgcbwh8hq8nm0p3sfdqpira3vi3y"))))
953 (build-system cmake-build-system)
954 (arguments
955 (list #:phases
956 #~(modify-phases %standard-phases
957 (replace 'install
958 (lambda _
959 (install-file "../source/tinyformat.h"
960 (string-append #$output "/include")))))))
961 (home-page "https://github.com/c42f/tinyformat")
962 (synopsis "Minimal, type-safe printf replacement library for C++")
963 (description "@code{tinyformat} is a type-safe @code{printf} replacement
964library in a single C++ header file. Design goals include:
965
966@itemize
967@item Type-safety and extensibility for user defined types
968@item C99 @code{printf} compatibility, to the extent possible using
969@code{std::ostream}
970@item POSIX extension for positional arguments
971@item Simplicity and minimalism; a single header file to include and
972distribute with your projects
973@item Augment rather than replace the standard stream formatting mechanism
974@item C++98 support, with optional C++11 niceties
975@end itemize")
976 (license license:boost1.0)))
977
940(define-public google-highway 978(define-public google-highway
941 (package 979 (package
942 (name "google-highway") 980 (name "google-highway")