[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH RFC 0/4] Getting rid of input labels?
From: |
Nicolas Goaziou |
Subject: |
Re: [PATCH RFC 0/4] Getting rid of input labels? |
Date: |
Fri, 21 May 2021 17:35:06 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Hello,
Ludovic Courtès <ludo@gnu.org> writes:
> Here’s a proposal for a soft revolution: getting rid of input labels
> in package definitions. Instead of writing:
>
> (native-inputs
> `(("autoconf" ,autoconf)
> ("automake" ,automake)
> ("pkg-config" ,pkg-config)
> ("guile" ,guile-3.0)))
>
> one can write:
>
> (native-inputs (list autoconf automake pkg-config guile-3.0))
Nice! Thank you.
> • Packages such as ‘tzdata’ use labels to refer to non-package
> inputs. These cannot be converted to the automatic labeling
> style, or not without extra changes.
Would it be possible to write something like
(inputs (let ((tzcode (origin ...)))
(list ... tzcode ...)))
?
>
> • Currently, something like:
>
> (inputs (list glib))
>
> is converted to:
>
> (inputs `(("glib" ,glib)))
>
> Should it, instead, be converted to:
>
> (inputs `(("glib" ,glib)
> ("glib:bin" ,glib "bin")))
>
> ? This would make the concise style strictly less
> expressive, but maybe good enough?
Could the new syntax accept both variables and specifications, e.g.,
(list "glib:bin" foo "bar@2.3")
?
Regards,
--
Nicolas Goaziou
- [PATCH RFC 0/4] Getting rid of input labels?, Ludovic Courtès, 2021/05/20
- [PATCH RFC 2/4] DRAFT packages: Allow inputs to be plain package lists., Ludovic Courtès, 2021/05/20
- [PATCH RFC 1/4] records: Support field sanitizers., Ludovic Courtès, 2021/05/20
- [PATCH RFC 3/4] DRAFT gnu: Change inputs of core packages to plain lists., Ludovic Courtès, 2021/05/20
- [PATCH RFC 4/4] DRAFT lint: Add 'input-labels' checker., Ludovic Courtès, 2021/05/20
- Re: [PATCH RFC 0/4] Getting rid of input labels?, Vincent Legoll, 2021/05/20
- Re: [PATCH RFC 0/4] Getting rid of input labels?, Maxime Devos, 2021/05/20
- Re: [PATCH RFC 0/4] Getting rid of input labels?,
Nicolas Goaziou <=