1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-02 13:31:48 +02:00

* Handle multiple indirect symlinks when loading a Nix expression.

This commit is contained in:
Eelco Dolstra 2007-01-15 14:50:25 +00:00
parent e4b0666f8e
commit 71ceb1c161
3 changed files with 22 additions and 7 deletions

View file

@ -1113,10 +1113,7 @@ static void opDefaultExpr(Globals & globals,
if (opArgs.size() != 1)
throw UsageError(format("exactly one argument expected"));
Path defNixExpr = absPath(opArgs.front());
Path defNixExprLink = getDefNixExprPath();
switchLink(defNixExprLink, defNixExpr);
switchLink(getDefNixExprPath(), absPath(opArgs.front()));
}