diff options
author | Ludovic Courtès <ludo@gnu.org> | 2015-09-16 15:03:52 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-10-10 22:46:15 +0200 |
commit | e1c153e0ab116a174ea0ed88b76f222927048c5f (patch) | |
tree | 20f3bad7cf98e82d8f6b4652279d4278e9001c0e /doc | |
parent | b893f1aec35b879169f80bc9461fac21907fbaf4 (diff) | |
download | guix-e1c153e0ab116a174ea0ed88b76f222927048c5f.tar guix-e1c153e0ab116a174ea0ed88b76f222927048c5f.tar.gz |
gexp: Add 'scheme-file'.
* guix/gexp.scm (<scheme-file>): New record type.
(scheme-file, scheme-file-compiler): New procedures.
* tests/gexp.scm ("scheme-file"): New test.
* doc/guix.texi (G-Expressions): Document 'scheme-file'.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/guix.texi | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index 591c4407a8..80c8d873da 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -3345,10 +3345,10 @@ The other arguments are as for @code{derivation} (@pxref{Derivations}). @end deffn @cindex file-like objects -The @code{local-file}, @code{plain-file}, @code{computed-file}, and -@code{program-file} procedures below return @dfn{file-like objects}. -That is, when unquoted in a G-expression, these objects lead to a file -in the store. Consider this G-expression: +The @code{local-file}, @code{plain-file}, @code{computed-file}, +@code{program-file}, and @code{scheme-file} procedures below return +@dfn{file-like objects}. That is, when unquoted in a G-expression, +these objects lead to a file in the store. Consider this G-expression: @example #~(system* (string-append #$glibc "/sbin/nscd") "-f" @@ -3437,6 +3437,13 @@ The resulting file holds references to all the dependencies of @var{exp} or a subset thereof. @end deffn +@deffn {Scheme Procedure} scheme-file @var{name} @var{exp} +Return an object representing the Scheme file @var{name} that contains +@var{exp}. + +This is the declarative counterpart of @code{gexp->file}. +@end deffn + @deffn {Monadic Procedure} text-file* @var{name} @var{text} @dots{} Return as a monadic value a derivation that builds a text file containing all of @var{text}. @var{text} may list, in addition to |