aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-08-23 15:19:33 +0200
committerGitHub <noreply@github.com>2022-08-23 15:19:33 +0200
commit0e54fab0dd7b65c777847d6e80f1ca11233a15eb (patch)
tree157179d371e5bc3de0f90e305754e188be78747a /src/nix
parentb2b607a7a915edc43350873483b7047f27cbac40 (diff)
parentff0b5a778c41a94075d7c651477c4a3a8b4b00cc (diff)
Merge pull request #6909 from ncfavier/json-paths
JSON: print paths as strings without copying them to the store
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/eval.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nix/eval.cc b/src/nix/eval.cc
index 967dc8519..ddd2790c6 100644
--- a/src/nix/eval.cc
+++ b/src/nix/eval.cc
@@ -116,7 +116,8 @@ struct CmdEval : MixJSON, InstallableCommand
else if (json) {
JSONPlaceholder jsonOut(std::cout);
- printValueAsJSON(*state, true, *v, pos, jsonOut, context);
+ printValueAsJSON(*state, true, *v, pos, jsonOut, context, false);
+ std::cout << std::endl;
}
else {