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

Try enabling unsafeDiscardReferences for building disk after upgrade to nixpkgs 25.xx #208

Open
yfyf opened this issue Nov 23, 2024 · 0 comments

Comments

@yfyf
Copy link
Collaborator

yfyf commented Nov 23, 2024

Can reduce build time by not scanning for runtime dependencies (the built disk image has none): https://nix.dev/manual/nix/2.18/language/advanced-attributes#adv-attr-unsafeDiscardReferences

unsafeDiscardReferences requires structuredAttrs, which did not work with runInLinuxVM (which is how the disk image is built), but was fixed recently in NixOS/nixpkgs@97ed6b4

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

1 participant