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/release-notes/rl-next.md | |
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/release-notes/rl-next.md')
-rw-r--r-- | doc/manual/src/release-notes/rl-next.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/manual/src/release-notes/rl-next.md b/doc/manual/src/release-notes/rl-next.md index 9f491efc8..51320d50a 100644 --- a/doc/manual/src/release-notes/rl-next.md +++ b/doc/manual/src/release-notes/rl-next.md @@ -21,3 +21,15 @@ * Error traces have been reworked to provide detailed explanations and more accurate error locations. A short excerpt of the trace is now shown by default when an error occurs. + +* In derivations that use structured attributes, you can now use `unsafeDiscardReferences` + to disable scanning a given output for runtime dependencies: + ```nix + __structuredAttrs = true; + outputChecks.out.unsafeDiscardReferences = true; + ``` + This is useful e.g. when generating self-contained filesystem images with + their own embedded Nix store: hashes found inside such an image refer + to the embedded store and not to the host's Nix store. + + This requires the `discard-references` experimental feature. |