about summary refs log tree commit diff
path: root/src/libexpr/attr-path.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-07-28T16·03+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-07-28T16·03+0000
commit4661282fde9f37780877fbeeb34b06b0c221e6bf (patch)
tree234537580ad8a9f51b0738cd990aa35c31247b54 /src/libexpr/attr-path.cc
parentc11839d7b24993f9639d59f9fa3420e8ccc22e02 (diff)
* `nix-instantiate ... --arg NAME VALUE': allow arguments to be passed
  to functions from the command line.
* nix-build: started removing backticks.

Diffstat (limited to 'src/libexpr/attr-path.cc')
-rw-r--r--src/libexpr/attr-path.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/attr-path.cc b/src/libexpr/attr-path.cc
index 274f49ceab09..63bb1e554041 100644
--- a/src/libexpr/attr-path.cc
+++ b/src/libexpr/attr-path.cc
@@ -33,7 +33,7 @@ Expr findAlongAttrPath(EvalState & state, const string & attrPath, Expr e)
         if (string2Int(attr, attrIndex)) apType = apIndex;
 
         /* Evaluate the expression. */
-        e = evalExpr(state, autoCallFunction(evalExpr(state, e)));
+        e = evalExpr(state, autoCallFunction(evalExpr(state, e), ATermMap(1)));
 
         /* It should evaluate to either an attribute set or an
            expression, according to what is specified in the