aboutsummaryrefslogtreecommitdiff
path: root/etc/news.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2021-07-11 01:06:04 +0200
committerLudovic Courtès <ludo@gnu.org>2021-07-11 01:06:04 +0200
commit9b4c3c675c05870e5983c21ce4ff944e0b0bc2fa (patch)
tree20de1d0f590e0123731a6dbe760fe22540d816bc /etc/news.scm
parentab270bf2e9e301b14fe90c36976835331d67acf5 (diff)
downloadguix-9b4c3c675c05870e5983c21ce4ff944e0b0bc2fa.tar
guix-9b4c3c675c05870e5983c21ce4ff944e0b0bc2fa.tar.gz
news: Add news entry for simplified package inputs.
* etc/news.scm: Add entry.
Diffstat (limited to 'etc/news.scm')
-rw-r--r--etc/news.scm25
1 files changed, 25 insertions, 0 deletions
diff --git a/etc/news.scm b/etc/news.scm
index 3207c12152..97135143e3 100644
--- a/etc/news.scm
+++ b/etc/news.scm
@@ -23,6 +23,31 @@
(channel-news
(version 0)
+ (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 "bdc298ecee15283451d3aa20a849dd7bb22c8538")
(title
(en "New @command{guix import egg} command")