Normally you could use nix-prefetch-url
. However it doesn't work when the files don't fit into memory.
For those cases, you should use:
wget https://url-to-large-file.com/file.zip
nix-hash --flat --base32 --type sha256 ./file.zip
This will get you what you need.
However you can also just use an all 0 hashes.