[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#40629] [PATCH v2 9/9] import/json: json->code: Handle files with mo
From: |
Ricardo Wurmus |
Subject: |
[bug#40629] [PATCH v2 9/9] import/json: json->code: Handle files with more than one definition. |
Date: |
Wed, 15 Apr 2020 01:01:11 +0200 |
User-agent: |
mu4e 1.2.0; emacs 26.3 |
With these last few changes it’s now possible to have multiple
definitions in a JSON array:
--8<---------------cut here---------------start------------->8---
[
{
"name": "myhello",
"version": "2.10",
"source": "mirror://gnu/hello/hello-2.10.tar.gz",
"build-system": "gnu",
"home-page": "https://www.gnu.org/software/hello/",
"synopsis": "Hello, GNU world: An example GNU package",
"description": "GNU Hello prints a greeting.",
"license": "GPL-3.0+",
"native-inputs": ["gettext"]
},
{
"name": "hello2",
"version": "2.10",
"source": "mirror://gnu/hello/hello-2.10.tar.gz",
"build-system": "gnu",
"home-page": "https://www.gnu.org/software/hello/",
"synopsis": "Hello, GNU world: An example GNU package",
"description": "GNU Hello prints a greeting.",
"license": "GPL-3.0+",
"inputs": ["myhello"],
"native-inputs": ["gettext"]
}
]
--8<---------------cut here---------------end--------------->8---
“hello2” has “myhello” as an input. When this file is passed to “guix
install -f” both packages will be built and “hello2” will be installed
into the profile as it is the last package in the list.
--
Ricardo
- [bug#40629] [PATCH 5/5] scripts/package: Handle JSON files., (continued)
[bug#40629] Build and install packages from JSON definitions, Christopher Baines, 2020/04/15
[bug#40629] Build and install packages from JSON definitions, Ludovic Courtès, 2020/04/16