doc: Document fixed-output derivations.
authorLudovic Courtès <ludo@gnu.org>
Thu, 21 Dec 2017 21:12:00 +0000 (22:12 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 22 Dec 2017 07:56:50 +0000 (08:56 +0100)
* doc/guix.texi (Derivations): Add paragraph on fixed-output
derivations.

doc/guix.texi

index 6b6f8de..faad3ad 100644 (file)
@@ -4210,6 +4210,14 @@ paths}.  Derivations paths can be passed to the @code{build-derivations}
 procedure to perform the build actions they prescribe (@pxref{The
 Store}).
 
+@cindex fixed-output derivations
+Operations such as file downloads and version-control checkouts for
+which the expected content hash is known in advance are modeled as
+@dfn{fixed-output derivations}.  Unlike regular derivations, the outputs
+of a fixed-output derivation are independent of its inputs---e.g., a
+source code download produces the same result regardless of the download
+method and tools being used.
+
 The @code{(guix derivations)} module provides a representation of
 derivations as Scheme objects, along with procedures to create and
 otherwise manipulate derivations.  The lowest-level primitive to create