3
0
Fork 0
forked from mirrors/nixpkgs

nix-build.nix: also recognize xz tarballs

svn path=/nixpkgs/trunk/; revision=29760
This commit is contained in:
Rob Vermaas 2011-10-11 14:47:56 +00:00
parent 40f1e4e289
commit 0d62f0418c

View file

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