[Top][All Lists]

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

Re: new manifest format readers?

From: Jan Nieuwenhuizen
Subject: Re: new manifest format readers?
Date: Fri, 09 Jun 2017 15:58:04 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

Ricardo Wurmus writes:

> One can either write a manifest using variable names or convert a list
> of spec strings to a manifest.  The latter case is used a lot at my
> institute and it’s unfortunate that this requires so much code (with
> emphasis on “code”, not on “so much”).
> Here’s an example:
> (define packages
>   (list "address@hidden"
>         "address@hidden"
>         "cdogs-sdl"))

and don't forget things like

   (list icedtea-8 "jdk")


   `(,icedtea-8 "jdk")

> ;; Boilerplate code to turn the above list of packages into a manifest
> (use-modules (gnu packages))
> (packages->manifest (map (compose list specification->package+output) 
> packages))

Yes, I finally found this and it is not very friendly/discoverable.

> Can we simplify this case by adding manifest readers for different
> formats?  One simple format could be plain text:

> # this is for compilers
> address@hidden
> address@hidden

Can I suggest sticking with s-expresions, and preferrably with something
that can be used verbatim in the packages section of (operating-system)?
New users will most probably have to maintain that too.

So something like

   (use-package-modules gcc)
    ;; this is for compilers

or go further even and add some sugar to remove use-package-modules and
do something like

    ;; this is for compilers
    ;; this is for work

and have package-strings be usable in operating-system too?


Jan Nieuwenhuizen <address@hidden> | GNU LilyPond
Freelance IT | Avatar®

reply via email to

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