diff options
author | jade <lix@jade.fyi> | 2024-03-10 16:12:32 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit@lix> | 2024-03-10 16:12:32 -0600 |
commit | 6432bf919750616107b4954bc118fb4571fa9a1d (patch) | |
tree | 28896a4754267b84f10ba9cc385bd4baadf3df02 /src/nix/eval.cc | |
parent | 0a4737f519caf6ddd551f53f57af76c577225f56 (diff) | |
parent | 6ef9d8efbadd6eee4a9ebf8ae0835c03989b6c3c (diff) |
Merge "Print derivation paths in `nix eval`" into main
Diffstat (limited to 'src/nix/eval.cc')
-rw-r--r-- | src/nix/eval.cc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/nix/eval.cc b/src/nix/eval.cc index 2698a6de8..a9e4c8968 100644 --- a/src/nix/eval.cc +++ b/src/nix/eval.cc @@ -120,8 +120,17 @@ struct CmdEval : MixJSON, InstallableValueCommand, MixReadOnlyOption } else { - state->forceValueDeep(*v); - logger->cout("%s", ValuePrinter(*state, *v, PrintOptions { .force = true })); + logger->cout( + "%s", + ValuePrinter( + *state, + *v, + PrintOptions { + .force = true, + .derivationPaths = true + } + ) + ); } } }; |