Browse Source

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.
nixos-19.03
Thomas Tuegel 7 years ago
parent
commit
55544c1e68
  1. 2
      pkgs/build-support/fetchzip/nix-prefetch-zip

2
pkgs/build-support/fetchzip/nix-prefetch-zip

@ -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"

Loading…
Cancel
Save