diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/news.scm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/etc/news.scm b/etc/news.scm index 47b4437426..d3a56865b6 100644 --- a/etc/news.scm +++ b/etc/news.scm @@ -155,6 +155,31 @@ Ce recours à Software Heritage fonctionne aussi pour les autres clones Git que Guix peut faire, comme lorsqu'on utilise @option{--with-commit} et les options de transformation de paquet similaires."))) + (entry (commit "f23803af2018a148fb088f2516d79c20d6bf95f0") + (title + (en "Input labels can now be omitted in package definitions")) + (body + (en "If you have written package definitions before, you may know +that package inputs required a bit of boilerplate: each input needs to have an +associated label (a string), which you can refer to in ``build-side code''. + +Input labels are now unnecessary, meaning that you can write code like: + +@lisp +(package + ;; @dots{} + (inputs (list libunistring libffi libgc))) +@end lisp + +Notice that the @code{inputs} field is simplified compared to the ``old +style''. When needed, you can now use g-expressions (gexps) to refer to +another package in build-side code. Additionally, the new +@code{modify-inputs} macro facilitates common operations on inputs---deleting, +replacing, adding inputs. + +To ease transition to the ``new style'', a new @command{guix style} command is +provided. Run @command{info \"(guix) Invoking guix style\"} for more info."))) + (entry (commit "82daab42811a2e3c7684ebdf12af75ff0fa67b99") (title (en "New @samp{deb} format for the @command{guix pack} command") |