mirror of
https://github.com/NixOS/nix
synced 2025-06-28 05:21:16 +02:00
* Update autoCallFunction() and findAlongAttrPath().
This commit is contained in:
parent
9a64454faa
commit
af2a372bb0
10 changed files with 120 additions and 188 deletions
|
@ -155,11 +155,12 @@ static string addToPath(const string & s1, const string & s2)
|
|||
}
|
||||
|
||||
|
||||
static void getDerivations(EvalState & state, Value & v,
|
||||
const string & pathPrefix, const ATermMap & autoArgs,
|
||||
static void getDerivations(EvalState & state, Value & vIn,
|
||||
const string & pathPrefix, const Bindings & autoArgs,
|
||||
DrvInfos & drvs, Done & done)
|
||||
{
|
||||
// !!! autoCallFunction(evalExpr(state, e), autoArgs)
|
||||
Value v;
|
||||
state.autoCallFunction(autoArgs, vIn, v);
|
||||
|
||||
/* Process the expression. */
|
||||
DrvInfo drv;
|
||||
|
@ -216,7 +217,7 @@ static void getDerivations(EvalState & state, Value & v,
|
|||
|
||||
|
||||
void getDerivations(EvalState & state, Value & v, const string & pathPrefix,
|
||||
const ATermMap & autoArgs, DrvInfos & drvs)
|
||||
const Bindings & autoArgs, DrvInfos & drvs)
|
||||
{
|
||||
Done done;
|
||||
getDerivations(state, v, pathPrefix, autoArgs, drvs, done);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue