fetchzip: fix unpacking regression
This resolves a regression introduced in fc0135370342, where providing a name without a proper extension breaks existing uses of fetchzip (they now fail to unpack). Of particular note, that commit broke all uses of fetchFromGitHub because it uses a name like so: "${repo}-${rev}-src" Fixes #5954
This commit is contained in:
parent
6e7d708bcc
commit
24b5eb61eb
@ -28,7 +28,7 @@ lib.overrideDerivation (fetchurl ({
|
||||
mkdir "$unpackDir"
|
||||
cd "$unpackDir"
|
||||
|
||||
renamed="$TMPDIR/$name"
|
||||
renamed="$TMPDIR/${baseNameOf url}"
|
||||
mv "$downloadedFile" "$renamed"
|
||||
unpackFile "$renamed"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user