[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/22: guix: modify-input: Recommend prepend instead of append.
From: |
guix-commits |
Subject: |
10/22: guix: modify-input: Recommend prepend instead of append. |
Date: |
Mon, 21 Nov 2022 09:26:27 -0500 (EST) |
cbaines pushed a commit to branch master
in repository guix.
commit 9283c80e604324f5449b5a8daf94285cdc6a8604
Author: Vivien Kraus <vivien@planete-kraus.eu>
AuthorDate: Sat Nov 5 12:59:01 2022 +0100
guix: modify-input: Recommend prepend instead of append.
* doc/guix.texi (Defining Package Variants): Document the "prepend" clause
of
modify-inputs first.
* guix/packages.scm (modify-inputs): use "prepend" in the docstring.
Signed-off-by: Christopher Baines <mail@cbaines.net>
---
doc/guix.texi | 12 ++++++------
guix/packages.scm | 4 ++--
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/doc/guix.texi b/doc/guix.texi
index eaecfd0daa..9155b605f2 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -8080,20 +8080,20 @@ following forms:
@item (delete @var{name}@dots{})
Delete from the inputs packages with the given @var{name}s (strings).
-@item (append @var{package}@dots{})
-Add @var{package}s to the end of the input list.
-
@item (prepend @var{package}@dots{})
Add @var{package}s to the front of the input list.
+
+@item (append @var{package}@dots{})
+Add @var{package}s to the end of the input list.
@end table
The example below removes the GMP and ACL inputs of Coreutils and adds
-libcap to the back of the input list:
+libcap to the front of the input list:
@lisp
(modify-inputs (package-inputs coreutils)
(delete "gmp" "acl")
- (append libcap))
+ (prepend libcap))
@end lisp
The example below replaces the @code{guile} package from the inputs of
@@ -8104,7 +8104,7 @@ The example below replaces the @code{guile} package from
the inputs of
(replace "guile" guile-2.2))
@end lisp
-The last type of clause is @code{prepend}, to add inputs to the front of
+The last type of clause is @code{append}, to add inputs at the back of
the list.
@end deffn
diff --git a/guix/packages.scm b/guix/packages.scm
index 704b4ee710..502df7fdd1 100644
--- a/guix/packages.scm
+++ b/guix/packages.scm
@@ -1176,9 +1176,9 @@ inputs of Coreutils and adds libcap:
(modify-inputs (package-inputs coreutils)
(delete \"gmp\" \"acl\")
- (append libcap))
+ (prepend libcap))
-Other types of clauses include 'prepend' and 'replace'.
+Other types of clauses include 'append' and 'replace'.
The first argument must be a labeled input list; the result is also a labeled
input list."
- branch master updated (d369a4cfa0 -> 2c9635cb47), guix-commits, 2022/11/21
- 07/22: gnu: python-asdf: Update comment about tests., guix-commits, 2022/11/21
- 06/22: gnu: python-asdf: Update to 2.13.0., guix-commits, 2022/11/21
- 10/22: guix: modify-input: Recommend prepend instead of append.,
guix-commits <=
- 11/22: gnu: Add emacs-bbdb-vcard., guix-commits, 2022/11/21
- 08/22: gnu: asdf-astropy: Update to 0.2.2., guix-commits, 2022/11/21
- 14/22: gnu: Add emacs-semi-epg., guix-commits, 2022/11/21
- 05/22: gnu: asdf-transform-schemas: Update to 0.3.0., guix-commits, 2022/11/21
- 15/22: gnu: Add emacs-wanderlust., guix-commits, 2022/11/21
- 18/22: gnu: drumkv1: Use qt6 instead of qt5., guix-commits, 2022/11/21
- 20/22: gnu: padthv1: Use qt6 instead of qt5., guix-commits, 2022/11/21
- 22/22: gnu: Add emacs-ukrainian-holidays., guix-commits, 2022/11/21
- 01/22: gnu: Add asdf-standard., guix-commits, 2022/11/21
- 04/22: gnu: Add asdf-time-schemas., guix-commits, 2022/11/21