lol
1{ stdenv, fetchurl, m4, perl }:
2
3stdenv.mkDerivation rec {
4 name = "bison-2.7";
5
6 src = fetchurl {
7 url = "mirror://gnu/bison/${name}.tar.gz";
8 sha256 = "0cd8s2g7zjshya7kwjc9rh3drsssl4hiq4sccnkgf0nn9wvygfqr";
9 };
10
11 nativeBuildInputs = [ m4 ] ++ stdenv.lib.optional doCheck perl;
12 propagatedBuildInputs = [ m4 ];
13
14 doCheck = true;
15 # M4 = "${m4}/bin/m4";
16
17 meta = {
18 homepage = http://www.gnu.org/software/bison/;
19 description = "Yacc-compatible parser generator";
20 license = stdenv.lib.licenses.gpl3Plus;
21
22 longDescription = ''
23 Bison is a general-purpose parser generator that converts an
24 annotated context-free grammar into an LALR(1) or GLR parser for
25 that grammar. Once you are proficient with Bison, you can use
26 it to develop a wide range of language parsers, from those used
27 in simple desk calculators to complex programming languages.
28
29 Bison is upward compatible with Yacc: all properly-written Yacc
30 grammars ought to work with Bison with no change. Anyone
31 familiar with Yacc should be able to use Bison with little
32 trouble. You need to be fluent in C or C++ programming in order
33 to use Bison.
34 '';
35
36 platforms = stdenv.lib.platforms.unix;
37 };
38
39 passthru = { glrSupport = true; };
40}