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