From c959a59f47c49a4a76bb9c39516397e7874cd412 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 18 May 2015 11:46:40 +0200 Subject: [PATCH] haskell-snap: jailbreak to fix build with current attoparsec and lens libraries --- 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 a71fa7fe92ee..703fda23f369 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -813,4 +813,9 @@ self: super: { cheapskate = markBrokenVersion "0.1.0.3" super.cheapskate; lit = dontDistribute super.lit; + # https://github.com/snapframework/snap/issues/148 + snap = overrideCabal super.snap (drv: { + patchPhase = "sed -i -e 's|attoparsec.*>=.*,|attoparsec,|' -e 's|lens.*>=.*|lens|' snap.cabal"; + }); + }