aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-06-17 17:31:34 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-06-17 17:31:34 +0200
commit3b2ebd029cac0b1ce715d8aca44204130c93a869 (patch)
tree2b183cce7dcd24383ab0087ce022818c597287d1 /src
parent0d69f7f3f012aceb4c494f3c1cc866b378c5eac1 (diff)
nix flake info --json: Revive enumerating the outputs
Diffstat (limited to 'src')
-rw-r--r--src/nix/flake.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc
index af1a361b3..6f6d3c130 100644
--- a/src/nix/flake.cc
+++ b/src/nix/flake.cc
@@ -234,8 +234,8 @@ struct CmdFlakeInfo : FlakeCommand, MixJSON
if (json) {
auto json = flakeToJson(flake);
-#if 0
auto state = getEvalState();
+ auto flake = resolveFlake();
auto vFlake = state->allocValue();
flake::callFlake(*state, flake, *vFlake);
@@ -257,7 +257,6 @@ struct CmdFlakeInfo : FlakeCommand, MixJSON
});
json["outputs"] = std::move(outputs);
-#endif
std::cout << json.dump() << std::endl;
} else