summary refs log tree commit diff
path: root/pkgs/tools/archivers/unzip
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/archivers/unzip')
-rw-r--r--pkgs/tools/archivers/unzip/5.52.nix18
-rw-r--r--pkgs/tools/archivers/unzip/default.nix (renamed from pkgs/tools/archivers/unzip/6.0.nix)4
2 files changed, 4 insertions, 18 deletions
diff --git a/pkgs/tools/archivers/unzip/5.52.nix b/pkgs/tools/archivers/unzip/5.52.nix
deleted file mode 100644
index c72def3731a..00000000000
--- a/pkgs/tools/archivers/unzip/5.52.nix
+++ /dev/null
@@ -1,18 +0,0 @@
-{stdenv, fetchurl}:
-
-stdenv.mkDerivation {
-  name = "unzip-5.52";
-  
-  src = fetchurl {
-    url = http://nixos.org/tarballs/unzip552.tar.gz;
-    md5 = "9d23919999d6eac9217d1f41472034a9";
-  };
-
-  buildPhase = "make -f unix/Makefile generic";
-
-  installPhase = "make -f unix/Makefile prefix=$out install";
-
-  meta = {
-    homepage = http://www.info-zip.org;
-  };
-}
diff --git a/pkgs/tools/archivers/unzip/6.0.nix b/pkgs/tools/archivers/unzip/default.nix
index 8abd813fb8f..59ce1e397cf 100644
--- a/pkgs/tools/archivers/unzip/6.0.nix
+++ b/pkgs/tools/archivers/unzip/default.nix
@@ -17,6 +17,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 = {