summaryrefslogtreecommitdiff
path: root/guix/derivations.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-06-06 17:07:26 +0200
committerLudovic Courtès <ludo@gnu.org>2014-06-06 17:07:26 +0200
commit63a428246825e83c8d6a8ff181658ee0a81184d8 (patch)
treea382341a38cd7f075b0f43e0c5bd6fae78118a47 /guix/derivations.scm
parente97c5be914864674d024dd088eb1f2788ac49f46 (diff)
downloadguix-patches-63a428246825e83c8d6a8ff181658ee0a81184d8.tar
guix-patches-63a428246825e83c8d6a8ff181658ee0a81184d8.tar.gz
derivations: 'build-expression->derivation' supports #:allowed-references.
* guix/derivations.scm (build-expression->derivation): Add #:allowed-references and pass it to 'derivation. * doc/guix.texi (Derivations): Adjust accordingly.
Diffstat (limited to 'guix/derivations.scm')
-rw-r--r--guix/derivations.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/guix/derivations.scm b/guix/derivations.scm
index 8d0c9c08df..5ca516aa28 100644
--- a/guix/derivations.scm
+++ b/guix/derivations.scm
@@ -962,6 +962,7 @@ they can refer to each other."
(modules '())
guile-for-build
references-graphs
+ allowed-references
local-build?)
"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)
@@ -981,8 +982,8 @@ 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.
-See the `derivation' procedure for the meaning of REFERENCES-GRAPHS and
-LOCAL-BUILD?."
+See the `derivation' procedure for the meaning of REFERENCES-GRAPHS,
+ALLOWED-REFERENCES, and LOCAL-BUILD?."
(define guile-drv
(or guile-for-build (%guile-for-build)))
@@ -1107,4 +1108,5 @@ LOCAL-BUILD?."
#:recursive? recursive?
#:outputs outputs
#:references-graphs references-graphs
+ #:allowed-references allowed-references
#:local-build? local-build?)))