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.master
parent
e97c5be914
commit
63a4282468
|
@ -1798,7 +1798,8 @@ is now deprecated in favor of the much nicer @code{gexp->derivation}.
|
||||||
[#:system (%current-system)] [#:inputs '()] @
|
[#:system (%current-system)] [#:inputs '()] @
|
||||||
[#:outputs '("out")] [#:hash #f] [#:hash-algo #f] @
|
[#:outputs '("out")] [#:hash #f] [#:hash-algo #f] @
|
||||||
[#:recursive? #f] [#:env-vars '()] [#:modules '()] @
|
[#:recursive? #f] [#:env-vars '()] [#:modules '()] @
|
||||||
[#:references-graphs #f] [#:local-build? #f] [#:guile-for-build #f]
|
[#:references-graphs #f] [#:allowed-references #f] @
|
||||||
|
[#:local-build? #f] [#:guile-for-build #f]
|
||||||
Return a derivation that executes Scheme expression @var{exp} as a
|
Return a derivation that executes Scheme expression @var{exp} as a
|
||||||
builder for derivation @var{name}. @var{inputs} must be a list of
|
builder for derivation @var{name}. @var{inputs} must be a list of
|
||||||
@code{(name drv-path sub-drv)} tuples; when @var{sub-drv} is omitted,
|
@code{(name drv-path sub-drv)} tuples; when @var{sub-drv} is omitted,
|
||||||
|
@ -1820,8 +1821,8 @@ terminates by passing the result of @var{exp} to @code{exit}; thus, when
|
||||||
@var{guile-for-build} is omitted or is @code{#f}, the value of the
|
@var{guile-for-build} is omitted or is @code{#f}, the value of the
|
||||||
@code{%guile-for-build} fluid is used instead.
|
@code{%guile-for-build} fluid is used instead.
|
||||||
|
|
||||||
See the @code{derivation} procedure for the meaning of @var{references-graphs}
|
See the @code{derivation} procedure for the meaning of
|
||||||
and @var{local-build?}.
|
@var{references-graphs}, @var{allowed-references}, and @var{local-build?}.
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
@noindent
|
@noindent
|
||||||
|
|
|
@ -962,6 +962,7 @@ they can refer to each other."
|
||||||
(modules '())
|
(modules '())
|
||||||
guile-for-build
|
guile-for-build
|
||||||
references-graphs
|
references-graphs
|
||||||
|
allowed-references
|
||||||
local-build?)
|
local-build?)
|
||||||
"Return a derivation that executes Scheme expression EXP as a builder
|
"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)
|
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
|
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 REFERENCES-GRAPHS and
|
See the `derivation' procedure for the meaning of REFERENCES-GRAPHS,
|
||||||
LOCAL-BUILD?."
|
ALLOWED-REFERENCES, and LOCAL-BUILD?."
|
||||||
(define guile-drv
|
(define guile-drv
|
||||||
(or guile-for-build (%guile-for-build)))
|
(or guile-for-build (%guile-for-build)))
|
||||||
|
|
||||||
|
@ -1107,4 +1108,5 @@ LOCAL-BUILD?."
|
||||||
#:recursive? recursive?
|
#:recursive? recursive?
|
||||||
#:outputs outputs
|
#:outputs outputs
|
||||||
#:references-graphs references-graphs
|
#:references-graphs references-graphs
|
||||||
|
#:allowed-references allowed-references
|
||||||
#:local-build? local-build?)))
|
#:local-build? local-build?)))
|
||||||
|
|
Reference in New Issue