1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 14:21:48 +02:00

Pass -J to tar for xz decompression

Some tar implementations can't auto-detect compression formats, so
they must be specified explicitly.

(cherry picked from commit 43eb7b6756)
Signed-off-by: Domen Kožar <domen@dev.si>
This commit is contained in:
Michael Forney 2019-12-22 00:06:51 -08:00 committed by Domen Kožar
parent dd9c8a5f60
commit 47a12576ff
No known key found for this signature in database
GPG key ID: C2FFBCAFD2C24246

View file

@ -56,7 +56,7 @@ fi
unpack=$tmpDir/unpack unpack=$tmpDir/unpack
mkdir -p "$unpack" mkdir -p "$unpack"
tar -xf "$tarball" -C "$unpack" || oops "failed to unpack '$url'" tar -xJf "$tarball" -C "$unpack" || oops "failed to unpack '$url'"
script=$(echo "$unpack"/*/install) script=$(echo "$unpack"/*/install)