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/primops.cc | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'src/libexpr/primops.cc') diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index a1374a05e12d..50d03f369bf9 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -39,16 +39,10 @@ std::pair decodeContext(const string & s) } -struct InvalidPathError : EvalError -{ - Path path; - InvalidPathError(const Path & path) : - EvalError(format("path ‘%1%’ is not valid") % path), path(path) {}; - ~InvalidPathError() throw () { }; -}; - +InvalidPathError::InvalidPathError(const Path & path) : + EvalError(format("path ‘%1%’ is not valid") % path), path(path) {} -static void realiseContext(const PathSet & context) +void realiseContext(const PathSet & context) { PathSet drvs; for (auto & i : context) { -- cgit 1.4.1