summaryrefslogtreecommitdiff
path: root/guix/derivations.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-08-26 22:19:21 +0200
committerLudovic Courtès <ludo@gnu.org>2013-08-26 22:20:58 +0200
commit9c629a27a435dd37b55a3944f8d79accc710a0e4 (patch)
treec2c70b74fd6459514ab7cbacb8f7560a89133b9a /guix/derivations.scm
parent5b0c9d1635df1608a498db8718af575d2f0e1663 (diff)
derivations: Add #:dependency-graphs to `build-expression->derivation'.
* guix/derivations.scm (build-expression->derivation): Add #:dependency-graphs keyword argument. Pass it to `derivation'. * tests/derivations.scm ("build-expression->derivation with #:dependency-graphs"): New test. * doc/guix.texi (Derivations): Update `build-expression->derivation' description.
Diffstat (limited to 'guix/derivations.scm')
-rw-r--r--guix/derivations.scm10
1 files changed, 7 insertions, 3 deletions
diff --git a/guix/derivations.scm b/guix/derivations.scm
index fea9984370..56a5466d9d 100644
--- a/guix/derivations.scm
+++ b/guix/derivations.scm
@@ -743,7 +743,8 @@ they can refer to each other."
hash hash-algo
(env-vars '())
(modules '())
- guile-for-build)
+ guile-for-build
+ dependency-graphs)
"Return a derivation that executes Scheme expression EXP as a builder
for derivation NAME. INPUTS must be a list of (NAME DRV-PATH SUB-DRV)
tuples; when SUB-DRV is omitted, \"out\" is assumed. MODULES is a list
@@ -760,7 +761,9 @@ builder terminates by passing the result of EXP to `exit'; thus, when
EXP returns #f, the build is considered to have failed.
EXP is built using GUILE-FOR-BUILD (a derivation). When GUILE-FOR-BUILD is
-omitted or is #f, the value of the `%guile-for-build' fluid is used instead."
+omitted or is #f, the value of the `%guile-for-build' fluid is used instead.
+
+See the `derivation' procedure for the meaning of DEPENDENCY-GRAPHS."
(define guile-drv
(or guile-for-build (%guile-for-build)))
@@ -877,4 +880,5 @@ omitted or is #f, the value of the `%guile-for-build' fluid is used instead."
env-vars)
#:hash hash #:hash-algo hash-algo
- #:outputs outputs)))
+ #:outputs outputs
+ #:dependency-graphs dependency-graphs)))