happy-1.19.3: patch code to build with ghc-head
https://github.com/simonmar/happy/issues/20
This commit is contained in:
parent
1bfeca7a90
commit
208e7cae1a
@ -8,6 +8,10 @@ cabal.mkDerivation (self: {
|
|||||||
isExecutable = true;
|
isExecutable = true;
|
||||||
buildDepends = [ mtl ];
|
buildDepends = [ mtl ];
|
||||||
buildTools = [ perl ];
|
buildTools = [ perl ];
|
||||||
|
preConfigure = self.stdenv.lib.optional (self.stdenv.lib.versionOlder "7.9" self.ghc.version) ''
|
||||||
|
sed -i -e 's|extensions: |extensions: FlexibleContexts, |' happy.cabal
|
||||||
|
sed -i -e 's|> import System.Exit|> import System.Exit ( exitWith, ExitCode(..) )|' src/Main.lhs
|
||||||
|
'';
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "http://www.haskell.org/happy/";
|
homepage = "http://www.haskell.org/happy/";
|
||||||
description = "Happy is a parser generator for Haskell";
|
description = "Happy is a parser generator for Haskell";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user