mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
When --unpack was used the nix would add the current directory to the
nix store instead of the content of unpacked.
The reason for this is that std::distance already consumes the iterator.
To fix this we re-instantiate the directory iterator in case the
directory only contains a single entry.
(cherry picked from commit
|
||
---|---|---|
.. | ||
functional | ||
installer | ||
nixos | ||
unit | ||
repl-completion.nix |