aboutsummaryrefslogtreecommitdiff
path: root/doc/guix.texi
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2020-09-21 17:44:29 +0200
committerLudovic Courtès <ludo@gnu.org>2020-09-27 21:41:05 +0200
commitff39361c80dfc67a9afe35f315a774140d8cf99b (patch)
treef0183ad15f06b50121cc0dbfb2c293b93770f8ca /doc/guix.texi
parentf458cfbcc54ed87b1a87dd9e150ea276f17eab74 (diff)
downloadguix-ff39361c80dfc67a9afe35f315a774140d8cf99b.tar
guix-ff39361c80dfc67a9afe35f315a774140d8cf99b.tar.gz
packages: 'package-mapping' can recurse on implicit inputs.
* guix/packages.scm (build-system-with-package-mapping): New procedure. (package-mapping): Add #:deep? and honor it. * tests/packages.scm ("package-mapping"): Compare the direct inputs of the bag of P0 and that of P1. ("package-mapping, deep"): New test.
Diffstat (limited to 'doc/guix.texi')
-rw-r--r--doc/guix.texi5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 8384eee6c3..054449d8d6 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -6296,10 +6296,11 @@ A more generic procedure to rewrite a package dependency graph is
@code{package-mapping}: it supports arbitrary changes to nodes in the
graph.
-@deffn {Scheme Procedure} package-mapping @var{proc} [@var{cut?}]
+@deffn {Scheme Procedure} package-mapping @var{proc} [@var{cut?}] [#:deep? #f]
Return a procedure that, given a package, applies @var{proc} to all the packages
depended on and returns the resulting package. The procedure stops recursion
-when @var{cut?} returns true for a given package.
+when @var{cut?} returns true for a given package. When @var{deep?} is true, @var{proc} is
+applied to implicit inputs as well.
@end deffn
@menu