aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/eval.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2004-03-28 20:58:28 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2004-03-28 20:58:28 +0000
commitf958bcdf1f9f66759a2512e4b7c0b0ba5647960a (patch)
tree0aea538fffa1e6d24c8e9ac320d4ce996c0c3c5c /src/libexpr/eval.cc
parentdb3e644c1ce7d856dbaca7718fa0af8231c486d2 (diff)
* Added an operator `~' to select paths within a derivation. E.g.,
{stdenv, bash}: derivation { builder = bash ~ /bin/sh; args = ["-e" "-x" ./builder.sh]; ... } Here the attribute `builder' will evaluate to, e.g., `/nix/store/1234abcd...-bash-2.0.1/bin/sh'.
Diffstat (limited to 'src/libexpr/eval.cc')
-rw-r--r--src/libexpr/eval.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index b4d76a137..2281ee721 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -190,6 +190,7 @@ Expr evalExpr2(EvalState & state, Expr e)
if (atMatch(m, e) >> cons &&
(cons == "Str" ||
cons == "Path" ||
+ cons == "SubPath" ||
cons == "Uri" ||
cons == "Null" ||
cons == "Int" ||