unzip: add support for file greater than 2 GB (unix only)

svn path=/nixpkgs/branches/stdenv-updates/; revision=28622
This commit is contained in:
David Guibert 2011-08-16 18:21:05 +00:00
parent 05a530fd10
commit 565cdcc3e1

View file

@ -16,6 +16,10 @@ stdenv.mkDerivation {
buildFlags = "generic D_USE_BZ2=-DUSE_BZIP2 L_BZ2=-lbz2";
preConfigure = ''
sed -i -e 's@CF="-O3 -Wall -I. -DASM_CRC $(LOC)"@CF="-O3 -Wall -I. -DASM_CRC -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(LOC)"@' unix/Makefile
'';
installFlags = "prefix=$(out)";
meta = {