unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: Jan Nieuwenhuizen <janneke@gnu.org>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: new manifest format readers?
Date: Fri, 09 Jun 2017 16:58:21 +0200	[thread overview]
Message-ID: <87vao5cinm.fsf@elephly.net> (raw)
In-Reply-To: <87d1adw9eb.fsf@gnu.org>


Jan Nieuwenhuizen <janneke@gnu.org> writes:

> 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 "gfortran@5"
>>         "gcc-toolchain@5"
>>         "cdogs-sdl"))
>
> and don't forget things like
>
>    (list icedtea-8 "jdk")
>
> or
>
>    `(,icedtea-8 "jdk")

You can use “icedtea:jdk” as a spec string.  But doing this with just
variable names does indeed require something awkward like (list
icedtea-8 "jdk").

> 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)
>    (packages
>     ;; this is for compilers
>     gfortran-5)
>
> or go further even and add some sugar to remove use-package-modules and
> do something like
>
>    (package-strings
>     ;; this is for compilers
>     "gfortran@5"
>     ;; this is for work
>     "icedtea:jdk")
>
> and have package-strings be usable in operating-system too?

I’m not sure about this, but I’ll think about it.  My initial response
is that there is probably relatively little to be gained from adding
more special syntax (“package-strings”) to S-expressions when we already
have regular Guile.  But maybe there’s something else we can do to
require less boilerplate when using package spec strings.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

  reply	other threads:[~2017-06-09 14:58 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-09 12:03 new manifest format readers? Ricardo Wurmus
2017-06-09 13:09 ` Mathieu Othacehe
2017-06-09 13:56 ` Ludovic Courtès
2017-06-09 13:58 ` Jan Nieuwenhuizen
2017-06-09 14:58   ` Ricardo Wurmus [this message]
2017-06-10  2:06   ` Arun Isaac
2017-06-11 14:15   ` Ludovic Courtès
2017-06-11 15:44     ` Ricardo Wurmus
2017-06-11 21:16       ` Ludovic Courtès
2017-06-12  3:56         ` Jan Nieuwenhuizen
2017-06-12  8:31     ` Chris Marusich
2017-06-09 15:08 ` Björn Höfling
2017-06-09 18:12   ` Ricardo Wurmus
2017-06-10 17:19 ` myglc2

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vao5cinm.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=guix-devel@gnu.org \
    --cc=janneke@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).