mirror of
https://github.com/NixOS/nix
synced 2025-06-30 11:43:15 +02:00
Allow substituting from different storeDir
Substituters can substitute from one store dir to another with a little bit of help. The store api just needs to have a CA so it can recompute the store path based on the new store dir. We can only do this for fixed output derivations with no references, though.
This commit is contained in:
parent
d558fb98f6
commit
79c169d1c6
7 changed files with 50 additions and 9 deletions
|
@ -445,7 +445,7 @@ public:
|
|||
sizes) of a set of paths. If a path does not have substitute
|
||||
info, it's omitted from the resulting ‘infos’ map. */
|
||||
virtual void querySubstitutablePathInfos(const StorePathSet & paths,
|
||||
SubstitutablePathInfos & infos) { return; };
|
||||
SubstitutablePathInfos & infos, std::map<std::string, std::string> pathsCA = {}) { return; };
|
||||
|
||||
/* Import a path into the store. */
|
||||
virtual void addToStore(const ValidPathInfo & info, Source & narSource,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue