summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-07-02 18:15:58 +0200
committerAndreas Enge <andreas@enge.fr>2025-07-22 12:48:49 +0200
commit38dcd98c1bbb989651bd7fb65ab7b4a7eebcb436 (patch)
treeb512de8f951d636e5644a2da8ac42ebd7c8f982b /gnu/packages
parent221ad0255dafb55ed1549ea44561290fc9fdd4cc (diff)
gnu: Add toml11.
* gnu/packages/cpp.scm (toml11): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/cpp.scm35
1 files changed, 35 insertions, 0 deletions
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index 9918ae554fa..b6d7a427dec 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -1354,6 +1354,41 @@ intuitive syntax and trivial integration.")
1354a cooperatively interruptible thread that is joined upon destruction.") 1354a cooperatively interruptible thread that is joined upon destruction.")
1355 (license license:cc-by4.0)))) 1355 (license license:cc-by4.0))))
1356 1356
1357(define-public toml11
1358 (package
1359 (name "toml11")
1360 (version "3.7.1")
1361 (source
1362 (origin
1363 (method git-fetch)
1364 (uri (git-reference
1365 (url "https://github.com/ToruNiina/toml11")
1366 (commit (string-append "v" version))))
1367 (file-name (git-file-name name version))
1368 (sha256
1369 (base32 "090i2qg88iknldxd6v2mh3jfvkdkwc5m38czhrbm58r3y835fy0y"))))
1370 (build-system cmake-build-system)
1371 (home-page "https://github.com/ToruNiina/toml11")
1372 (synopsis "TOML for modern C++")
1373 (description
1374 "@code{toml11} is a C++11 (or later) header-only toml parser/encoder
1375depending only on C++ standard library.
1376
1377@itemize
1378@item It is compatible to the latest version of TOML v1.0.0.
1379@item It is one of the most TOML standard compliant libraries, tested with
1380a language agnostic test suite for TOML parsers.
1381@item It shows highly informative error messages.
1382@item It has configurable container. You can use any random-access containers
1383and key-value maps as backend containers.
1384@item It optionally preserves comments without any overhead.
1385@item It has configurable serializer that supports comments, inline tables,
1386literal strings and multiline strings.
1387@item It supports user-defined type conversion from/into toml values.
1388@item It correctly handles UTF-8 sequences, with or without BOM.
1389@end itemize")
1390 (license license:expat)))
1391
1357(define-public tomlplusplus 1392(define-public tomlplusplus
1358 (package 1393 (package
1359 (name "tomlplusplus") 1394 (name "tomlplusplus")