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 granular caching by default = create one derivation per dependency #6

Open
milahu opened this issue Aug 14, 2023 · 1 comment
Open

Comments

@milahu
Copy link
Owner

milahu commented Aug 14, 2023

buildRustPackage should build one derivation per dependency

see also

related: cache by build phase https://discourse.nixos.org/t/splitbuildinstall-split-buildphase-and-installphase-for-large-packages/15874

@milahu
Copy link
Owner Author

milahu commented Aug 25, 2023

incremental builds

a fundamental problem of nix are the long build times

when a complex build fails, you have to rebuild from scratch, and you cannot share compilation results between builds

if you have lots of money (and a cheap energy source), you "just buy a faster computer" and/or "just buy more computers"... but for low budget (and in a future of high energy costs), that wont work

incremental builds are more aggressive than granular caching, because granular caching can give a cache miss, when some *unused* input was changed (when using outPath as cache key). incremental builds would consider only *used* inputs to generate the cache key

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