mirror of
https://github.com/NixOS/nix.git
synced 2025-11-25 03:39:36 +01: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
|
|
@ -177,7 +177,7 @@ void addToStore(string srcPath, string & dstPath, Hash & hash)
|
|||
}
|
||||
|
||||
string baseName = baseNameOf(srcPath);
|
||||
dstPath = nixStore + "/" + (string) hash + "-" + baseName;
|
||||
dstPath = canonPath(nixStore + "/" + (string) hash + "-" + baseName);
|
||||
|
||||
copyPath(srcPath, dstPath);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue