From 7130e84e9e5c718984114bc086e957bbae1174b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 10 Jun 2023 13:28:57 +0200 Subject: [PATCH] fix build --- src/nix-eval-jobs.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/nix-eval-jobs.cc b/src/nix-eval-jobs.cc index 62f14fe..0d8c97c 100644 --- a/src/nix-eval-jobs.cc +++ b/src/nix-eval-jobs.cc @@ -140,7 +140,8 @@ static Value *releaseExprTopLevelValue(EvalState &state, Bindings &autoArgs) { Value vTop; if (myArgs.fromArgs) { - Expr *e = state.parseExprFromString(myArgs.releaseExpr, absPath(".")); + Expr *e = state.parseExprFromString( + myArgs.releaseExpr, state.rootPath(CanonPath::fromCwd())); state.eval(e, vTop); } else { state.evalFile(lookupFileArg(state, myArgs.releaseExpr), vTop); @@ -202,7 +203,7 @@ struct Drv { if (myArgs.meta) { nlohmann::json meta_; for (auto &metaName : drvInfo.queryMetaNames()) { - PathSet context; + NixStringContext context; std::stringstream ss; auto metaValue = drvInfo.queryMeta(metaName);