1
0
Fork 0
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:
Eelco Dolstra 2004-03-28 20:58:28 +00:00
parent db3e644c1c
commit f958bcdf1f
3 changed files with 16 additions and 0 deletions

View file

@ -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" ||