GNU bug report logs - #71968
[PATCH 0/4] fastfetch: Unbundle yyjson and package improvements

Previous Next

Package: guix-patches;

Reported by: Dariqq <dariqq <at> posteo.net>

Date: Sat, 6 Jul 2024 07:28:01 UTC

Severity: normal

Tags: patch

Done: Sharlatan Hellseher <sharlatanus <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Christopher Baines <mail <at> cbaines.net>
To: Dariqq <dariqq <at> posteo.net>
Cc: 71968 <at> debbugs.gnu.org
Subject: [bug#71968] [PATCH v7 1/3] gnu: Add yyjson.
Date: Sun, 29 Dec 2024 11:29:34 +0000
[Message part 1 (text/plain, inline)]
Dariqq <dariqq <at> posteo.net> writes:

> * gnu/packages/c.scm (yyjson): New variable.
>
> Change-Id: Ica9ff2e1b6676aa8761eb33cbab76154f17e443f
> ---
>  gnu/packages/c.scm | 38 ++++++++++++++++++++++++++++++++++++++
>  1 file changed, 38 insertions(+)
>
> diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm
> index 13fdb99424..2e368ad884 100644
> --- a/gnu/packages/c.scm
> +++ b/gnu/packages/c.scm
> @@ -1764,3 +1764,41 @@ (define-public pcg-c
>  Linear Congruential Generator (LCG) with a permutation function to increase
>  output randomness while retaining speed, simplicity, and conciseness.")
>        (license (list license:expat license:asl2.0))))) ; dual licensed
> +
> +(define-public yyjson
> +  (package
> +    (name "yyjson")
> +    (version "0.10.0")
> +    (source
> +     (origin
> +       (method git-fetch)
> +       (uri (git-reference
> +             (url "https://github.com/ibireme/yyjson")
> +             (commit version)))
> +       (file-name (git-file-name name version))
> +       (sha256
> +        (base32 "0kmzgs24v0rxlibg4qwlm6yplzs96pgxb1gyviijhkra9z7lx7ws"))))
> +    (arguments
> +     (list
> +      #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON"
> +                                "-DYYJSON_BUILD_TESTS=ON")))
> +    (build-system cmake-build-system)
> +    (home-page "https://github.com/ibireme/yyjson")
> +    (synopsis "High performance JSON library written in ANSI C")
> +    (description
> +     "Yyjson is a high performance JSON library written in ANSI C.  Some features include
> +@itemize
> +@item Fast: can read or write gigabytes per second JSON data on modern CPUs.
> +@item Portable: complies with ANSI C (C89) for cross-platform compatibility.
> +@item Strict: complies with RFC 8259 JSON standard, ensuring strict
> +number format and UTF-8 validation.
> +@item Extendable: offers options to allow comments, trailing commas, NaN/Inf,
> + and custom memory allocator.
> +@item Accuracy: can accurately read and write int64, uint64, and double numbers.
> +@item Flexible: supports unlimited JSON nesting levels, \u0000 characters,

Just one observation, here you've written a null character where I'm
guessing you might want \\u0000 instead.
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 125 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.