1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-13 02:20:53 +02:00

gnu: Add scn.

* gnu/packages/patches/scn-fast-float-compat.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it here.
* gnu/packages/cpp.scm (scn): New variable.
This commit is contained in:
Liliana Marie Prikler 2025-05-28 14:04:57 +02:00
parent eb5ae31d17
commit b32a47f26c
No known key found for this signature in database
GPG key ID: 442A84B8C70E2F87
3 changed files with 77 additions and 0 deletions

View file

@ -1719,6 +1719,34 @@ code and retrieving their output.")
(home-page "https://github.com/DaanDeMeyer/reproc")
(license license:expat)))
(define-public scn
(package
(name "scn")
(version "4.0.1")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/eliaskosunen/scnlib")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(patches (search-patches "scn-fast-float-compat.patch"))
(sha256
(base32 "0lnb9r004y75n4s4pd3k58cdcjpcylhdgr5phwja713g3dd40im8"))))
(build-system cmake-build-system)
(arguments
(list #:configure-flags #~(list "-DSCN_USE_EXTERNAL_GTEST=yes"
"-DSCN_USE_EXTERNAL_BENCHMARK=yes"
"-DSCN_USE_EXTERNAL_FAST_FLOAT=yes"
"-DBUILD_SHARED_LIBS=yes")))
(propagated-inputs (list fast-float))
(native-inputs (list googletest googlebenchmark))
(home-page "https://scnlib.dev/")
(synopsis "Type-safe text parsing library")
(description "@code{scn} is a text parsing library for C++. It can
be used as a safe alternative to @code{scanf} or as a fast alternative to
@code{IOStreams}, analogous to @code{fmt}.")
(license license:asl2.0)))
(define-public sobjectizer
(package
(name "sobjectizer")