From ba8814a245fe1e82408ec8591eeff3275f593f84 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 3 Feb 2020 18:43:45 +0100 Subject: [PATCH] Fix build --- src/hydra-eval-jobs/hydra-eval-jobs.cc | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/hydra-eval-jobs/hydra-eval-jobs.cc b/src/hydra-eval-jobs/hydra-eval-jobs.cc index 334864d5..695a020a 100644 --- a/src/hydra-eval-jobs/hydra-eval-jobs.cc +++ b/src/hydra-eval-jobs/hydra-eval-jobs.cc @@ -13,8 +13,8 @@ #include "get-drvs.hh" #include "globals.hh" #include "common-eval-args.hh" -#include "flakeref.hh" -#include "flake.hh" +#include "flake/flakeref.hh" +#include "flake/flake.hh" #include "hydra-config.hh" @@ -247,9 +247,19 @@ int main(int argc, char * * argv) if (myArgs.flake) { using namespace flake; - FlakeRef flakeRef(myArgs.releaseExpr); + + auto flakeRef = parseFlakeRef(myArgs.releaseExpr); + auto vFlake = state.allocValue(); - callFlake(state, resolveFlake(state, flakeRef, AllPure), *vFlake); + + auto lockedFlake = lockFlake(state, flakeRef, + LockFlags { + .updateLockFile = false, + .useRegistries = false, + .allowMutable = false, + }); + + callFlake(state, lockedFlake, *vFlake); auto vOutputs = (*vFlake->attrs->get(state.symbols.create("outputs")))->value; state.forceValue(*vOutputs);