| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 |
|
| 23 | (define-module (gnu packages bison)
|
| 24 | #:use-module (guix licenses)
|
| 25 | #:use-module (guix packages)
|
| 26 | #:use-module (guix download)
|
| 27 | #:use-module (guix utils)
|
| 28 | #:use-module (guix build-system gnu)
|
| 29 | #:use-module (gnu packages m4)
|
| 30 | #:use-module (gnu packages perl)
|
| 31 | #:use-module (gnu packages compiler-tools)
|
| 32 | #:use-module (srfi srfi-1))
|
| 33 |
|
| 34 | (define-public bison
|
| 35 | (package
|
| 36 | (name "bison")
|
| 37 | (version "3.8.2")
|
| 38 | (source
|
| 39 | (origin
|
| 40 | (method url-fetch)
|
| 41 | (uri (string-append "mirror://gnu/bison/bison-"
|
| 42 | version ".tar.xz"))
|
| 43 | (sha256
|
| 44 | (base32
|
| 45 | "1wjvbbzrr16k1jlby3l436an3kvv492h08arbnf0gwgprha05flv"))))
|
| 46 | (build-system gnu-build-system)
|
| 47 | (arguments
|
| 48 | `( |
| 49 | |
| 50 | |
| 51 | #:parallel-build? #f
|
| 52 | |
| 53 | |
| 54 | |
| 55 | #:parallel-tests? #f
|
| 56 | |
| 57 | |
| 58 | ,@(if (target-hurd?)
|
| 59 | (list #:configure-flags ''("LIBS=-lpthread"))
|
| 60 | '())))
|
| 61 | (native-inputs (list perl
|
| 62 | |
| 63 | m4))
|
| 64 | (inputs (list flex))
|
| 65 | (propagated-inputs (list m4))
|
| 66 | (home-page "https://www.gnu.org/software/bison/")
|
| 67 | (synopsis "Yacc-compatible parser generator")
|
| 68 | (description
|
| 69 | "GNU Bison is a general-purpose parser generator. It can build a
|
| 70 | deterministic or generalized LR parser from an annotated, context-free
|
| 71 | grammar. It is versatile enough to have many applications, from parsers for
|
| 72 | simple tools through complex programming languages.
|
| 73 |
|
| 74 | Bison also provides an implementation of @command{yacc}, as specified by POSIX.")
|
| 75 | (license gpl3+)))
|