aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/local-store.hh
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2020-06-12 09:49:09 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2020-06-12 09:49:09 -0500
commit79c169d1c615211af69c1cbc6218f7465a4f81ed (patch)
treea5d96334bf6d52054fd9eefa5e2f9b23b1a3ef59 /src/libstore/local-store.hh
parentd558fb98f6f8ce32e5c08a36d798441f1b941ba8 (diff)
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.
Diffstat (limited to 'src/libstore/local-store.hh')
-rw-r--r--src/libstore/local-store.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/local-store.hh b/src/libstore/local-store.hh
index c1e75390c..5a976e3e1 100644
--- a/src/libstore/local-store.hh
+++ b/src/libstore/local-store.hh
@@ -142,7 +142,8 @@ public:
StorePathSet querySubstitutablePaths(const StorePathSet & paths) override;
void querySubstitutablePathInfos(const StorePathSet & paths,
- SubstitutablePathInfos & infos) override;
+ SubstitutablePathInfos & infos,
+ std::map<std::string, std::string> pathsCA = {}) override;
void addToStore(const ValidPathInfo & info, Source & source,
RepairFlag repair, CheckSigsFlag checkSigs,