mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
* 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'.
This commit is contained in:
parent
db3e644c1c
commit
f958bcdf1f
3 changed files with 16 additions and 0 deletions
|
@ -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" ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue