summaryrefslogtreecommitdiff
path: root/distro
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2012-11-22 17:57:37 +0100
committerLudovic Courtès <ludo@gnu.org>2012-11-22 17:57:37 +0100
commitcf153fc4726c616f5c5608797f02bb71b573140b (patch)
tree2e1a93f1ac4f8ba7714e3980b650353b2edb3303 /distro
parent30c40755fc2e8e2f5e1ef01f0115f7d2f5a9a4f4 (diff)
distro: Add GNU Bison.
* distro/packages/bison.scm: New file. * Makefile.am (MODULES): Add it.
Diffstat (limited to 'distro')
-rw-r--r--distro/packages/bison.scm56
1 files changed, 56 insertions, 0 deletions
diff --git a/distro/packages/bison.scm b/distro/packages/bison.scm
new file mode 100644
index 00000000000..500fa3979db
--- /dev/null
+++ b/distro/packages/bison.scm
@@ -0,0 +1,56 @@
1;;; Guix --- Nix package management from Guile. -*- coding: utf-8 -*-
2;;; Copyright (C) 2012 Ludovic Courtès <ludo@gnu.org>
3;;;
4;;; This file is part of Guix.
5;;;
6;;; Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (distro packages bison)
20 #:use-module (guix packages)
21 #:use-module (guix download)
22 #:use-module (guix build-system gnu)
23 #:use-module (distro packages m4)
24 #:use-module (distro packages perl))
25
26(define-public bison
27 (package
28 (name "bison")
29 (version "2.6.1")
30 (source
31 (origin
32 (method url-fetch)
33 (uri (string-append "mirror://gnu/bison/bison-"
34 version ".tar.xz"))
35 (sha256
36 (base32
37 "0y9svfkbw8jc8yv280hqzilpvlwg60gayck83jj98djmzaxr1w86"))))
38 (build-system gnu-build-system)
39 (inputs `(("perl" ,perl)))
40 (propagated-inputs `(("m4" ,m4)))
41 (home-page "http://www.gnu.org/software/bison/")
42 (synopsis
43 "GNU Bison, a Yacc-compatible parser generator")
44 (description
45 "Bison is a general-purpose parser generator that converts an
46annotated context-free grammar into an LALR(1) or GLR parser for
47that grammar. Once you are proficient with Bison, you can use
48it to develop a wide range of language parsers, from those used
49in simple desk calculators to complex programming languages.
50
51Bison is upward compatible with Yacc: all properly-written Yacc
52grammars ought to work with Bison with no change. Anyone
53familiar with Yacc should be able to use Bison with little
54trouble. You need to be fluent in C or C++ programming in order
55to use Bison.")
56 (license "GPLv3+")))