mirror of
https://github.com/NixOS/nix
synced 2025-07-04 03:01:47 +02:00
Fix resolveExprPath()
This commit is contained in:
parent
53869fbd42
commit
e89d3e0edf
3 changed files with 10 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue