From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ztO7Ee2HT2JqlAAAgWs5BA (envelope-from ) for ; Fri, 08 Apr 2022 02:55:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MNlIDe2HT2JrawEAauVa8A (envelope-from ) for ; Fri, 08 Apr 2022 02:55:09 +0200 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 A6BC13E16 for ; Fri, 8 Apr 2022 02:55:08 +0200 (CEST) Received: from localhost ([::1]:41364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nccu3-0007tW-R0 for larch@yhetil.org; Thu, 07 Apr 2022 20:55:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46374) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nccty-0007tM-8m for guix-patches@gnu.org; Thu, 07 Apr 2022 20:55:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39770) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ncctx-0001Ff-UN for guix-patches@gnu.org; Thu, 07 Apr 2022 20:55:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ncctx-0005bO-SX for guix-patches@gnu.org; Thu, 07 Apr 2022 20:55:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54781] [PATCH] gnu: Add cl-jzon. Resent-From: jgart Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 08 Apr 2022 00:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54781 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54781@debbugs.gnu.org Cc: jgart X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164937927921497 (code B ref -1); Fri, 08 Apr 2022 00:55:01 +0000 Received: (at submit) by debbugs.gnu.org; 8 Apr 2022 00:54:39 +0000 Received: from localhost ([127.0.0.1]:33667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncctb-0005af-HO for submit@debbugs.gnu.org; Thu, 07 Apr 2022 20:54:39 -0400 Received: from lists.gnu.org ([209.51.188.17]:57120) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncctZ-0005aX-TX for submit@debbugs.gnu.org; Thu, 07 Apr 2022 20:54:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46322) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncctZ-0007rS-7o for guix-patches@gnu.org; Thu, 07 Apr 2022 20:54:37 -0400 Received: from mx2.dismail.de ([159.69.191.136]:44999) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncctW-0001DH-Sf for guix-patches@gnu.org; Thu, 07 Apr 2022 20:54:36 -0400 Received: from mx2.dismail.de (localhost [127.0.0.1]) by mx2.dismail.de (OpenSMTPD) with ESMTP id c3476d61 for ; Fri, 8 Apr 2022 02:54:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; s=20190914; bh=pM25hij7krmXeT1dKnNGlY1wYOAOBiwv2mhX318ygGE=; b= mkfjvsD2jD7M6t1kYJ4NSc7+3jqxgP6IyqNMAm3IdMM6fcmMDr7WtAa0UfNNiAQZ JLmxlTqb+qew5zX1xgzNvwNtyWykFkWwhxw48xj2bVrp238G3b4Gxhjb57uAz5Xh B7A74tS35LH2P2LHqwtOCqVGkQ0vn0S9oADuMxXEYtXakTwcaK5xPGZ5o/bRqhHF xoCnB8lX3HMXTP3qz2NxCSuuJpv3dTNB56tvDc+OTQmuOgLjXU2KCzR4t2iRsJxS LvMufI0xv3L5FguorZgZsaWNhveu1keHmsKUW4vHldnjG8EaUXGVV3MFAwYD+8Un AV0HFJtczX9DaOreAVrTUQ== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx2.dismail.de (OpenSMTPD) with ESMTP id 2be14bd7 for ; Fri, 8 Apr 2022 02:54:30 +0200 (CEST) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id 9bad0fe4 for ; Fri, 8 Apr 2022 02:54:30 +0200 (CEST) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 9f74508c (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Fri, 8 Apr 2022 02:54:24 +0200 (CEST) Date: Thu, 7 Apr 2022 20:50:56 -0400 Message-Id: <20220408005055.11985-1-jgart@dismail.de> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=159.69.191.136; envelope-from=jgart@dismail.de; helo=mx2.dismail.de X-Spam_score_int: -33 X-Spam_score: -3.4 X-Spam_bar: --- X-Spam_report: (-3.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, PP_MIME_FAKE_ASCII_TEXT=0.999, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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" Reply-to: jgart X-ACL-Warn: , jgart via Guix-patches From: jgart via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1649379308; h=from:from:sender:sender:reply-to: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=KSojc0VjMJJWrfbjyIJ8BCwk1GOWH/xRDJGEFLrIiH0=; b=eMXmwjwDAkV3ApLaWIeMl26OxtVnY25wL81BoLNq/sbcYo7acnzPXkIaSnuVozcxASJLL3 x5CkYoQ7Fe96HOz0fT4Ac8k99r9Q4chQNW7xTAJ0cACoFiqktz8KfCq+dOWj/JcwO0da9n feZygrZrfJhROupse0dy//tNbS3v7zWI1ufn2dYRYXdvdI7qPqdge3u1mcpMa1w9wH7Lz1 OuE4XNjUfwFF0VUe8Pda4FMrysHHH/unxTmN8EuiOSkutvHuCXzylQCcMrGtui/vzR19ew v2sjMNMnUER9VGHU/wUwKlhUC8m79U3zfsqQDfc0+uj8fG5F/8KKcHAFEDBBAQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649379308; a=rsa-sha256; cv=none; b=Y0xSkw8VUHcixMeuz/FU6KiFeMz9iJjyhFkr5yndn5OcOnKJPf601cl7jI3k5T8VfXu/X2 SxwPJzySnlnFzfiU9A8HXrRXRNuIVN8UvQdsOLYN9WWQ/35t4Z3m4M2HpUH0Gas2b/eTLu 5lx+SzlPrpvnf8/CZW6iwCnuLubFLV4oglR4cnL3ZHqjECHB7P/iNNW0wpEWSDyJzOtcXG ijjBcOCS8sh1TTfzm9ID1y0z/0HkcJWyBOY0JZ6t0oY3jX15r7nkIaodscrx3OnIgJVToc 83g6p4XjUfW3nlsi3dNmwfB5+K3luupl1Ee7nwi5fXVI5rSqlOsSy3TauKl70g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=mkfjvsD2; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Spam-Score: -2.57 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=mkfjvsD2; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Queue-Id: A6BC13E16 X-Spam-Score: -2.57 X-Migadu-Scanner: scn0.migadu.com X-TUID: qj1/vD27RBce * gnu/packages/lisp-xyz.scm (cl-jzon): New variable. Hi Guixers, Here is a correct and safe JSON parser. https://github.com/Zulu-Inuoe/jzon cl-jzon is also available as a pre-release from Guix 'R Us: https://git.sr.ht/~whereiseveryone/guixrus/tree/master/item/guixrus/packages/lisp.scm#L2294 We provide substitutes at https://bags.whereis.みんな/ all best, jgart https://whereis.みんな/ gemini://whereis.みんな/ --- gnu/packages/lisp-xyz.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm index 5ce4e2dd7e..3b3ffc320c 100644 --- a/gnu/packages/lisp-xyz.scm +++ b/gnu/packages/lisp-xyz.scm @@ -20827,6 +20827,44 @@ (define-public cl-websocket-driver (define-public ecl-websocket-driver (sbcl-package->ecl-package sbcl-websocket-driver)) +(define-public sbcl-jzon + (let ((commit "5364590f5d2e6d6f1932d1ea3acba1ee2a82f31e") + (revision "0")) + (package + (name "sbcl-jzon") + (version (git-version "0.2.1" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Zulu-Inuoe/jzon") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1048f6prz2lp859nxwcgghn6n38pc2pb580azzxpdhfcdi0034mj")))) + (build-system asdf-build-system/sbcl) + (arguments + '(#:asd-files '("src/com.inuoe.jzon.asd" "test/com.inuoe.jzon-tests.asd") + #:asd-systems '("com.inuoe.jzon" "com.inuoe.jzon-tests"))) + (native-inputs + (list sbcl-alexandria + sbcl-fiveam + sbcl-flexi-streams)) + (inputs + (list sbcl-closer-mop + sbcl-flexi-streams)) + (home-page "https://github.com/Zulu-Inuoe/cl-jzon/") + (synopsis "Correct and safe JSON parser") + (description +"@code{cl-jzon} is a correct and safe JSON RFC 8259 parser.") + (license license:expat)))) + +(define-public cl-jzon + (sbcl-package->cl-source-package sbcl-jzon)) + +(define-public ecl-jzon + (sbcl-package->ecl-package sbcl-jzon)) + (define-public sbcl-purgatory (let ((commit "ade0d60a14a1067b9cc8cf06d1f1a1ca8cecdb03") (revision "1")) -- 2.35.1