From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.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 CG6/EOfx6mapCgAA62LTzQ:P1 (envelope-from ) for ; Wed, 18 Sep 2024 15:29:43 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id CG6/EOfx6mapCgAA62LTzQ (envelope-from ) for ; Wed, 18 Sep 2024 17:29:43 +0200 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=QOyb8+jk; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=eqlEF9so; 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), DKIM 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=1726673353; 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=kQhTDF/AM/IeGpJHd3uNBRhkuXfosr7FUdg0Xv2aWdQ=; b=NkyLIU4UQHglGWzYNUibHCac5eDG4DpFnJWPfKChZqNW0vqzzGmiGL/KOP5Ho6ztuFbgoc OV07s1jyIeLa3fd7DTDg4e7ZaUyblrg8CwECvOJ6CvK9FOBCPB+WnW2k+HM15wp0L+q9CK HMn0sVL0DhJ0CSBlMx+rCtM+Vdh+LLR3URPi9KNCZAczwOXnEgNGTfKQ6h5AG5qSUVhYLj LiTdMjbYkiD6Dy0PnBjzqT0ha7S91X1KgApNS5H7wG4+KzqkB8nrMoWlvwsefrxB7zrRNt ZjevbGcV0x1kis7+ISqLR1UV0LWhvZaGU+nz7GIBpvBSB3ZXClLT74MdgVK1QQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=QOyb8+jk; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=eqlEF9so; 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), DKIM not aligned (strict)" header.from=posteo.net (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1726673353; a=rsa-sha256; cv=none; b=LmiU6Nk/m5LRjBhDLlnnZGJDjbniKiuOZfbg+t0LET0LstJK7MO9M2M7AU/ePnHYUudEI1 s/GaWfgWIxGxq4SjZWfywAnUBT23ClzYLsUR+FN+G+ToYhh9uAHGSY97uSNf6l+HWKK5Yh 7XZw1CU95g4O7v+82Y4m84a5xhGpjeVKGEkNwRE+eS3ukeb0sUO4GXZ5jC37ar7TqNBi8q 5O4GmCRkK9zvzu93udIQxXAPZ9ZWfxIJwrJepJArxvkJdJmimIc23///fREHWBa5XOn5RW 8VSZhGTVWz+Aag4qMmNFJ8+6HT6iqECOnUCWOuXn9HzTtY14C8HYVd6USPHGYw== 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 0389F7D4D7 for ; Wed, 18 Sep 2024 17:29:13 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqwbp-00059T-T5; Wed, 18 Sep 2024 11:28:49 -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 1sqwbm-00058u-01 for guix-patches@gnu.org; Wed, 18 Sep 2024 11:28:46 -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 1sqwbl-0005MS-NS for guix-patches@gnu.org; Wed, 18 Sep 2024 11:28:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:In-Reply-To:References:Subject; bh=kQhTDF/AM/IeGpJHd3uNBRhkuXfosr7FUdg0Xv2aWdQ=; b=QOyb8+jkHTMWhxk32LQocSJDmlvqNaPa26xNmmohpNSv0G+FnF1+c8MyZ+rZskswvmliZYTHA/kBlizsfsTcE48xdNNAgWeEAVOmTaknMmT2gO90kck7whMC7suLdzzCvcTvrItBfRLjGvhH47/3Hhc4IKu+9IibpMKlzuXfYtkLjIV+vjJqj4NSH6NSxRSJ4c1VOIL/mDDmlLGeOGKrUAml8SYmDfBx6KD4X1nKzGKQXCWuPGDmy7vfHh6axVMxX9QNHKd+amjsFs+URnMdmVyksO+iSLoY4domIWw91ANGUN3EEmS01zmSKGJgLnxe1O2zDIcfBqVT9IlzpaLLsw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sqwc1-0002yU-Lc for guix-patches@gnu.org; Wed, 18 Sep 2024 11:29:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71968] [PATCH v5 1/5] gnu: Add yyjson. References: In-Reply-To: Resent-From: Dariqq Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 18 Sep 2024 15:29:01 +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.172667330011331 (code B ref 71968); Wed, 18 Sep 2024 15:29:01 +0000 Received: (at 71968) by debbugs.gnu.org; 18 Sep 2024 15:28:20 +0000 Received: from localhost ([127.0.0.1]:59124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqwbL-0002wg-TL for submit@debbugs.gnu.org; Wed, 18 Sep 2024 11:28:20 -0400 Received: from mout01.posteo.de ([185.67.36.65]:57895) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqwbH-0002w6-JN for 71968@debbugs.gnu.org; Wed, 18 Sep 2024 11:28:19 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 86A1B240027 for <71968@debbugs.gnu.org>; Wed, 18 Sep 2024 17:27:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1726673273; bh=PLwre/wd0VFNjaNGAcmyd+73oxpD6lH767sPPN+ptag=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=eqlEF9sovupuzT3qbxzVYG0Bya4PMlQRATHLYnh79SlL/TIjJ5POxIoBenonlJxBS FuTcSv/Cj2GS3ebWZyM4imaSLAU/qrVYOX91Dfi1qf/gndwEhixYfTXERT96z0cYk1 bRRso9mHrXDZb4O8Y/u2KJdnBeG6NgGDBT1zsErKv02Ai/W2KUPVoRUd9M24Vig6r2 VrovpKmcHs+f0X2XNchCMpLqmvNbnT+qR3OJ4+f/q/nKdh2JOzs2uYHEA/a3LkOiLw Hp9D5bpEyVkX3rcBkWAw6iHJK+UEnMnSOS2kRav/XS6whjnhtGgS+bnpJ+id8tDU6/ SXn8jXBhqVRIQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4X82bD4hQBz9rxR; Wed, 18 Sep 2024 17:27:52 +0200 (CEST) From: Dariqq Date: Wed, 18 Sep 2024 15:27:07 +0000 Message-ID: <507a634c0db389695c2df167beaf31d63a5ad403.1726673231.git.dariqq@posteo.net> 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: -4.71 X-Spam-Score: -4.71 X-Migadu-Queue-Id: 0389F7D4D7 X-Migadu-Scanner: mx10.migadu.com X-TUID: MjwZgaCpGZSS * 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 62234d3c9a..435a70b7be 100644 --- a/gnu/packages/c.scm +++ b/gnu/packages/c.scm @@ -1766,3 +1766,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))) base-commit: 1b6ce1796abdf497f61f426d61339318f4f4f23d -- 2.46.0