From cb537ad44b940000653c4f36b3a68578a6a66980 Mon Sep 17 00:00:00 2001 From: Mathijs Kwik Date: Sun, 29 Sep 2013 23:08:31 +0200 Subject: [PATCH] trifecta: override dependency versions "jailbreak" did not work for this package Also, I force a downgrade for "hashable" to make stuff work with our current haskell platform. If you don't like running things "below spec", you can add the following to packageOverrides: haskellPackages_ghc763 = pkgs.haskellPackages_ghc763.override { extraPrefs = self: { hashable = self.hashable_1_2_1_0; }; }; --- pkgs/development/libraries/haskell/trifecta/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/libraries/haskell/trifecta/default.nix b/pkgs/development/libraries/haskell/trifecta/default.nix index 417b6102e7ed..bf5f2f0d0a70 100644 --- a/pkgs/development/libraries/haskell/trifecta/default.nix +++ b/pkgs/development/libraries/haskell/trifecta/default.nix @@ -14,6 +14,12 @@ cabal.mkDerivation (self: { reducers semigroups transformers unorderedContainers utf8String ]; testDepends = [ doctest filepath ]; + postPatch = '' + substituteInPlace trifecta.cabal \ + --replace "blaze-html >= 0.5 && < 0.6," "blaze-html >= 0.5 && < 0.7," \ + --replace "hashable >= 1.2 && < 1.3," "hashable >= 1.1 && < 1.3," \ + --replace "fingertree >= 0.0.1 && < 0.1," "fingertree >= 0.0.1 && < 0.2," + ''; meta = { homepage = "http://github.com/ekmett/trifecta/"; description = "A modern parser combinator library with convenient diagnostics";