[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#28251] [PATCH 0/3] Add generic JSON importer
From: |
Ricardo Wurmus |
Subject: |
[bug#28251] [PATCH 0/3] Add generic JSON importer |
Date: |
Mon, 28 Aug 2017 14:27:22 +0200 |
User-agent: |
mu4e 0.9.18; emacs 25.2.1 |
I have since made a couple of minor changes like adding a missing (guix
gexp) import, adding the new script to the MODULES in Makefile.am, and
adding a simple test for “data->guix-package”.
I also have a small patch to “guix build -f”; given a file ending on
“.json” it will parse the JSON and run “data->guix-package”. I have
confirmed that this works for the “hello” package in JSON format.
If this looks like a good idea I’ll convert the recursive CRAN importer
to produce package objects; as a next step I’d extend “guix build” to
accept a “--via=IMPORTER” option, which would cause a package to be
imported and then built without requiring the manual work of writing or
generating a package definition in Scheme. (Optionally, it could
generate the code that could be contributed to Guix.)
This is not meant to ever replace Scheme package definitions, but I
think it can make importers useful to users, not only developers.
--
Ricardo
GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
https://elephly.net