1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-04 03:01:47 +02:00

Fix resolveExprPath()

This commit is contained in:
Eelco Dolstra 2022-05-09 14:28:47 +02:00
parent 53869fbd42
commit e89d3e0edf
3 changed files with 10 additions and 5 deletions

View file

@ -699,11 +699,8 @@ SourcePath resolveExprPath(const SourcePath & path)
#endif
// FIXME
auto path2 = path.path + "/default.nix";
if (path.pathExists())
return {path.accessor, path2};
return path;
auto path2 = path.append("/default.nix");
return path2.pathExists() ? path2 : path;
}