mirror of
https://github.com/NixOS/nix
synced 2025-07-10 13:03:55 +02:00
* Canonicalise paths so that Fix produces identical Nix
expressions for identical inputs.
This commit is contained in:
parent
cab3f4977a
commit
9a99dc736d
3 changed files with 4 additions and 3 deletions
|
@ -170,7 +170,8 @@ static Expr evalExpr(Expr e)
|
|||
if (name == "")
|
||||
throw badTerm("no package name specified", nf);
|
||||
|
||||
string out = nixStore + "/" + ((string) hash).c_str() + "-" + name;
|
||||
string out =
|
||||
canonPath(nixStore + "/" + ((string) hash).c_str() + "-" + name);
|
||||
|
||||
env = ATinsert(env, ATmake("(<str>, <str>)", "out", out.c_str()));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue