Skip to content

Commit

Permalink
(briefly) document how to build ca derivations
Browse files Browse the repository at this point in the history
  • Loading branch information
thufschmitt committed Apr 23, 2021
1 parent d9864be commit 2207018
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/manual/src/expressions/advanced-attributes.md
Expand Up @@ -207,6 +207,14 @@ Derivations can declare some infrequently used optional attributes.
the hash in either hexadecimal or base-32 notation. (See the
[`nix-hash` command](../command-ref/nix-hash.md) for information
about converting to and from base-32 notation.)

- `__contentAddressed`
If this **experimental** attribute is set to true, then the derivation
outputs will be stored in a content-addressed location rather than the
traditional input-addressed one.
This only has an effect if the `ca-derivation` experimental feature is enabled.

Setting this attribute also requires setting `outputHashMode` and `outputHashAlgo` like for *fixed-output derivations* (see above).

- `passAsFile`
A list of names of attributes that should be passed via files rather
Expand Down

0 comments on commit 2207018

Please sign in to comment.