aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorjade <lix@jade.fyi>2024-03-10 16:12:32 -0600
committerGerrit Code Review <gerrit@lix>2024-03-10 16:12:32 -0600
commit6432bf919750616107b4954bc118fb4571fa9a1d (patch)
tree28896a4754267b84f10ba9cc385bd4baadf3df02 /src/nix
parent0a4737f519caf6ddd551f53f57af76c577225f56 (diff)
parent6ef9d8efbadd6eee4a9ebf8ae0835c03989b6c3c (diff)
Merge "Print derivation paths in `nix eval`" into main
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/eval.cc13
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
+ }
+ )
+ );
}
}
};