mirror of
https://github.com/NixOS/nix
synced 2025-07-10 13:03:55 +02:00
* Substitute fixes.
This commit is contained in:
parent
b9ecadee6e
commit
9d56ca219f
8 changed files with 86 additions and 36 deletions
|
@ -111,6 +111,14 @@ static Expr evalExpr(Expr e)
|
|||
ATmatch(e, "FSId(<str>)", &s1))
|
||||
return e;
|
||||
|
||||
if (ATgetType(e) == AT_APPL &&
|
||||
((string) ATgetName(ATgetAFun(e)) == "Slice" ||
|
||||
(string) ATgetName(ATgetAFun(e)) == "Derive"))
|
||||
{
|
||||
return ATmake("FSId(<str>)",
|
||||
((string) writeTerm(e, "", 0)).c_str());
|
||||
}
|
||||
|
||||
/* Application. */
|
||||
if (ATmatch(e, "App(<term>, [<list>])", &e1, &e2)) {
|
||||
e1 = evalExpr(e1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue