From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnnzK-0004hi-W0 for guix-patches@gnu.org; Fri, 01 Sep 2017 11:36:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dnnzG-0000SK-1d for guix-patches@gnu.org; Fri, 01 Sep 2017 11:36:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:59936) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dnnzF-0000SG-UW for guix-patches@gnu.org; Fri, 01 Sep 2017 11:36:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dnnzF-00080i-N6 for guix-patches@gnu.org; Fri, 01 Sep 2017 11:36:01 -0400 Subject: [bug#28251] [PATCH 0/3] Add generic JSON importer Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20170827155820.28812-1-rekado@elephly.net> Date: Fri, 01 Sep 2017 17:35:46 +0200 In-Reply-To: <20170827155820.28812-1-rekado@elephly.net> (Ricardo Wurmus's message of "Sun, 27 Aug 2017 17:58:20 +0200") Message-ID: <87bmmu5t4d.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ricardo Wurmus Cc: 28251@debbugs.gnu.org Hi Ricardo! Ricardo Wurmus skribis: > this patch set adds a somewhat unusual importer. Assume we have a file > "package.json" with the following contents: > > { > "name": "hello", > "version": "2.10", > "source": { > "method": "url-fetch", > "uri": "mirror://gnu/hello/hello-2.10.tar.gz", > "sha256": { > "base32": "0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i" > } > } > "build-system": "gnu", > "home-page": "https://www.gnu.org/software/hello/", > "synopsis": "Hello, GNU world: An example GNU package", > "description": "It really works.", > "license": "GPL-3.0+", > "inputs": ["r-minimal@3", "ghc-pandoc", "samtools@0"] > } Neat! I wonder if we could further simplify the =E2=80=9Csource=E2=80=9D part, li= ke allowing (maybe optionally) for: "source": "mirror://gnu=E2=80=A6" and then letting the importer download the thing and fill in the hash. Likewise for a Git checkout: "git": { "commit": "cabba9e"; "url": "=E2=80=A6" }; Thoughts? > What do you think? Terrible? Exciting? Both? *raises hand* Both! :-) As discussed at the GHM, I don=E2=80=99t fully measure that, but it can pro= bably help us reach out to more people. Thanks! Ludo=E2=80=99, who goes look at the patches.