nix-prefetch-zip: keep downloaded file extension

Keep the correct file extension on the downloaded file so that
`unpackFile` will know how to unpack it correctly.
This commit is contained in:
Thomas Tuegel 2015-12-18 14:20:58 -06:00
parent dd89ee1c3b
commit 55544c1e68

View File

@ -73,7 +73,7 @@ mkdir -p $unpackDirTmp
unpackDir=$tmp/unpacked/$name
mkdir -p $unpackDir
downloadedFile=$tmp/$name
downloadedFile=$tmp/$(basename "$url")
unpackFile() {
local curSrc="$1"