From patchwork Wed Jan 15 20:16:42 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dariqq X-Patchwork-Id: 37078 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 4A4E927BBEA; Wed, 15 Jan 2025 20:19:40 +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 F19BE27BBE2 for ; Wed, 15 Jan 2025 20:19:39 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tY9r5-0000Dp-29; Wed, 15 Jan 2025 15:19:11 -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 1tY9qx-0000Bo-Bx for guix-patches@gnu.org; Wed, 15 Jan 2025 15:19: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 1tY9qx-0007nk-2V for guix-patches@gnu.org; Wed, 15 Jan 2025 15:19: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=ir9nGQkMQOtEKexPouYhSM9SPc5zOvCW/fVS1lat234=; b=OkiHDe9sToqc7nrYpNDzOq7gy25a/3OIM24fAuE+SE8bm6YzzbAFX439rEk0Q+Wqws441x1WqNwCGMUV3wE1uHGbTWBq3a3xKJ//TA8Gir2xnP2Ho0MSEZRSBgdLD8Crh5JIfUOoETvkPZ7p/OwreqLyHB3eOBhoAZm60wuKGXbiTXRpq7YefrUU18SMmn9qi6VSno85EyBVlaYnyWrmTd9+IAo6ezViTH2KgOzM0evJdxW/ahglcLGsrM5Y+2VkbcZ8LlD9j8XwGnvdI8wAkeNSwapQMKMRfCr6I/f7S2OrSS0YJFeAJoZ6me0W9ibiP5Pxl4d/kRAD7slvjynAOQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tY9qw-0005kE-UO for guix-patches@gnu.org; Wed, 15 Jan 2025 15:19:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#71968] [PATCH v8 1/3] gnu: Add yyjson. Resent-From: Dariqq Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 15 Jan 2025 20:19: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.173697230122006 (code B ref 71968); Wed, 15 Jan 2025 20:19:02 +0000 Received: (at 71968) by debbugs.gnu.org; 15 Jan 2025 20:18:21 +0000 Received: from localhost ([127.0.0.1]:58865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tY9qH-0005il-2h for submit@debbugs.gnu.org; Wed, 15 Jan 2025 15:18:21 -0500 Received: from mout01.posteo.de ([185.67.36.65]:42473) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tY9qC-0005i7-Fw for 71968@debbugs.gnu.org; Wed, 15 Jan 2025 15:18:17 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E0922240027 for <71968@debbugs.gnu.org>; Wed, 15 Jan 2025 21:18:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1736972289; bh=9BfWv0F/KAX14Wz2DaMtdzNc6oq8WuBfjaGtQv/3ZEk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=AftcA8iwfUxns6/iIy2InzsoCOuay8iLZ44hu/xZWPwGY3/METa7VH/PZ4w7VRe6z d1Z9SsVQP2yYTzri0inQUds7FTr+c3xdAQzF3QY/UoSWGtL6cZ4JoKcjxAhq/stxNS 5mhJp//V6AugrugQBeelE5glLAviSpnhKodCeB5klq9nQ3Ekbard5lBy2gfKzT4wsh 1iXa9ZVmFlLZEiBU+qNm6JlB9DdO6e12yHA9PZKzSMu2ZtS1yvBXeVEetzbz5drbmF osJJPRyWX4qpzYUBawHPz/AY4xKnDvnatr5ViV4uQrwS/yvrirPtwQRq4TOVOKR2xd dOfNOn9qYyO3A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YYHPF1FyHz6tyK; Wed, 15 Jan 2025 21:18:09 +0100 (CET) From: Dariqq Date: Wed, 15 Jan 2025 20:16:42 +0000 Message-ID: <80ca7c9342b8da1fef39a19f3054d38ef666d794.1736971588.git.dariqq@posteo.net> 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 07df24d4e1..25c0587227 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)))