diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-07-08T20·26+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-07-08T20·26+0000 |
commit | 9a99dc736d814f41d2b3ceb92da2435ae2dd5632 (patch) | |
tree | 13b525d2a48c164950a71fe3fdf762f8030ea6cf /src/fix.cc | |
parent | cab3f4977a412681a77767ec7307ee642b61332d (diff) |
* Canonicalise paths so that Fix produces identical Nix
expressions for identical inputs.
Diffstat (limited to 'src/fix.cc')
-rw-r--r-- | src/fix.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fix.cc b/src/fix.cc index 508a441167bc..b4626f71f329 100644 --- a/src/fix.cc +++ b/src/fix.cc @@ -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())); |