mirror of
https://github.com/NixOS/nix.git
synced 2025-12-09 18:41:03 +01: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. |
||
|---|---|---|
| .. | ||
| functional | ||
| installer | ||
| nixos | ||
| unit | ||
| repl-completion.nix | ||