nix flake info --json: Revive enumerating the outputs

This commit is contained in:
Eelco Dolstra 2019-06-17 17:31:34 +02:00
parent 0d69f7f3f0
commit 3b2ebd029c
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -234,8 +234,8 @@ struct CmdFlakeInfo : FlakeCommand, MixJSON
if (json) { if (json) {
auto json = flakeToJson(flake); auto json = flakeToJson(flake);
#if 0
auto state = getEvalState(); auto state = getEvalState();
auto flake = resolveFlake();
auto vFlake = state->allocValue(); auto vFlake = state->allocValue();
flake::callFlake(*state, flake, *vFlake); flake::callFlake(*state, flake, *vFlake);
@ -257,7 +257,6 @@ struct CmdFlakeInfo : FlakeCommand, MixJSON
}); });
json["outputs"] = std::move(outputs); json["outputs"] = std::move(outputs);
#endif
std::cout << json.dump() << std::endl; std::cout << json.dump() << std::endl;
} else } else