From d16e3c7f091b0ecc4975368575c71d69ce7a9bc7 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Fri, 17 Oct 2014 22:15:09 -0400 Subject: Export realiseContext in libnixexpr Useful for importNative plugins --- src/libexpr/eval.hh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/libexpr/eval.hh') diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index 38d73772560f..daf53846ffd5 100644 --- a/src/libexpr/eval.hh +++ b/src/libexpr/eval.hh @@ -336,5 +336,13 @@ string showType(const Value & v); /* If `path' refers to a directory, then append "/default.nix". */ Path resolveExprPath(Path path); +struct InvalidPathError : EvalError +{ + Path path; + InvalidPathError(const Path & path); +}; + +/* Realise all paths in `context' */ +void realiseContext(const PathSet & context); } -- cgit 1.4.1