aboutsummaryrefslogtreecommitdiff
path: root/src/nix/eval.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-02-07 14:22:01 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-02-07 14:22:01 +0100
commitd2032edb2f86e955a8a7724a27c0c3225f386500 (patch)
tree33f4b8874c2e1816947e2086937b9175ec0b0e64 /src/nix/eval.cc
parent0b013a54dc570395bed887369f8dd622b8ce337b (diff)
nix edit: Support non-derivation attributes
E.g. $ nix edit .#nixosConfigurations.bla now works.
Diffstat (limited to 'src/nix/eval.cc')
-rw-r--r--src/nix/eval.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/eval.cc b/src/nix/eval.cc
index a991ee608..f23625161 100644
--- a/src/nix/eval.cc
+++ b/src/nix/eval.cc
@@ -52,7 +52,7 @@ struct CmdEval : MixJSON, InstallableCommand
auto state = getEvalState();
- auto v = installable->toValue(*state);
+ auto v = installable->toValue(*state).first;
PathSet context;
stopProgressBar();