From patchwork Tue Aug 27 15:18:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dariqq X-Patchwork-Id: 67321 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 AF6C027BBE2; Tue, 27 Aug 2024 16:20:43 +0100 (BST) 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_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 3B73F27BBEA for ; Tue, 27 Aug 2024 16:20:42 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sixzY-0003ET-NI; Tue, 27 Aug 2024 11:20:22 -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 1sixzO-0003Bh-OB for guix-patches@gnu.org; Tue, 27 Aug 2024 11:20:13 -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 1sixzO-0001NT-E7 for guix-patches@gnu.org; Tue, 27 Aug 2024 11:20:10 -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=XKh/BWLzqKwaBr3pJCRda+fLWgjIMSlvgvSM0JQTG9g=; b=L52DY6tCIqypmz5J/JLUAcYvQ/vNNFI2zO0IkcGRG6S4NYIh0sxvDUgu71kCfzN/9Zp8G6kHbM3C8D+l5MjqcUGXWDcgsiiDocDdSc9Gvg4BAjKqJ5r6Lg6FCXIjsdoVRQ7htpPw1bA7aFSa4NxM5CujcVyVFhJ5BO86QwmnXCzno/+bGS1lwcoSR93rgayS0g8FFMRspmRv8HoHUsSCbkiqtLDznp+K3O/Jz02IF/T6FCpvX7BUQzjRJQ6imWphxG8aIJU34+xNY94vRZqvvRkjPksjwQAtc9CAwxfRlibEs6tNNuJ7Q8pOOBWLlBuQAjYncZV9jTHhnbzh3YVong==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1siy0F-0007mb-50 for guix-patches@gnu.org; Tue, 27 Aug 2024 11:21:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71968] [PATCH v4 1/5] gnu: Add yyjson. References: In-Reply-To: Resent-From: Dariqq Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 27 Aug 2024 15:21: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.172477202729816 (code B ref 71968); Tue, 27 Aug 2024 15:21:03 +0000 Received: (at 71968) by debbugs.gnu.org; 27 Aug 2024 15:20:27 +0000 Received: from localhost ([127.0.0.1]:47180 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sixzf-0007kk-7L for submit@debbugs.gnu.org; Tue, 27 Aug 2024 11:20:27 -0400 Received: from mout01.posteo.de ([185.67.36.65]:34093) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sixzb-0007jy-Lh for 71968@debbugs.gnu.org; Tue, 27 Aug 2024 11:20:25 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 9CC17240027 for <71968@debbugs.gnu.org>; Tue, 27 Aug 2024 17:19:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1724771964; bh=/sTtXEJhBlh8XNo+7iKF5V4x8ebX+JMbh0amx5dl2BI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=lgT2mGeYG3kYrpX5f1yTB2CzBodS6WrPS7MPmNC9cemSzplI+jAebpC23G7IKFeQN E6T0EChD0afkYtg1lRvA78pvie4ZitlUE8z5SXZFqcqHNpBmSYjp4ZDkYHdnhibOqZ vkzVzLPijXvC9tNj5mxpHmimIgjj30zKXnZpbdOLxEVJVVhDAzaRk0tn8QKgAx7E19 N6IVd2uAafPrvsku/cKL3dsD/3fkfp/voCzrqOlRKF47aq3mJ5zedx/oCw2WRv+1Kj 8apo/lCyUQK/zFepJzpk9vCzxYU5tT4i8mHkIaCGWVAva93mZEoD9opD7ThEtf2tFg 9FQGQBiwXaT7Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WtWRc0RPDz9rxK; Tue, 27 Aug 2024 17:19:23 +0200 (CEST) From: Dariqq Date: Tue, 27 Aug 2024 15:18:30 +0000 Message-ID: <78a863e4becfe0996e04c2aee08ac5b8afa900a0.1724771914.git.dariqq@posteo.net> 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(+) base-commit: 1166035acb4e1b0dc61bf9122b68f2afa0c35790 diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm index 87d3df193e..aa7b9fe35f 100644 --- a/gnu/packages/c.scm +++ b/gnu/packages/c.scm @@ -1730,3 +1730,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)))