gnu: perl: Update to 5.30.0.
[jackhill/guix/guix.git] / gnu / packages / bison.scm
CommitLineData
233e7676 1;;; GNU Guix --- Functional package management for GNU
a4a17ec3 2;;; Copyright © 2012, 2013, 2015 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>
cf153fc4 5;;;
233e7676 6;;; This file is part of GNU Guix.
cf153fc4 7;;;
233e7676 8;;; GNU Guix is free software; you can redistribute it and/or modify it
cf153fc4
LC
9;;; under the terms of the GNU General Public License as published by
10;;; the Free Software Foundation; either version 3 of the License, or (at
11;;; your option) any later version.
12;;;
233e7676 13;;; GNU Guix is distributed in the hope that it will be useful, but
cf153fc4
LC
14;;; WITHOUT ANY WARRANTY; without even the implied warranty of
15;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16;;; GNU General Public License for more details.
17;;;
18;;; You should have received a copy of the GNU General Public License
233e7676 19;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
cf153fc4 20
1ffa7090 21(define-module (gnu packages bison)
4a44e743 22 #:use-module (guix licenses)
cf153fc4
LC
23 #:use-module (guix packages)
24 #:use-module (guix download)
25 #:use-module (guix build-system gnu)
1ffa7090 26 #:use-module (gnu packages m4)
55f03366
LC
27 #:use-module (gnu packages perl)
28 #:use-module (gnu packages flex)
0160458b 29 #:use-module (srfi srfi-1))
cf153fc4 30
0160458b 31(define-public bison
cf153fc4
LC
32 (package
33 (name "bison")
4ee5482a 34 (version "3.3.2")
cf153fc4
LC
35 (source
36 (origin
37 (method url-fetch)
38 (uri (string-append "mirror://gnu/bison/bison-"
39 version ".tar.xz"))
40 (sha256
41 (base32
4ee5482a 42 "016qp59wxakz3ckxwyrmzxk406q0h286ydz8ww1m0pnrc5dy97h3"))))
cf153fc4 43 (build-system gnu-build-system)
74ed6daf 44 (native-inputs `(("perl" ,perl)
ac98b7a9 45 ;; m4 is not present in PATH when cross-building.
74ed6daf 46 ("m4" ,m4)))
2aa76ee1 47 (inputs `(("flex" ,flex)))
cf153fc4 48 (propagated-inputs `(("m4" ,m4)))
6fd52309 49 (home-page "https://www.gnu.org/software/bison/")
f50d2669 50 (synopsis "Parser generator")
cf153fc4 51 (description
79c311b8
LC
52 "GNU Bison is a general-purpose parser generator. It can build a
53deterministic or generalized LR parser from an annotated, context-free
54grammar. It is versatile enough to have many applications, from parsers for
55simple tools through complex programming languages.")
4a44e743 56 (license gpl3+)))