From patchwork Wed Nov 20 08:32:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dariqq X-Patchwork-Id: 70601 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6F41327BBE9; Wed, 20 Nov 2024 08:34:26 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5730E27BBEA for ; Wed, 20 Nov 2024 08:34:25 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tDgA2-0005l5-Ee; Wed, 20 Nov 2024 03:34:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tDgA0-0005jm-2p for guix-patches@gnu.org; Wed, 20 Nov 2024 03:34:04 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tDg9z-0003DV-QG for guix-patches@gnu.org; Wed, 20 Nov 2024 03:34:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=5IOV1n8mr547mB6oRSeweSkqnDu1WPPI1EkFaZIa0EQ=; b=pZ+ZeBGOMnT7WW+TgNaO1Vv76tWSvinexoHCPdzku4n8P0ZFHfzytV5YWfwx25RfiT1K7Z/8ClxJwTgnf5Cf/AlNNBlws6AOB1b8e/kMMNO2fbORLdMqGZQL1e4BH3ZsAB6jZ6cmdrQF1WlYdQXlSRlVJJHp8FH0vWj4qYXhnKOtPgOQD7O51HRd00Sl/Ev/1GgZ+E+umcA1ZvB4W3LzQ6d53mrPvSj9NyCLIyuHhjYZ1ViysEov90gz55erHhAsUg8HVJl/TSbDm6/sdRQ+PmZl+wT/L6vvGcGDdisW/devSI7PXc0m5PTIOKSRLMAEODXmZBdDWB3udc2sKAZrfw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tDg9z-0007VE-KH for guix-patches@gnu.org; Wed, 20 Nov 2024 03:34:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#71968] [PATCH v7 1/3] gnu: Add yyjson. Resent-From: Dariqq Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 20 Nov 2024 08:34:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71968 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71968@debbugs.gnu.org Cc: Dariqq Received: via spool by 71968-submit@debbugs.gnu.org id=B71968.173209160328750 (code B ref 71968); Wed, 20 Nov 2024 08:34:03 +0000 Received: (at 71968) by debbugs.gnu.org; 20 Nov 2024 08:33:23 +0000 Received: from localhost ([127.0.0.1]:45149 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDg9L-0007TZ-7N for submit@debbugs.gnu.org; Wed, 20 Nov 2024 03:33:23 -0500 Received: from mout02.posteo.de ([185.67.36.66]:43059) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDg9C-0007Sa-Q3 for 71968@debbugs.gnu.org; Wed, 20 Nov 2024 03:33:15 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 34977240101 for <71968@debbugs.gnu.org>; Wed, 20 Nov 2024 09:33:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1732091588; bh=P8JMRqPbXPMEZhWnuErOBA8lsGSD+2k/0UhNBSXOl90=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=aeq2ITWMSRUismBAH+tEkjJW5MyA0W0exAl+LmRp0oRgT3fzl2O6PfX2mKjjFIsL9 4BieFjpzAuvA+Z3t34FZdBCikN4Sp0Wy+EBunt7EREXQLZYxCleBowSIV6TgFQDmAD vNPlIDadyXzSXgdTMWW+q4xGWUvJ0UUlrHvl298oVJuKZE6IHdZDjxYCEEOvw3Wvhv /WxXfKz7ksNMSlv4sybmYKQtlvWe+U2+48lfq5bKbYRNVHH7ykYS6QN3eLKjOuF/96 wz/oZ+CuZught+qNrFrgTMR6cP70xcJdCx/wmScLc+WLGKcdp/PotaJ3b1uk1F2ksi eoMNI3ooy71Ng== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4XtZPb3X12z6tsg; Wed, 20 Nov 2024 09:33:07 +0100 (CET) From: Dariqq Date: Wed, 20 Nov 2024 08:32:14 +0000 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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, +and non null-terminated strings. +@item Manipulation: supports querying and modifying using JSON Pointer, +JSON Patch and JSON Merge Patch. +@item Developer-Friendly: easy integration with only one .h and one .c file. +@end itemize") + (license license:expat)))