diff options
author | Vivien Kraus <vivien@planete-kraus.eu> | 2022-11-05 12:59:01 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2022-11-21 14:25:13 +0000 |
commit | 9283c80e604324f5449b5a8daf94285cdc6a8604 (patch) | |
tree | 8be8be7173c9baebf50623f57f4354bcbf6447ce /doc | |
parent | 4d05c5fa57fe768e4d2ed760fa3aee05d72becb5 (diff) | |
download | guix-9283c80e604324f5449b5a8daf94285cdc6a8604.tar.gz |
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>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/guix.texi | 12 |
1 files changed, 6 insertions, 6 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 |