1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 22:11:15 +02:00

Handle the case where a parent of ~/.nix-defexpr is a symlink

Fixes https://github.com/DeterminateSystems/nix-installer/issues/912 and probably #10247.
This commit is contained in:
Eelco Dolstra 2024-04-03 15:28:13 +02:00
parent 5536788404
commit 09551fabd0
2 changed files with 7 additions and 1 deletions

View file

@ -109,7 +109,7 @@ static void getAllExprs(EvalState & state,
const SourcePath & path, StringSet & seen, BindingsBuilder & attrs)
{
StringSet namesSorted;
for (auto & [name, _] : path.readDirectory()) namesSorted.insert(name);
for (auto & [name, _] : path.resolveSymlinks().readDirectory()) namesSorted.insert(name);
for (auto & i : namesSorted) {
/* Ignore the manifest.nix used by profiles. This is