1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-26 20:01:15 +02:00

Export realiseContext in libnixexpr

Useful for importNative plugins
This commit is contained in:
Shea Levy 2014-10-17 22:15:09 -04:00
parent bca6d35636
commit d16e3c7f09
2 changed files with 11 additions and 9 deletions

View file

@ -39,16 +39,10 @@ std::pair<string, string> 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) {