mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-14 02:06:16 +02:00
nix flake info --json: Revive enumerating the outputs
This commit is contained in:
parent
0d69f7f3f0
commit
3b2ebd029c
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue