about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xpkgs/zip/zip-build.sh8
-rw-r--r--pkgs/zip/zip.fix13
2 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/zip/zip-build.sh b/pkgs/zip/zip-build.sh
new file mode 100755
index 000000000000..b68fdfe32b83
--- /dev/null
+++ b/pkgs/zip/zip-build.sh
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+. $stdenv/setup || exit 1
+
+tar xvfz $src || exit 1
+cd zip-* || exit 1
+make -f unix/Makefile generic || exit 1
+make -f unix/Makefile prefix=$out install || exit 1
diff --git a/pkgs/zip/zip.fix b/pkgs/zip/zip.fix
new file mode 100644
index 000000000000..7c3ff62bac71
--- /dev/null
+++ b/pkgs/zip/zip.fix
@@ -0,0 +1,13 @@
+Package(
+  [ ("name", "zip-2.3")
+
+  , ("build", Relative("zip/zip-build.sh"))
+
+  , ("src", Call(IncludeFix("fetchurl/fetchurl.fix"),
+      [ ("url", "ftp://ftp.info-zip.org/pub/infozip/src/zip23.tar.gz")
+      , ("md5", "5206a99541f3b0ab90f1baa167392c4f")
+      ]))
+
+  , ("stdenv", IncludeFix("stdenv/stdenv.fix"))
+  ]
+)