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 WFrwNOeBk2bdRQEA62LTzQ:P1 (envelope-from ) for ; Sun, 14 Jul 2024 07:44:39 +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 WFrwNOeBk2bdRQEA62LTzQ (envelope-from ) for ; Sun, 14 Jul 2024 09:44:39 +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=ocdCcscP; dmarc=fail reason="SPF 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=1720943079; 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=uldhhXF4tO50YZMgy4fnCrrLY7zlGoqeriokPDNlspbGXWKqZ1KlnyCXpLLu+A75kUlraD xnBGkBJIdJ2dgQ6fxA4F2co5r2SaYpy6J0Zls6m6AGP5Dl3w3B+Mfp8kW5bBPrrfsyqwmr BmAS9S5dlRamBkIePmUP7lfJCnPtBZ5l+cHwAjpZ/KMu+YzajBsKj64fenbBZxmwSFhpd3 6Bk78w5Iizok2GaoPj4/qXejMjtuaepJ1oeJimZ6dh3MwoPcJ8dJQRdjKJKcC1NFlY0Wt6 F01w0Xr2M+AvctGamjcPMb9jtq2FSxa7ZjlszJ502sziuqS9LX0kEhdKx5FpVw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720943079; a=rsa-sha256; cv=none; b=L5WjSc9w4IdjyhJ6F9DPMRrRbnIR27/eM0j88UmMilKa3BEaTy2673N37Y3UPbAQQMzcgZ 6oOmV66FANhrz1aMEifCAimQAQctm7GNdz56dC5vy42CMKCLdNSoqL0vkrMQUKnsy6Eu/d T9OOD0+DKQQoSfHzgohZl5XT/i9kV74spsgynwvFKenfGI8Fg3ByUaAO28KMbHH53tufSG 7kXdFKyqnZ9qs+6XEunnIx/18guEeIwK0FEh2dIevgH9WokWRRXoyKeohwOeXIKhmwutKr K6ALm2I1Mfw6uVc6fvZOLQ6NIeLd0XM5ES7EsXSVqFmB5HEnx+HyRFO5gOcUUg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=ocdCcscP; dmarc=fail reason="SPF 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" 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 C43FC365FF for ; Sun, 14 Jul 2024 09:44:39 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sSttr-0007cw-Nt; Sun, 14 Jul 2024 03:44:03 -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 1sSttp-0007cF-PM for guix-patches@gnu.org; Sun, 14 Jul 2024 03:44:01 -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 1sSttp-00035f-H5 for guix-patches@gnu.org; Sun, 14 Jul 2024 03:44:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sSttq-0003aW-OL for guix-patches@gnu.org; Sun, 14 Jul 2024 03:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71968] [PATCH v2 1/5] gnu: Add yyjson. Resent-From: Dariqq Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 14 Jul 2024 07:44: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.172094302713707 (code B ref 71968); Sun, 14 Jul 2024 07:44:02 +0000 Received: (at 71968) by debbugs.gnu.org; 14 Jul 2024 07:43:47 +0000 Received: from localhost ([127.0.0.1]:57074 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sStta-0003Yw-H2 for submit@debbugs.gnu.org; Sun, 14 Jul 2024 03:43:46 -0400 Received: from mout02.posteo.de ([185.67.36.66]:56071) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sSttY-0003YV-6M for 71968@debbugs.gnu.org; Sun, 14 Jul 2024 03:43:44 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id BC696240101 for <71968@debbugs.gnu.org>; Sun, 14 Jul 2024 09:43:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1720943016; bh=td5lslJquDxwt8Kjbp+hWfmxV76U5Ipo/tjgUz2PuHg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=ocdCcscPvwaP+xoDrhQTxgf3+Df5R5Q72TfOcpimQaKnRaIBNkD23Zzxe1M37a0gy mEISlxPnpCeGsJGsWQYUYcH9w3YDn8mjdSDqsIRG66rtqv9+Jk4QlPcGICYESoleFi 6l8HcL2vX5wOwdVxdkk3edC8WyrmDvhtDf6gPPk/85Dyhg7I5WO6UzhAmkX1YAx/Ku xjnwpXZX2Hjl6rwi38huCbMFVDjOTwRu60mWzXJY4WKRRCAo6kTK5cUxJwXvhSzFJ2 /ZtJA+xvjON6YRJ1k4PxPOW+rGiJGGdtFSiv+prN4bAra2tYbgPzrwkdbJlbUdcX3d AbVPhhQ4vqPgA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WMHQ02cNdz6tx7; Sun, 14 Jul 2024 09:43:36 +0200 (CEST) From: Dariqq Date: Sun, 14 Jul 2024 07:42:52 +0000 Message-ID: <3e36fd6549aaab789429853f304ed9d925f1f91a.1720942674.git.dariqq@posteo.net> 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-Queue-Id: C43FC365FF X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -4.00 X-Spam-Score: -4.00 X-TUID: /NzX9VB82SMQ * 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