forked from mirrors/nixpkgs
nix-build.nix: also recognize xz tarballs
svn path=/nixpkgs/trunk/; revision=29760
This commit is contained in:
parent
40f1e4e289
commit
0d62f0418c
|
@ -68,7 +68,7 @@ stdenv.mkDerivation (
|
||||||
# multiple tarballs, just pick the first one.
|
# multiple tarballs, just pick the first one.
|
||||||
origSrc=$src
|
origSrc=$src
|
||||||
if test -d $src/tarballs; then
|
if test -d $src/tarballs; then
|
||||||
src=$(ls $src/tarballs/*.tar.bz2 $src/tarballs/*.tar.gz | sort | head -1)
|
src=$(ls $src/tarballs/*.tar.bz2 $src/tarballs/*.tar.gz $src/tarballs/*.tar.xz | sort | head -1)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set GCC flags for coverage analysis, if desired.
|
# Set GCC flags for coverage analysis, if desired.
|
||||||
|
|
Loading…
Reference in a new issue