Commit | Line | Data |
---|---|---|
233e7676 | 1 | ;;; GNU Guix --- Functional package management for GNU |
8d564b8b | 2 | ;;; Copyright © 2012, 2013, 2015, 2019 Ludovic Courtès <ludo@gnu.org> |
ac98b7a9 | 3 | ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr> |
3526c72c | 4 | ;;; Copyright © 2019 Efraim Flashner <efraim@flashner.co.il> |
512d23c6 | 5 | ;;; Copyright © 2020 B. Wilson <elaexuotee@wilsonb.com> |
8206a282 | 6 | ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net> |
cf153fc4 | 7 | ;;; |
233e7676 | 8 | ;;; This file is part of GNU Guix. |
cf153fc4 | 9 | ;;; |
233e7676 | 10 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
cf153fc4 LC |
11 | ;;; under the terms of the GNU General Public License as published by |
12 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
13 | ;;; your option) any later version. | |
14 | ;;; | |
233e7676 | 15 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
cf153fc4 LC |
16 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 | ;;; GNU General Public License for more details. | |
19 | ;;; | |
20 | ;;; You should have received a copy of the GNU General Public License | |
233e7676 | 21 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
cf153fc4 | 22 | |
1ffa7090 | 23 | (define-module (gnu packages bison) |
4a44e743 | 24 | #:use-module (guix licenses) |
cf153fc4 LC |
25 | #:use-module (guix packages) |
26 | #:use-module (guix download) | |
27 | #:use-module (guix build-system gnu) | |
1ffa7090 | 28 | #:use-module (gnu packages m4) |
55f03366 LC |
29 | #:use-module (gnu packages perl) |
30 | #:use-module (gnu packages flex) | |
0160458b | 31 | #:use-module (srfi srfi-1)) |
cf153fc4 | 32 | |
0160458b | 33 | (define-public bison |
cf153fc4 LC |
34 | (package |
35 | (name "bison") | |
8595c7b0 | 36 | (version "3.5.3") |
cf153fc4 LC |
37 | (source |
38 | (origin | |
39 | (method url-fetch) | |
40 | (uri (string-append "mirror://gnu/bison/bison-" | |
41 | version ".tar.xz")) | |
42 | (sha256 | |
43 | (base32 | |
8595c7b0 | 44 | "1i57hbczvr8674z73775jxdd3y59qggs5lmfd60gmwm5i1gmpy1b")))) |
cf153fc4 | 45 | (build-system gnu-build-system) |
b1593c1c MB |
46 | (arguments |
47 | '(;; Building in parallel on many-core systems may cause an error such as | |
48 | ;; "mv: cannot stat 'examples/c/reccalc/scan.stamp.tmp': No such file or | |
49 | ;; directory". See <https://bugs.gnu.org/36238>. | |
2c35ae82 MB |
50 | #:parallel-build? #f |
51 | ;; Similarly, when building tests in parallel, Make may produce this error: | |
52 | ;; "./examples/c/reccalc/scan.l:13:10: fatal error: parse.h: No such file | |
53 | ;; or directory". Full log in <https://bugs.gnu.org/36238>. | |
54 | #:parallel-tests? #f)) | |
74ed6daf | 55 | (native-inputs `(("perl" ,perl) |
ac98b7a9 | 56 | ;; m4 is not present in PATH when cross-building. |
74ed6daf | 57 | ("m4" ,m4))) |
2aa76ee1 | 58 | (inputs `(("flex" ,flex))) |
cf153fc4 | 59 | (propagated-inputs `(("m4" ,m4))) |
6fd52309 | 60 | (home-page "https://www.gnu.org/software/bison/") |
8206a282 | 61 | (synopsis "Yacc-compatible parser generator") |
cf153fc4 | 62 | (description |
79c311b8 LC |
63 | "GNU Bison is a general-purpose parser generator. It can build a |
64 | deterministic or generalized LR parser from an annotated, context-free | |
65 | grammar. It is versatile enough to have many applications, from parsers for | |
8206a282 JK |
66 | simple tools through complex programming languages. |
67 | ||
68 | Bison also provides an implementation of @command{yacc}, as specified by POSIX.") | |
4a44e743 | 69 | (license gpl3+))) |
8d564b8b | 70 | |
512d23c6 W |
71 | (define-public bison-3.6 |
72 | (package | |
73 | (inherit bison) | |
512d23c6 W |
74 | (version "3.6.3") |
75 | (source | |
76 | (origin | |
77 | (method url-fetch) | |
78 | (uri (string-append "mirror://gnu/bison/bison-" version ".tar.xz")) | |
79 | (sha256 | |
80 | (base32 "0gdpnjh6ra9xa9vj6hzjdf0c04x4pjyy8vssm3qdb7fya4v7knq6")))))) | |
81 | ||
8d564b8b LC |
82 | (define-public bison-3.0 |
83 | (package | |
84 | (inherit bison) | |
85 | (version "3.0.5") | |
86 | (source | |
87 | (origin | |
88 | (method url-fetch) | |
89 | (uri (string-append "mirror://gnu/bison/bison-" | |
90 | version ".tar.xz")) | |
91 | (sha256 | |
92 | (base32 | |
93 | "0f7kjygrckkx8vas2nm673592jif0a9mw5g8207f6hj6h4pfyp07")))))) |