Fix building against nix master

This commit is contained in:
Eelco Dolstra
2018-10-30 14:41:21 +01:00
parent e0f204f3da
commit 8d26144121
3 changed files with 6 additions and 3 deletions

View File

@ -428,8 +428,9 @@ Step::ptr State::createStep(ref<Store> destStore,
it's not runnable yet, and other threads won't make it
runnable while step->created == false. */
step->drv = readDerivation(drvPath);
step->parsedDrv = std::make_unique<ParsedDerivation>(drvPath, step->drv);
step->preferLocalBuild = step->drv.willBuildLocally();
step->preferLocalBuild = step->parsedDrv->willBuildLocally();
step->isDeterministic = get(step->drv.env, "isDetermistic", "0") == "1";
step->systemType = step->drv.platform;