BNFC: fix build with GHC 7.8.1

This commit is contained in:
Peter Simons 2014-03-26 12:49:46 +01:00
parent 558eac3869
commit 284ea5859b

View file

@ -1,4 +1,4 @@
{ cabal, mtl, fetchurl }:
{ cabal, mtl, fetchurl, alex, happy }:
cabal.mkDerivation (self: {
pname = "BNFC";
@ -7,8 +7,10 @@ cabal.mkDerivation (self: {
isLibrary = true;
isExecutable = true;
buildDepends = [ mtl ];
buildTools = [ alex happy ];
patches = [ (fetchurl { url = "https://github.com/BNFC/bnfc/pull/3.patch"; sha256 = "103l04ylzswgxrmpv5zy6dd0jyr96z21mdkpgk1z4prvn8wjl624"; }) ];
patchFlags = "-p2";
preConfigure = "runhaskell Setup.lhs clean";
meta = {
homepage = "http://bnfc.digitalgrammars.com/";
description = "A compiler front-end generator";