fix build

This commit is contained in:
Jörg Thalheim 2023-06-10 13:28:57 +02:00
parent 69ae132fc5
commit 7130e84e9e

View file

@ -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);