mirror of
https://github.com/NixOS/nix
synced 2025-06-27 04:21:16 +02:00
* Put building in the store API.
This commit is contained in:
parent
e2ef5e07fd
commit
6ecb840fd1
11 changed files with 31 additions and 48 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue