janneke pushed a commit to branch core-packages-team
in repository guix.

commit 2304b66a733c18552390a18c1bf50bd1a0edaa99
Author: Tomas Volf <~@wolfsden.cz>
AuthorDate: Thu Jan 23 23:57:08 2025 +0100

    doc: Update arguments for gexp procedures.
    
    Some keyword arguments were missing, some had wrong default values.  This
    commit updates the documentation to match the code.
    
    * doc/guix.texi (G-Expressions)[computed-file]: Use @var.  Document #:guile.
    [gexp->script]: Fix default value for #:target.
    [gexp->file]: Document #:system and #:target.
    
    Change-Id: Ie92a57fe1c3b45d1c7a5e8865fcf291c5f590c11
    Signed-off-by: Janneke Nieuwenhuizen <jann...@gnu.org>
---
 doc/guix.texi | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index 83ba0f3292..41911bb5cd 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -123,7 +123,7 @@ Copyright @copyright{} 2023 Foundation Devices, Inc.@*
 Copyright @copyright{} 2023 Thomas Ieong@*
 Copyright @copyright{} 2023 Saku Laesvuori@*
 Copyright @copyright{} 2023 Graham James Addis@*
-Copyright @copyright{} 2023, 2024 Tomas Volf@*
+Copyright @copyright{} 2023, 2024, 2025 Tomas Volf@*
 Copyright @copyright{} 2024, 2025 Herman Rimm@*
 Copyright @copyright{} 2024 Matthew Trzcinski@*
 Copyright @copyright{} 2024 Richard Sent@*
@@ -12425,7 +12425,8 @@ Return an object representing a text file called 
@var{name} with the given
 This is the declarative counterpart of @code{text-file}.
 @end deffn
 
-@deffn {Procedure} computed-file name gexp [#:local-build? #t] [#:options '()]
+@deffn {Procedure} computed-file @var{name} @var{gexp} @
+  [#:guile] [#:local-build? #t] [#:options '()]
 Return an object representing the store item @var{name}, a file or
 directory computed by @var{gexp}.  When @var{local-build?} is true (the
 default), the derivation is built locally.  @var{options} is a list of
@@ -12436,7 +12437,7 @@ This is the declarative counterpart of 
@code{gexp->derivation}.
 
 @deffn {Monadic Procedure} gexp->script @var{name} @var{exp} @
   [#:guile (default-guile)] [#:module-path %load-path] @
-  [#:system (%current-system)] [#:target #f]
+  [#:system (%current-system)] [#:target 'current]
 Return an executable script @var{name} that runs @var{exp} using
 @var{guile}, with @var{exp}'s imported modules in its search path.
 Look up @var{exp}'s modules in @var{module-path}.
@@ -12473,8 +12474,8 @@ This is the declarative counterpart of 
@code{gexp->script}.
 
 @deffn {Monadic Procedure} gexp->file @var{name} @var{exp} @
             [#:set-load-path? #t] [#:module-path %load-path] @
-            [#:splice? #f] @
-            [#:guile (default-guile)]
+            [#:splice? #f] [#:guile (default-guile)] @
+            [#:system (%current-system)] [#:target 'current]
 Return a derivation that builds a file @var{name} containing @var{exp}.
 When @var{splice?}  is true, @var{exp} is considered to be a list of
 expressions that will be spliced in the resulting file.

Reply via email to