[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
17/17: news: Add news entry for simplified package inputs.
From: |
guix-commits |
Subject: |
17/17: news: Add news entry for simplified package inputs. |
Date: |
Sat, 10 Jul 2021 19:07:13 -0400 (EDT) |
civodul pushed a commit to branch core-updates
in repository guix.
commit 9b4c3c675c05870e5983c21ce4ff944e0b0bc2fa
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sun Jul 11 01:06:04 2021 +0200
news: Add news entry for simplified package inputs.
* etc/news.scm: Add entry.
---
etc/news.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/etc/news.scm b/etc/news.scm
index 3207c12..9713514 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")
- branch core-updates updated (2a3cd4e -> 9b4c3c6), guix-commits, 2021/07/10
- 01/17: records: Support field sanitizers., guix-commits, 2021/07/10
- 08/17: utils: Add 'go-to-location' with source location caching., guix-commits, 2021/07/10
- 06/17: gnu: Change inputs of core packages to plain lists., guix-commits, 2021/07/10
- 07/17: utils: 'edit-expression' no longer leaks file ports., guix-commits, 2021/07/10
- 14/17: import: cran: Emit new-style package inputs., guix-commits, 2021/07/10
- 13/17: import: pypi: Emit new-style package inputs., guix-commits, 2021/07/10
- 10/17: utils: 'edit-expression' copies part of the original source map., guix-commits, 2021/07/10
- 09/17: utils: 'edit-expression' modifies the file only if necessary., guix-commits, 2021/07/10
- 16/17: import: elpa: Emit new-style package inputs., guix-commits, 2021/07/10
- 17/17: news: Add news entry for simplified package inputs.,
guix-commits <=
- 04/17: packages: Add 'lookup-package-input' & co., guix-commits, 2021/07/10
- 02/17: packages: Allow inputs to be plain package lists., guix-commits, 2021/07/10
- 03/17: lint: Add 'input-labels' checker., guix-commits, 2021/07/10
- 11/17: Add 'guix style'., guix-commits, 2021/07/10
- 05/17: packages: Add 'modify-inputs'., guix-commits, 2021/07/10
- 12/17: packages: 'hidden-package' inherits the original package location., guix-commits, 2021/07/10
- 15/17: import: print: Emit new-style package inputs when possible., guix-commits, 2021/07/10