From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eMKIFPp9TmF6gwEAgWs5BA (envelope-from ) for ; Sat, 25 Sep 2021 03:40:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id UFVZEPp9TmESVgAA1q6Kng (envelope-from ) for ; Sat, 25 Sep 2021 01:40:10 +0000 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 F1781BC50 for ; Sat, 25 Sep 2021 03:40:09 +0200 (CEST) Received: from localhost ([::1]:56304 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTwfh-0000b5-5H for larch@yhetil.org; Fri, 24 Sep 2021 21:40:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTwfb-0000aN-EU for guix-patches@gnu.org; Fri, 24 Sep 2021 21:40:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48212) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mTwfb-0000Li-77 for guix-patches@gnu.org; Fri, 24 Sep 2021 21:40:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mTwfb-0006SM-50 for guix-patches@gnu.org; Fri, 24 Sep 2021 21:40:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50793] [PATCH 1/2] gnu: Add JSON.sh References: <20210925013848.GA2384@singpolyma-beefy.lan> In-Reply-To: <20210925013848.GA2384@singpolyma-beefy.lan> Resent-From: Stephen Paul Weber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 25 Sep 2021 01:40:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50793 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50793@debbugs.gnu.org Cc: Stephen Paul Weber Received: via spool by 50793-submit@debbugs.gnu.org id=B50793.163253398524764 (code B ref 50793); Sat, 25 Sep 2021 01:40:03 +0000 Received: (at 50793) by debbugs.gnu.org; 25 Sep 2021 01:39:45 +0000 Received: from localhost ([127.0.0.1]:59756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTwfI-0006RH-Hr for submit@debbugs.gnu.org; Fri, 24 Sep 2021 21:39:44 -0400 Received: from singpolyma.net ([192.99.233.116]:49443) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTwfE-0006Qo-7W for 50793@debbugs.gnu.org; Fri, 24 Sep 2021 21:39:41 -0400 Received: by singpolyma.net (Postfix, from userid 1000) id E65144861689; Sat, 25 Sep 2021 01:39:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=singpolyma.net; s=iweb; t=1632533979; bh=jPVWIXxQZ18+K1pGgNHlOqfl7bHGIDPDzs3rXLfVTOA=; h=From:To:Cc:Subject:Date:From; b=HpfaX3gcUwFVIcKXtPSz9hmJmsMY0L4d3NcdQIMD8z+AZ1nbK0QMQGpvszDhsj+FM A1tsdcatrQLvpiLqzpEScn3dV9zqGrMX+gJt9mGnGXy8iaR0HjyaXmCPn2Cw0S5MQu f3k4IAHT3EaNz5apx6qLM/tGskCLMzf2YHwIoGIA= From: Stephen Paul Weber Date: Fri, 24 Sep 2021 20:39:33 -0500 Message-Id: <20210925013934.2763-1-singpolyma@singpolyma.net> X-Mailer: git-send-email 2.20.1 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632534010; 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=+b2MQhNxnqe7d7Dtu1F/cgMcVUEw0caH6nwc/q1n1o0=; b=aj0T5QhhnSH1qCJUFbULsUN8Om49NQ8xVt4EjEnuOarWaei/2Y0V/F+Hww+JZAsr23x+5u Y1JNRfOeyVdRoP7f8bqk7q0KCac1X6+Dryh68q8rmep0619oBIgwAhYCUBVBSPuQ9pqPzC nBIcKZWO7x0FnVb8kisVVTgeLEzT5R2vZoJWVmVWNa1nx207Rjvs10+1Ae/yiihI/h6QOG HcIOvvK6swU67Mlf6DRyk5poHojhikGfDBHY2mTGIqUFEnYaxHCAL6y0BiC6Q1E9agSnGE jFXDQwS/KqPORWsigSx0ELUqGujrJMsabCM7b7yw7ep4xMnH+JN61GL8YT0urA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632534010; a=rsa-sha256; cv=none; b=llkpGvB9JiF/7Sc1v5m3i6rorx1YaLb4z+w0GFA4i6GHPL+2L7lHt4Vlh+CFeZ5e3AtkKu 5h4IxQBPpqMRe7UGyd1ZMd2SkIApFjOiJi+Zblwz2pVj5A2yDpmozZAX1qRekjMqKn+Kdk pyKAc+jfP2l5QquQmm5x2XCz/jpbOnhU1HekV2qY5CcsA11fohGGQ2zsc0HfEyb9/7HcFG xRyflA+uEtS20kmKwyUAf05TZg/cxQks1Gthx+tF+msWjpCj6QHw9fYS9WAoQSdk78Bk+/ 8sj2t/aBQtT3hkuaaLjPcrzUlEFtGCY+ijz+NHMZvVDI8mmOZ/VQUdXRu65djg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=singpolyma.net header.s=iweb header.b=HpfaX3gc; dmarc=fail reason="SPF not aligned (strict)" header.from=singpolyma.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 4.81 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=singpolyma.net header.s=iweb header.b=HpfaX3gc; dmarc=fail reason="SPF not aligned (strict)" header.from=singpolyma.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: F1781BC50 X-Spam-Score: 4.81 X-Migadu-Scanner: scn1.migadu.com X-TUID: 2xDbUaQZYs29 * gnu/packages/serialization.scm (JSON.sh): New variable. --- gnu/packages/serialization.scm | 45 ++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/serialization.scm b/gnu/packages/serialization.scm index 196141ace8..f5677d9e5f 100644 --- a/gnu/packages/serialization.scm +++ b/gnu/packages/serialization.scm @@ -34,10 +34,13 @@ #:use-module (guix git-download) #:use-module (guix utils) #:use-module (guix build-system cmake) + #:use-module (guix build-system copy) #:use-module (guix build-system gnu) #:use-module (guix build-system python) #:use-module (gnu packages) #:use-module (gnu packages autotools) + #:use-module (gnu packages base) + #:use-module (gnu packages bash) #:use-module (gnu packages boost) #:use-module (gnu packages check) #:use-module (gnu packages compression) @@ -458,6 +461,48 @@ it a convenient format to store user input files.") (base32 "1180ln8blrb0mwzpcf78k49hlki6di65q77rsvglf83kfcyh4d7z")))))) +(define-public JSON.sh + (package + (name "JSON.sh") + (version "0d5e5c7") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dominictarr/JSON.sh") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "14lxvp5xbdk0dcwkjbdp098z1108j8z48zaibndh4i731kkcz43i")))) + (build-system copy-build-system) + (arguments + `(#:install-plan '(("JSON.sh" "bin/")) + #:phases + (modify-phases %standard-phases + (add-before 'install 'check + (lambda _ + (invoke "./all-tests.sh") + #t)) + (add-after 'install 'wrap-program + (lambda* (#:key inputs outputs #:allow-other-keys) + (wrap-program (string-append (assoc-ref outputs "out") "/bin/JSON.sh") + `("PATH" ":" prefix + (,(string-join + (map (lambda (in) (string-append (assoc-ref inputs in) "/bin")) + '("grep" "coreutils")) + ":"))))))))) + (inputs + `(("bash-minimal" ,bash-minimal) + ("grep" ,grep) + ("coreutils" ,coreutils))) + (synopsis + "Pipeable JSON parser written in shell") + (description + "JSON parser written in shell, compatible with ash, bash, dash and zsh") + (home-page "https://github.com/dominictarr/JSON.sh") + (license license:asl2.0))) + (define-public capnproto (package (name "capnproto") -- 2.20.1