From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 2BHtGRGfPWcxqAAA62LTzQ:P1 (envelope-from ) for ; Wed, 20 Nov 2024 08:34:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 2BHtGRGfPWcxqAAA62LTzQ (envelope-from ) for ; Wed, 20 Nov 2024 09:34:25 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=pZ+ZeBGO; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=aeq2ITWM; dmarc=fail reason="SPF not aligned (strict), DKIM not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1732091665; a=rsa-sha256; cv=none; b=ZwMqtvdUO9l0Jh+fFynPRMBazy91BO8DuzZOZv8Ixw+cx5tcGJzLpD3ln0mukbS2pstgDA FySkNv4XIi20TppBUocfWAkm9G0WcH+XGaQwM58mBRztdy0mjZiOvXzRNsWJewmjnagPBX kkNha5eMlvCTCRxqj6QFQF+TM5XLqKsXWEz+KwjOFcoVT7XGKDgFPVv3w9FwX4OT147aku ogom6+vmjHzdiNIx+ru76WgZ1tiu5ng9EXvflKAQukGz+TEGvCN05h1cvZO+y5K68RwHd3 7V4o9psI55DSSP87y09IbsTvwZRPpi6sL0i6Lfo3YStXQ/eVvUbXG1zMrkJXow== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=pZ+ZeBGO; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=aeq2ITWM; dmarc=fail reason="SPF not aligned (strict), DKIM not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1732091665; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=5IOV1n8mr547mB6oRSeweSkqnDu1WPPI1EkFaZIa0EQ=; b=XIKP0D/ip0z4O5S2OCROl/3+16hc/mFabu0VYeyDztkEx7pW4DWKfINENJoudY5tVgg974 uBXlhy8RKfYlqRm/zy6VVLYfIc/iWVottdqnt0kI6PQE6JnI0ZgCyUxkXKJXXlPmT/n9cD h+jpeL2IrUIdXkCsTVOa0DrlfRb3d/MO/HSM/NdKDh286mrKMBMDNzuQhGwhvc/dwodfd+ Z0qWnMjmOja4Lrov4TXCToiWwrpu82IboZgjwZp8Yw4NxSmHEvNtsfU7M2REe+z0zHHlSN AWtTZjlDhbtQ7LQHqgt2b77lWkzLl7D7Yyqkpf3WZj7/F12bL4AIW7OSEqPCsA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 88ED4368C for ; Wed, 20 Nov 2024 09:34:24 +0100 (CET) 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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -0.70 X-Spam-Score: -0.70 X-Migadu-Queue-Id: 88ED4368C X-Migadu-Scanner: mx12.migadu.com X-TUID: I7yZiJuJTnoG * 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))) -- 2.46.0