1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-03 23:51:00 +01:00

* Outline of the new scheme for derivate distribution.

This commit is contained in:
Eelco Dolstra 2003-07-09 16:12:40 +00:00
parent 2b95a9dc05
commit 6011bd0da2
4 changed files with 35 additions and 4 deletions

View file

@ -30,6 +30,21 @@ extern string dbHash2Paths;
*/
extern string dbSuccessors;
/* dbSubstitutes :: Hash -> [Hash]
Each pair $(h, [hs])$ tells Nix that it can realise any of the
fstate expressions referenced by the hashes in $hs$ to obtain a Nix
archive that, when unpacked, will produce a path with hash $h$.
The main purpose of this is for distributed caching of derivates.
One system can compute a derivate with hash $h$ and put it on a
website (as a Nix archive), for instance, and then another system
can register a substitute for that derivate. The substitute in
this case might be an fstate expression that fetches the Nix
archive.
*/
extern string dbSubstitutes;
/* Path names. */