diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-04-23 14:21:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-23 14:21:25 +0200 |
commit | 3996ca42cfe7bd8e215edba98a79a33bd793b42f (patch) | |
tree | 2f4a6187c36aad8cd2f961d90a6d0c6e4f05f8e6 | |
parent | 788008385ef5bf7edb799977525d6f73f02c76bc (diff) | |
parent | 2207018df574e4b15e552a9ce174f13cc024b6a5 (diff) |
Merge pull request #4735 from NixOS/document-ca-derivations
(briefly) document how to build ca derivations
-rw-r--r-- | doc/manual/src/expressions/advanced-attributes.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/manual/src/expressions/advanced-attributes.md b/doc/manual/src/expressions/advanced-attributes.md index 31ebadda1..1b3c69da2 100644 --- a/doc/manual/src/expressions/advanced-attributes.md +++ b/doc/manual/src/expressions/advanced-attributes.md @@ -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 |