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