diff options
author | Naïm Favier <n@monade.li> | 2022-09-23 23:30:29 +0200 |
---|---|---|
committer | Naïm Favier <n@monade.li> | 2023-01-03 17:19:16 +0100 |
commit | 15f7fa59bec1dbb4fa94bc1c2f9018b1f14f0d65 (patch) | |
tree | 16772ce4d4c9a8c9f0f4c0d55c39ce4f75065e47 /doc/manual/src/language | |
parent | 15341334b50b2b432830a8e78abc331d0a47de13 (diff) |
`unsafeDiscardReferences`
Adds a new boolean structured attribute
`outputChecks.<output>.unsafeDiscardReferences` which disables scanning
an output for runtime references.
__structuredAttrs = true;
outputChecks.out.unsafeDiscardReferences = true;
This is useful when creating filesystem images containing their own embedded Nix
store: they are self-contained blobs of data with no runtime dependencies.
Setting this attribute requires the experimental feature
`discard-references` to be enabled.
Diffstat (limited to 'doc/manual/src/language')
-rw-r--r-- | doc/manual/src/language/advanced-attributes.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/manual/src/language/advanced-attributes.md b/doc/manual/src/language/advanced-attributes.md index 2e7e80ed0..f02425b13 100644 --- a/doc/manual/src/language/advanced-attributes.md +++ b/doc/manual/src/language/advanced-attributes.md @@ -207,13 +207,13 @@ 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`]{#adv-attr-__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. - + This only has an effect if the `ca-derivations` experimental feature is enabled. + Setting this attribute also requires setting `outputHashMode` and `outputHashAlgo` like for *fixed-output derivations* (see above). - [`passAsFile`]{#adv-attr-passAsFile}\ |