1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 08:31:16 +02:00

* Put building in the store API.

This commit is contained in:
Eelco Dolstra 2006-11-30 18:02:04 +00:00
parent e2ef5e07fd
commit 6ecb840fd1
11 changed files with 31 additions and 48 deletions

View file

@ -1,4 +1,3 @@
#include "build.hh"
#include "misc.hh"
#include "eval.hh"
#include "globals.hh"
@ -50,7 +49,7 @@ static Expr primImport(EvalState & state, const ATermVector & args)
throw EvalError(format("cannot import `%1%', since path `%2%' is not valid")
% path % *i);
if (isDerivation(*i))
buildDerivations(singleton<PathSet>(*i));
store->buildDerivations(singleton<PathSet>(*i));
}
return evalFile(state, path);