diff options
| -rw-r--r-- | doc/guix.texi | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index 5a2c886187..254379da41 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -16095,7 +16095,7 @@ it unchanged. @item git-source If the @code{home-page} is a Git repository (as per @code{git-repository-url?}), and the actual Git repository is tagged -with @code{version} or @code{(string-append ``v'' version)}, change the +with a version string, possibly prefixed by ``v'', change the package origin to the @code{git-fetch} method (@pxref{origin Reference}). Consider this example: @@ -16124,14 +16124,16 @@ its @code{source} field like to: (inherit guile-json-3) (name "guile-json") (version "4.7.3") - (source (origin - (method git-fetch) - (uri (git-reference (url - "https://github.com/aconchillo/guile-json") - (commit version))) - (file-name (git-file-name name version)) - (sha256 (base32 - "0akhm8xjv8fl55fyq0w6c9c6hi5j7mifjx01w07np7qg1cjl9f06")))))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/aconchillo/guile-json") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0akhm8xjv8fl55fyq0w6c9c6hi5j7mifjx01w07np7qg1cjl9f06")))))) @end lisp @end table |
