summary refs log tree commit diff
diff options
context:
space:
mode:
authorThomas Tuegel <ttuegel@gmail.com>2015-12-18 14:20:58 -0600
committerThomas Tuegel <ttuegel@gmail.com>2015-12-19 09:32:22 -0600
commit55544c1e68c79911ca7eafd638a6ac9254c25dc5 (patch)
tree1886c9539066e1ddef347f71e509827d07c01339
parentdd89ee1c3b02a638881476df43cddf2976e78c4c (diff)
downloadnixlib-55544c1e68c79911ca7eafd638a6ac9254c25dc5.tar
nixlib-55544c1e68c79911ca7eafd638a6ac9254c25dc5.tar.gz
nixlib-55544c1e68c79911ca7eafd638a6ac9254c25dc5.tar.bz2
nixlib-55544c1e68c79911ca7eafd638a6ac9254c25dc5.tar.lz
nixlib-55544c1e68c79911ca7eafd638a6ac9254c25dc5.tar.xz
nixlib-55544c1e68c79911ca7eafd638a6ac9254c25dc5.tar.zst
nixlib-55544c1e68c79911ca7eafd638a6ac9254c25dc5.zip
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.
-rwxr-xr-xpkgs/build-support/fetchzip/nix-prefetch-zip2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchzip/nix-prefetch-zip b/pkgs/build-support/fetchzip/nix-prefetch-zip
index ccc03e087e52..ea55643668d4 100755
--- a/pkgs/build-support/fetchzip/nix-prefetch-zip
+++ b/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"