aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/flex.scm
blob: 79726759715b2b85220c5d95734307b2fd77e50c (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2012, 2013, 2014, 2019 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages flex)
  #:use-module (guix licenses)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system gnu)
  #:use-module (guix utils)
  #:use-module (gnu packages)
  #:use-module (gnu packages m4)
  #:use-module (gnu packages man)
  #:use-module (gnu packages bison)
  #:use-module (srfi srfi-1))

(define-public flex
  (package
    (name "flex")
    (version "2.6.4")
    (source (origin
              (method url-fetch)
              (uri (string-append
                    "https://github.com/westes/flex"
                    "/releases/download/v" version "/"
                    "flex-" version ".tar.gz"))
              (sha256
               (base32
                "15g9bv236nzi665p9ggqjlfn4dwck5835vf0bbw2cz7h5c1swyp8"))))
    (build-system gnu-build-system)
    (inputs
     (let ((bison-for-tests
            (package
              (inherit bison)
              (arguments
               ;; Disable tests, since they require flex.
               (substitute-keyword-arguments (package-arguments bison)
                 ((#:tests? _ #f) #f)))
              (inputs (alist-delete "flex" (package-inputs bison))))))
       `(("bison" ,bison-for-tests))))
    ;; m4 is not present in PATH when cross-building
    (native-inputs
     (list help2man m4))
    (propagated-inputs (list m4))
    (home-page "https://github.com/westes/flex")
    (synopsis "Fast lexical analyser generator")
    (description
     "Flex is a tool for generating scanners.  A scanner, sometimes
called a tokenizer, is a program which recognizes lexical patterns in
text.  The flex program reads user-specified input files, or its standard
input if no file names are given, for a description of a scanner to
generate.  The description is in the form of pairs of regular expressions
and C code, called rules.  Flex generates a C source file named,
\"lex.yy.c\", which defines the function yylex().  The file \"lex.yy.c\"
can be compiled and linked to produce an executable.  When the executable
is run, it analyzes its input for occurrences of text matching the
regular expressions for each rule.  Whenever it finds a match, it
executes the corresponding C code.")
    (license (non-copyleft "file://COPYING"
                           "See COPYING in the distribution."))))
ias Geerinckx-Rice 2020-06-22gnu: xl2tpd: Fix build....* gnu/packages/vpn.scm (xl2tpd)[arguments]: Substitute hardcoded pppd path instead of trying to set CFLAGS variable. Mathieu Othacehe 2020-06-22gnu: xl2tpd: Fix typo....* gnu/packages/vpn.scm (xl2tpd)[arguments]: Turn "-DPPD" into "-DPPPD". Mathieu Othacehe 2020-06-14gnu: xl2tpd: Add pppd support....* gnu/packages/vpn.scm (xl2tpd)[inputs]: Add "linux-libre-headers" and "ppp", [arguments]: add a 'setup-environment phase to set "PPPD" and "KERNELSRC" variables. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Ivan Kozlov 2020-06-07gnu: wireguard-linux-compat: Update to 1.0.20200520....* gnu/packages/vpn.scm (wireguard-linux-compat): Update to 1.0.20200520. Tobias Geerinckx-Rice 2020-06-06gnu: GnuTLS: Update replacement to 3.6.14 [fixes CVE-2020-13777]....* gnu/packages/tls.scm (gnutls-3.6.13): Rename to ... (gnutls-3.6.14): ... this. Update to 3.6.14. (gnutls)[replacement]: Adjust accordingly. * gnu/packages/package-management.scm (guix)[propagated-inputs]: Likewise. * gnu/packages/vpn.scm (openconnect)[propagated-inputs]: Likewise. Marius Bakke 2020-06-06gnu: openconnect: Add a comment about the gnutls version....* gnu/packages/vpn.scm (openconnect): Add said comment. * gnu/packages/tls.scm (gnutls): Add backlink to optimise SEO. Tobias Geerinckx-Rice 2020-06-01gnu: wireguard-tools: Update to 1.0.20200513....* gnu/packages/vpn.scm (wireguard-tools): Update to 1.0.20200513. Tobias Geerinckx-Rice 2020-05-25gnu: protonvpn-cli: Tweak description....* gnu/packages/vpn.scm (protonvpn-cli)[description]: Tweak. Ludovic Courtès 2020-05-25gnu: Add protonvpn-cli....* gnu/packages/vpn.scm (protonvpn-cli): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Ryan Prior 2020-05-19gnu: openvpn: Update to 2.4.9 [fixes CVE-2020-11810]....* gnu/packages/vpn.scm (openvpn): Update to 2.4.9. Marius Bakke 2020-05-15gnu: openconnect: Update to 8.10 [fixes CVE-2020-12823]....* gnu/packages/vpn.scm (openconnect): Update to 8.10. Tobias Geerinckx-Rice 2020-05-13gnu: wireguard-tools: Fix wg-quick....* gnu/packages/vpn.scm (wireguard-tools)[arguments]: Add phase 'wrap-wg-quick'. [inputs]: Add 'openresolv', 'iproute' and 'iptables'. Brice Waegeneire 2020-05-05Merge branch 'master' into core-updatesMarius Bakke 2020-05-02gnu: openconnect: Add LZ4 support....* gnu/packages/vpn.scm (openconnect)[inputs]: Add lz4. Tobias Geerinckx-Rice 2020-05-02gnu: openconnect: Update to 8.09 [fixes CVE-2020-12105]....* gnu/packages/vpn.scm (openconnect): Update to 8.09. Tobias Geerinckx-Rice 2020-04-30Merge branch 'master' into core-updates... Conflicts: gnu/local.mk gnu/packages/backup.scm gnu/packages/emacs-xyz.scm gnu/packages/guile.scm gnu/packages/lisp.scm gnu/packages/openldap.scm gnu/packages/package-management.scm gnu/packages/web.scm gnu/packages/xorg.scm Marius Bakke 2020-04-26gnu: Add loadable module to wireguard-linux-compat....* gnu/packages/vpn.scm (wireguard-linux-compat)[build-system]: Replace 'gnu-build-system' by 'linux-module-build-system'. [outputs]: Add 'kernel-patch'. [arguments]: Adjust the build system. Add phases 'change-directory' and 'reset-cwd'. Rename phases 'build' to 'build-patch' and 'install' to 'install-patch'. [description]: Mention the loadable module. Signed-off-by: Leo Famulari <leo@famulari.name> Brice Waegeneire 2020-04-11Merge branch 'master' into core-updatesMarius Bakke 2020-04-11gnu: openconnect: Update to 8.08....* gnu/packages/vpn.scm (openconnect): Update to 8.08. [propagated-inputs]: Use gnutls-3.6.13. * gnu/packages/tls.scm (gnutls-3.6.13): Export it. Tobias Geerinckx-Rice 2020-04-08Merge branch 'master' into core-updates... Conflicts: etc/news.scm gnu/local.mk gnu/packages/check.scm gnu/packages/cross-base.scm gnu/packages/gimp.scm gnu/packages/java.scm gnu/packages/mail.scm gnu/packages/sdl.scm gnu/packages/texinfo.scm gnu/packages/tls.scm gnu/packages/version-control.scm Marius Bakke 2020-04-06gnu: Add wireguard-linux-compat....* gnu/packages/vpn.scm (wireguard-linux-compat): New variable. (wireguard): Deprecate in favor of wireguard-tools. Leo Famulari 2020-03-16gnu: Default to Guile 3.0....This patch changes three things: 1. package derivations are built using Guile 3.0; 2. 'gexp->derivation' defaults to Guile 3.0; 3. "guile3.0-" packages are deprecated aliases for the regular package, which now depends on Guile 3.0; "guile2.2-" packages are introduced; "guile-next" is renamed to "guile". * gnu/packages/guile.scm (guile-2.0/fixed): Remove. (guile-3.0/fixed): New variable. (package-for-guile-3.0): Remove. (package-for-guile-2.2): New variable. (define-deprecated-guile3.0-package): New macro. (guile-3.0)[name]: Change to "guile". (guile-json-3)[native-inputs, inputs]: New fields. (guile2.2-json): New variable. (guile3.0-json): Deprecate. (guile-gdbm-ffi)[native-inputs]: Switch to GUILE-3.0. (guile2.2-gdbm-ffi): New variable. (guile3.0-gdbm-ffi): Deprecate. (guile-sqlite3): Switch to GUILE-3.0. (guile2.2-sqlite3): New variable. (guile3.0-sqlite3): Deprecate. (guile-bytestructures): Switch to GUILE-3.0. (guile2.2-bytestructures): New variable. (guile3.0-bytestructures): Deprecate. (guile-git): Switch to GUILE-3.0. (guile2.2-git): New variable. (guile3.0-git): Deprecate. (guile-2.2/bug-fix): * gnu/packages/ci.scm (cuirass): Switch to GUILE-3.0. * gnu/packages/emacs-xyz.scm (emacs-guix): Switch to GUILE-3.0. * gnu/packages/gtk.scm (guile-cairo)[arguments]: New field. Switch to GUILE-3.0. (guile2.2-cairo): New variable. (guile3.0-cairo): Deprecate. (guile-rsvg): Switch to GUILE-3.0. (guile2.2-cairo): New variable. (guile3.0-cairo): Deprecate. (guile-present): Switch to GUILE-3.0. (guile2.2-present): New variable. (guile3.0-present): Deprecate. (guile-gnome)[propagated-inputs]: Use GUILE2.2-CAIRO and GUILE2.2-LIB. * gnu/packages/guile-xyz.scm (guile-fibers)[arguments]: Add #:configure-flags. Switch to GUILE-3.0. (guile2.2-fibers): New variable. (guile3.0-fibers): Deprecate. (guile-syntax-highlight): Switch to GUILE-3.0. (guile2.2-syntax-highlight): New variable. (guile3.0-syntax-highlight): Deprecate. (guile-colorized): Switch to GUILE-3.0. (guile2.2-colorized): New variable. (guile3.0-colorized): Deprecate. (guile-pfds): Switch to GUILE-3.0. (guile2.2-pfds): New variable. (guile3.0-pfds): Deprecate. (guile-simple-zmq): Switch to GUILE-3.0. (guile2.2-simple-zmq): New variable. (guile3.0-simple-zmq): Deprecate. (guile-newt): Switch to GUILE-3.0. (guile2.2-newt): New variable. (guile3.0-newt): Deprecate. (guile-parted): Switch to GUILE-3.0. (guile2.2-parted): New variable. (guile3.0-parted): Deprecate. (guile-config): Switch to GUILE-3.0. (guile2.2-config): New variable. (guile3.0-config): Deprecate. (guile-hall): Switch to GUILE-3.0. (guile2.2-hall): New variable. (guile3.0-hall): Deprecate. (guile-ics): Switch to GUILE-3.0. (guile2.2-ics): New variable. (guile3.0-ics): Deprecate. (guile-wisp)[arguments]: Add 'support-guile-3.0' phase. Switch to GUILE-3.0. (guile2.2-wisp): New variable. (guile3.0-wisp): Deprecate. (guile-lib): Switch to GUILE-3.0. (guile2.2-lib): New variable. (guile3.0-lib): Deprecate. (guile-minikanren): Switch to GUILE-3.0. (guile2.2-minikanren): New variable. (guile3.0-minikanren): Deprecate. (guile-irregex): Switch to GUILE-3.0. (guile2.2-irregex): New variable. (guile3.0-irregex): Deprecate. (haunt): Switch to GUILE-3.0, and remove GUILE-READER. (guile2.2-haunt): New variable. (guile3.0-haunt): Deprecate. (guile-commonmark): Switch to GUILE-3.0. (guile2.2-commonmark): New variable. (guile3.0-commonmark): Deprecate. (mcron): Switch to GUILE-3.0. (guile2.0-mcron): New variable. (guile3.0-mcron): Deprecate. (guile-picture-language): Switch to GUILE-3.0. (guile2.2-picture-language): New variable. (guile3.0-picture-language): Deprecate. (guile-gi): Switch to GUILE-3.0. (guile2.2-gi): New variable. (guile3.0-gi): Deprecate. (guile-hashing): Switch to GUILE-3.0. (guile2.2-hashing): New variable. (guile3.0-hashing): Deprecate. * gnu/packages/package-management.scm (guix): Switch to GUILE-3.0. (guile2.2-guix): New variable. (guile3.0-guix): Deprecate. (gwl): Replace "guile3.0-" with "guile-". (guix-jupyter)[source]: Adjust for Guile 3.0. Switch to GUILE-3.0. * gnu/packages/ssh.scm (guile-ssh): Switch to GUILE-3.0. (guile2.2-ssh): New variable. (guile3.0-ssh): Deprecate. * gnu/packages/admin.scm (shepherd): Switch to GUILE-3.0. (guile2.2-shepherd): New variable. (guile3.0-shepherd): Deprecate. * gnu/packages/mail.scm (mailutils): Switch to GUILE-3.0. (guile2.2-mailutils): New variable. (guile3.0-mailutils): Deprecate. * gnu/packages/plotutils.scm (guile-charting): Switch to GUILE-3.0. (guile2.2-charting): New variable. (guile3.0-charting): Deprecate. * gnu/packages/version-control.scm (libgit2): Switch to GUILE-3.0. * gnu/packages/vpn.scm (vpnc-scripts): Switch to GUILE-3.0. * gnu/packages/web.scm (guix-data-service): Switch to GUILE-3.0. (hpcguix-web): Switch to GUILE-3.0. * guix/self.scm (specification->package): Refer to the "guile-" variants instead of "guile3.0-". * guix/gexp.scm (default-guile): Change to GUILE-3.0. * build-aux/build-self.scm (build): #:guile-version defaults to "3.0". * gnu/packages/commencement.scm (guile-final): Base on GUILE-3.0/FIXED. Ludovic Courtès 2020-03-06gnu: vpnc-scripts: Tighten substitution regex....* gnu/packages/vpn.scm (vpnc-scripts)[arguments]: Do not substitute file names starting with /bin to preserve /bin/sh shebangs. Marius Bakke 2020-03-03gnu: wireguard-tools: Explain why we skip the test suite....* gnu/packages/vpn.scm (wireguard-tools): Add comment. Leo Famulari 2020-03-03gnu: WireGuard: Simplify package definitions....* gnu/packages/vpn.scm (wireguard-tools, wireguard)[arguments]: Set --directory in #:make-flags and remove the 'chdir', 'enter-source-directory' and 'reset-cwd' phases. Leo Famulari 2020-02-18gnu: Add wireguard-tools....The ‘wireguard’ repository that included both tools and kernel patch is no longer maintained. I will add this to its description once kernel 5.6 hits Guix. * gnu/packages/linux.scm (wireguard-tools): New public variable. Tobias Geerinckx-Rice 2020-01-17gnu: vpnc: Use HTTPS home page....* gnu/packages/vpn.scm (vpnc)[home-page]: Use HTTPS. Tobias Geerinckx-Rice 2019-12-20gnu: WireGuard: Update to 0.0.20191219....* gnu/packages/vpn.scm (wireguard): Update to 0.0.20191219. Leo Famulari 2019-12-12gnu: wireguard: Update to 0.0.20191212....* gnu/packages/vpn.scm (wireguard): Update to 0.0.20191212. Tobias Geerinckx-Rice 2019-12-11gnu: vpnc-scripts: Use WRAP-SCRIPT....* gnu/packages/vpn.scm (vpnc-scripts)[arguments]: Use WRAP-SCRIPT instead of WRAP-PROGRAM. [inputs]: Add guile. Ricardo Wurmus 2019-12-01gnu: WireGuard: Update to 0.0.20191127....* gnu/packages/vpn.scm (wireguard): Update to 0.0.20191127. Leo Famulari 2019-11-13gnu: ocproxy: Don't use unstable tarball....* gnu/packages/vpn.scm (ocproxy)[source]: Download using git-fetch. Efraim Flashner 2019-11-03gnu: tinc: Update to 1.0.36....* gnu/packages/vpn.scm (tinc): Update to 1.0.36. Tobias Geerinckx-Rice 2019-11-03gnu: tinc: Don't use NAME in source URI....* gnu/packages/vpn.scm (tinc)[source]: Hard-code NAME. Tobias Geerinckx-Rice 2019-11-02gnu: openvpn: Update to 2.4.8....* gnu/packages/vpn.scm (openvpn): Update to 2.4.8. Tobias Geerinckx-Rice 2019-10-27gnu: wireguard: Update to 0.0.20191012....* gnu/packages/vpn.scm (wireguard): Update to 0.0.20191012. Tobias Geerinckx-Rice 2019-10-15gnu: xl2tpd: Update to 1.3.15....* gnu/packages/vpn.scm (xl2tpd): Update to 1.3.15. Efraim Flashner 2019-10-15gnu: xl2tpd: Fix install directory....* gnu/packages/vpn.scm (xl2tpd)[arguments]: Unset DESTDIR, set PREFIX. Efraim Flashner 2019-09-16gnu: wireguard: Update to 0.0.20190913....* gnu/packages/vpn.scm (wireguard): Update to 0.0.20190913. Rutger Helling 2019-09-12gnu: openconnect: Update to 8.05 [fixes CVE-2019-16239]....* gnu/packages/vpn.scm (openconnect): Update to 8.05. Tobias Geerinckx-Rice 2019-09-07gnu: wireguard: Update to 0.0.20190905....* gnu/packages/vpn.scm (wireguard): Update to 0.0.20190905. Rutger Helling