doc: Document hg-fetch.

* doc/guix.texi (origin Reference): Add documentation for hg-fetch.

Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
Holger Peters 2020-11-01 10:50:25 +01:00 committed by Christopher Baines
parent 521d33cdc6
commit 289b20ef62
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -6835,6 +6835,18 @@ commit:
@end lisp
@end deftp
For Mercurial repositories, the module @code{(guix hg-download)} defines
the @code{hg-fetch} origin method and @code{hg-reference} data type for
support of the Mercurial version control system.
@deffn {Scheme Procedure} hg-fetch @var{ref} @var{hash-algo} @var{hash} @
[name]
Return a fixed-output derivation that fetches @var{ref}, a
@code{<hg-reference>} object. The output is expected to have recursive
hash @var{hash} of type @var{hash-algo} (a symbol). Use @var{name} as
the file name, or a generic name if @code{#false}.
@end deffn
@node Defining Package Variants
@section Defining Package Variants