aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/eval.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-04-30 12:46:54 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-04-30 12:46:54 +0200
commit4588a6ff3caed5ad30c83e2bc65e52a58176e71c (patch)
treed291bbbce41387200fb4beae730e9b5af0276452 /src/libexpr/eval.hh
parent33bd10549e077f9b4a490f540df979ee17ff69f7 (diff)
parent24b35bf9e7219feba9399466c41801f0ace3ef74 (diff)
Merge remote-tracking branch 'tweag/flakeFlags' into flakes
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r--src/libexpr/eval.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh
index 3f537da89..44988cd70 100644
--- a/src/libexpr/eval.hh
+++ b/src/libexpr/eval.hh
@@ -63,6 +63,8 @@ typedef std::list<SearchPathElem> SearchPath;
/* Initialise the Boehm GC, if applicable. */
void initGC();
+typedef std::vector<std::pair<std::string, std::string>> RegistryOverrides;
+
class EvalState
{
@@ -89,6 +91,9 @@ public:
const ref<Store> store;
+ RegistryOverrides registryOverrides;
+
+
private:
SrcToStore srcToStore;
@@ -211,6 +216,8 @@ public:
path. Nothing is copied to the store. */
Path coerceToPath(const Pos & pos, Value & v, PathSet & context);
+ void addRegistryOverrides(RegistryOverrides overrides) { registryOverrides = overrides; }
+
public:
/* The base environment, containing the builtin functions and