From 7dfd7a93d43eb391e1177b881cc40ed47706ddca Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 19 Feb 2013 13:26:01 +0100 Subject: [PATCH] haskell-BNFC: fix broken version number in executable --- pkgs/development/tools/haskell/BNFC/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/haskell/BNFC/default.nix b/pkgs/development/tools/haskell/BNFC/default.nix index c6cbc4a53587..3cb85b86acbd 100644 --- a/pkgs/development/tools/haskell/BNFC/default.nix +++ b/pkgs/development/tools/haskell/BNFC/default.nix @@ -1,4 +1,4 @@ -{ cabal, mtl }: +{ cabal, mtl, fetchurl }: cabal.mkDerivation (self: { pname = "BNFC"; @@ -7,6 +7,8 @@ cabal.mkDerivation (self: { isLibrary = true; isExecutable = true; buildDepends = [ mtl ]; + patches = [ (fetchurl { url = "https://github.com/BNFC/bnfc/pull/3.patch"; sha256 = "103l04ylzswgxrmpv5zy6dd0jyr96z21mdkpgk1z4prvn8wjl624"; }) ]; + patchFlags = "-p2"; meta = { homepage = "http://bnfc.digitalgrammars.com/"; description = "A compiler front-end generator";