aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/eval.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r--src/libexpr/eval.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh
index f0ab1435b..cc971ae80 100644
--- a/src/libexpr/eval.hh
+++ b/src/libexpr/eval.hh
@@ -112,6 +112,15 @@ public:
void checkURI(const std::string & uri);
+ /* When using a diverted store and 'path' is in the Nix store, map
+ 'path' to the diverted location (e.g. /nix/store/foo is mapped
+ to /home/alice/my-nix/nix/store/foo). However, this is only
+ done if the context is not empty, since otherwise we're
+ probably trying to read from the actual /nix/store. This is
+ intended to distinguish between import-from-derivation and
+ sources stored in the actual /nix/store. */
+ Path toRealPath(const Path & path, const PathSet & context);
+
/* Parse a Nix expression from the specified file. */
Expr * parseExprFromFile(const Path & path);
Expr * parseExprFromFile(const Path & path, StaticEnv & staticEnv);