From b671ab161fcd2c3de55399bb361d500d33294710 Mon Sep 17 00:00:00 2001
From: Peter Simons <simons@cryp.to>
Date: Tue, 20 Jan 2015 16:25:11 +0100
Subject: [PATCH] haskell-zip-archive: fix test suite

---
 pkgs/development/haskell-modules/configuration-common.nix | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index 443a5348f5d5..abe2ed369794 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -154,6 +154,11 @@ self: super: {
   glade = overrideCabal super.gio (drv: { pkgconfigDepends = [pkgs.gtk2]; });
   pango = super.pango.override { cairo = self.cairo; };
 
+  # https://github.com/jgm/zip-archive/issues/21
+  zip-archive = overrideCabal super.zip-archive (drv: { patchPhase = ''
+    sed -i -e 's|/usr/bin/zip|${pkgs.zip}/bin/zip|' "tests/"*.hs
+  ''; });
+
 }
 // {
   # Not on Hackage yet.