Oh, wow! I didn’t know that! After some searches with the keyword “incremental build” I found:
- Caching local compilation results for all compiled packages
- Distributed nix build: split large package into many derivations
- splitBuildInstall: split buildPhase and installPhase for large packages
Naturally people have long thought about this before haha! I am hoping that mechanisms of this sort can be easily turned on by e.g. flipping an option of mkDerivation
. That would be ideal!
Update: is this the PR you are referring to?