2014-02-02 19:13:30 +00:00
|
|
|
{ cabal, ansiTerminal, ansiWlPprint, blazeBuilder, blazeHtml
|
|
|
|
, blazeMarkup, charset, comonad, deepseq, doctest, filepath
|
|
|
|
, fingertree, hashable, lens, mtl, parsers, reducers, semigroups
|
|
|
|
, transformers, unorderedContainers, utf8String
|
|
|
|
}:
|
|
|
|
|
|
|
|
cabal.mkDerivation (self: {
|
|
|
|
pname = "trifecta";
|
2014-03-07 22:13:25 +00:00
|
|
|
version = "1.4.1";
|
|
|
|
sha256 = "0w8x9n7n57y997iajm42z44nm846fj88shc04dffn1xif3jw5zfc";
|
2014-02-02 19:13:30 +00:00
|
|
|
buildDepends = [
|
|
|
|
ansiTerminal ansiWlPprint blazeBuilder blazeHtml blazeMarkup
|
|
|
|
charset comonad deepseq fingertree hashable lens mtl parsers
|
|
|
|
reducers semigroups transformers unorderedContainers utf8String
|
|
|
|
];
|
|
|
|
testDepends = [ doctest filepath ];
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace trifecta.cabal \
|
|
|
|
--replace "blaze-html >= 0.5 && < 0.6," "blaze-html >= 0.5 && < 0.8," \
|
2014-02-02 22:36:22 +00:00
|
|
|
--replace "blaze-html >= 0.5 && < 0.7," "blaze-html >= 0.5 && < 0.8," \
|
2014-02-02 19:13:30 +00:00
|
|
|
--replace "blaze-markup >= 0.5 && < 0.6," "blaze-markup >= 0.5 && < 0.7," \
|
2014-02-02 22:36:22 +00:00
|
|
|
--replace "hashable >= 1.2.1 && < 1.3," "hashable >= 1.1 && < 1.3," \
|
2014-02-02 19:13:30 +00:00
|
|
|
--replace "hashable >= 1.2 && < 1.3," "hashable >= 1.1 && < 1.3," \
|
|
|
|
--replace "fingertree >= 0.0.1 && < 0.1," "fingertree >= 0.0.1 && < 0.2," \
|
|
|
|
--replace "comonad == 3.*," "comonad >= 3 && < 5," \
|
|
|
|
--replace "comonad >= 3 && < 4," "comonad >= 3 && < 5,"
|
|
|
|
'';
|
|
|
|
meta = {
|
|
|
|
homepage = "http://github.com/ekmett/trifecta/";
|
|
|
|
description = "A modern parser combinator library with convenient diagnostics";
|
|
|
|
license = self.stdenv.lib.licenses.bsd3;
|
|
|
|
platforms = self.ghc.meta.platforms;
|
|
|
|
};
|
|
|
|
})
|