emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#40629: closed (Build and install packages from JSON definitions)


From: GNU bug Tracking System
Subject: bug#40629: closed (Build and install packages from JSON definitions)
Date: Thu, 16 Apr 2020 21:45:03 +0000

Your message dated Thu, 16 Apr 2020 23:44:29 +0200
with message-id <address@hidden>
and subject line Re: [bug#40629] Build and install packages from JSON 
definitions
has caused the debbugs.gnu.org bug report #40629,
regarding Build and install packages from JSON definitions
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden.)


-- 
40629: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=40629
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: Build and install packages from JSON definitions Date: Tue, 14 Apr 2020 17:44:31 +0200 User-agent: mu4e 1.2.0; emacs 26.3
Hi Guix,

did you know that we have JSON importer?  Admittedly, it’s not very
useful because people don’t generally use JSON syntax to define Guix
packages.  Not even Guix lets you build and install packages from JSON
definitions, so what’s the point really?

Well, fret not!  This patch set adds support for JSON package
definitions to “guix package -f” and “guix build -f”.  You can now dump
this into a file “hello.json”:

--8<---------------cut here---------------start------------->8---
{
  "name": "hello",
  "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"]
}
--8<---------------cut here---------------end--------------->8---

and then install the hello package with “guix package -f hello.json”
without having to first run the JSON importer.

Since the JSON importer doesn’t know how to work with more than one
definition you can’t have more than one custom definition in your JSON
file, but if there’s interest we can easily add support for this.

(My patch set does not come with documentation changes for “guix
package” or “guix build”.)

What do you think?

--
Ricardo



--- End Message ---
--- Begin Message --- Subject: Re: [bug#40629] Build and install packages from JSON definitions Date: Thu, 16 Apr 2020 23:44:29 +0200 User-agent: mu4e 1.2.0; emacs 26.3
I’ve pushed this to the master branch with documentation and a few minor
changes with commit c9f321e52a.

--
Ricardo


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]