From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 2MmlEpPyiGbjBAAAe85BDQ:P1 (envelope-from ) for ; Sat, 06 Jul 2024 07:30:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 2MmlEpPyiGbjBAAAe85BDQ (envelope-from ) for ; Sat, 06 Jul 2024 09:30:27 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=QGquqG2n; 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"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1720251027; 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=07LPe3bm7UUNv0r9eE6IKv6eIJQBsNj8lQioruwrWzI=; b=OjrQe3HFVwQd3l6FUjussGOg2JlqbZFnF3ABEeSfZHyDlbw8hJv0yUtiE2KSZl3PCv81K3 gb63fD48ZnH2AmRjn2Ac3ah+yhZ0HBQ0rAAA9tjukNqGw84kuk/KYOefwHGsdFKSShW1jn EuvdvbGdxPGns8YkV23IASOfW26nQdaglVuOO67H580uanQsPqkiAx2AlFhNg+Mn19SN9y EaTUZb2JLfjW12/cs4Blim0q34BMY4xf3NLovCnH147x94upyGx8R1KWiH6bl/99x/PxJa nP6emVNXVVT/5O4KwhgAaChoG2MqMJoC1ZNqnybxEDgekpwtRHu8fMGqV7CCrw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=QGquqG2n; 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"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720251027; a=rsa-sha256; cv=none; b=UTMrF9YnzbiNFG0DqzBzZJO9DzHFnIo6MIXkCD+gTwEBA3gop7VoUenpUSyYYcVH2DVB9f ijD8vUkdA03iXWQU0NKVjfRMBQ3ZGnAZMa0Nbio6IRrbf18rvGZiXh5NX9YA4TAzn3+zOB A4Ezv6DQakf1wVo7JZuCv1oVZ7wDFmzvoEZQPA9VoIMALnnpA6ixNWlrU8ycakfp3573Jj MXgoS2xgH+EE/BzlSX/uYGwNVMfFqfnFrnwct/tbguNtm/vCdbpqako1VzDbByWGSkQ8uL k3Rk2f/ad7kB63qvry+nwVcX9xm7P8QyS748o27vLXXk5b2/vcKLAPN/jS0+mQ== 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 EE8FA69501 for ; Sat, 6 Jul 2024 09:30:26 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPzry-0002MZ-Br; Sat, 06 Jul 2024 03:30:06 -0400 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 1sPzru-0002GL-JB for guix-patches@gnu.org; Sat, 06 Jul 2024 03:30:02 -0400 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 1sPzrr-0007Ei-04 for guix-patches@gnu.org; Sat, 06 Jul 2024 03:30:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sPzru-00051Q-EV for guix-patches@gnu.org; Sat, 06 Jul 2024 03:30:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71968] [PATCH 1/4] gnu: Add yyjson. Resent-From: Dariqq Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 06 Jul 2024 07:30:02 +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.172025099219222 (code B ref 71968); Sat, 06 Jul 2024 07:30:02 +0000 Received: (at 71968) by debbugs.gnu.org; 6 Jul 2024 07:29:52 +0000 Received: from localhost ([127.0.0.1]:45463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPzrj-0004zy-Md for submit@debbugs.gnu.org; Sat, 06 Jul 2024 03:29:51 -0400 Received: from mout01.posteo.de ([185.67.36.65]:42837) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPzrh-0004zf-LY for 71968@debbugs.gnu.org; Sat, 06 Jul 2024 03:29:50 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 1BD38240027 for <71968@debbugs.gnu.org>; Sat, 6 Jul 2024 09:29:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1720250979; bh=td5lslJquDxwt8Kjbp+hWfmxV76U5Ipo/tjgUz2PuHg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=QGquqG2ngqpZ7MAUrdVC1g/iKr7bsuVbqyq4t5VjHk8bOK8kEGDT34CLCA9h2Xcvo xH9yNcgbRDk4mA49oKskgssAyfbYueeEcIHNvN8E4hxQoY4/Ynej1ERZBH9lssi4C5 ZD832tCeTNW2gHjDTe7z6a3cdzWWTjv5s9rgOF97eOfoXgXR531T+Bzppe5Tt2AVUN qcDfEgK33Rukq7bGqNFGbxtK86WqiDzFXg9DAwBNs9sQcZZURKRV4BFu6FqB3igL0O yzJbgThhwIZobzbquR6/c+JK5Cc2XGJegAPi0lyYyHQfHjnFyVBvnLt4umhaZPCD/6 ZVAO1cmheJMZg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WGMTY6Sndz9rxG; Sat, 6 Jul 2024 09:29:37 +0200 (CEST) From: Dariqq Date: Sat, 6 Jul 2024 07:29:16 +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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: 3.91 X-Migadu-Queue-Id: EE8FA69501 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: 3.91 X-TUID: Z976aJge9iMS * 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 d13b62b5e2..b251e0334e 100644 --- a/gnu/packages/c.scm +++ b/gnu/packages/c.scm @@ -1678,3 +1678,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.9.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 "169rqh7mh01g5j4qkqjgfmgnyqjf9r8qxiywf4jkgcb7ln4j64w9")))) + (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.45.2