Skip to content

Commit 2207018

Browse files
committedApr 23, 2021
(briefly) document how to build ca derivations
1 parent d9864be commit 2207018

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

Diff for: ‎doc/manual/src/expressions/advanced-attributes.md

+8
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,14 @@ Derivations can declare some infrequently used optional attributes.
207207
the hash in either hexadecimal or base-32 notation. (See the
208208
[`nix-hash` command](../command-ref/nix-hash.md) for information
209209
about converting to and from base-32 notation.)
210+
211+
- `__contentAddressed`
212+
If this **experimental** attribute is set to true, then the derivation
213+
outputs will be stored in a content-addressed location rather than the
214+
traditional input-addressed one.
215+
This only has an effect if the `ca-derivation` experimental feature is enabled.
216+
217+
Setting this attribute also requires setting `outputHashMode` and `outputHashAlgo` like for *fixed-output derivations* (see above).
210218
211219
- `passAsFile`
212220
A list of names of attributes that should be passed via files rather

0 commit comments

Comments
 (0)
Please sign in to comment.