Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use unsafeDiscardReferences #231

Open
RaitoBezarius opened this issue May 11, 2023 · 1 comment
Open

Use unsafeDiscardReferences #231

RaitoBezarius opened this issue May 11, 2023 · 1 comment

Comments

@RaitoBezarius
Copy link
Member

Okay @Mic92 has the context

@Mic92
Copy link
Member

Mic92 commented May 11, 2023

When using [structured attributes](#adv-attr-structuredAttrs), the
attribute `unsafeDiscardReferences` is an attribute set with a boolean value for each output name.
If set to `true`, it disables scanning the output for runtime dependencies.

Example:

```nix
__structuredAttrs = true;
unsafeDiscardReferences.out = true;
```

This is useful, for example, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants