forked from lix-project/nix-eval-jobs
fix build
This commit is contained in:
parent
69ae132fc5
commit
7130e84e9e
|
@ -140,7 +140,8 @@ static Value *releaseExprTopLevelValue(EvalState &state, Bindings &autoArgs) {
|
||||||
Value vTop;
|
Value vTop;
|
||||||
|
|
||||||
if (myArgs.fromArgs) {
|
if (myArgs.fromArgs) {
|
||||||
Expr *e = state.parseExprFromString(myArgs.releaseExpr, absPath("."));
|
Expr *e = state.parseExprFromString(
|
||||||
|
myArgs.releaseExpr, state.rootPath(CanonPath::fromCwd()));
|
||||||
state.eval(e, vTop);
|
state.eval(e, vTop);
|
||||||
} else {
|
} else {
|
||||||
state.evalFile(lookupFileArg(state, myArgs.releaseExpr), vTop);
|
state.evalFile(lookupFileArg(state, myArgs.releaseExpr), vTop);
|
||||||
|
@ -202,7 +203,7 @@ struct Drv {
|
||||||
if (myArgs.meta) {
|
if (myArgs.meta) {
|
||||||
nlohmann::json meta_;
|
nlohmann::json meta_;
|
||||||
for (auto &metaName : drvInfo.queryMetaNames()) {
|
for (auto &metaName : drvInfo.queryMetaNames()) {
|
||||||
PathSet context;
|
NixStringContext context;
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
|
|
||||||
auto metaValue = drvInfo.queryMeta(metaName);
|
auto metaValue = drvInfo.queryMeta(metaName);
|
||||||
|
|
Loading…
Reference in a new issue