Fix localhost::addToStore(...Path...)
Fix localhost::addToStore(...Path...)

We were calculating the nar hash wrong when the file ingestion method
was flat. I don't think there's anything we can do in that case but dump
the file again, so that's what I do.

As an optomization, we again could reuse the original dump for just the
recursive and non-sha256 case, but I rather do that after this fix, and
after my other PRs which deduplicate this code.

NixOS/nix,NixOS/nix,rycee/nix,rycee/nix,NixOS/nix,NixOS/nix,rycee/nix,rycee/nix,NixOS/nix,rycee/nix