Hacker News new | ask | show | jobs
by cosarara 1098 days ago
Depending on what you are patching, it will invalidate a great part of the cache, and you will be looking at very long build times for everything in your system.
2 comments

If that dependency is deep in your dep tree and is statically linked somewhere than there is no way preventing that.

If it’s only dynamic linking than yeah, it might happen that you need a huge recompile (but that is not that big of a problem nowadays in my experience - gentoo used to compile way longer in my subjective experience for example). Also note: nix will soon get content-based hashing which may solve this problem.

For that reason many modules have options to set the packages used, so that you can eg. patch openssh without rebuilding everyone.