mirror of
https://github.com/NixOS/nix.git
synced 2024-11-21 22:32:26 +00:00
73f3179954
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 |