Update Guix development snapshot.
[guile-syntax-highlight.git] / guix.scm
1 ;;; guile-syntax-highlight --- General-purpose syntax highlighter
2 ;;; Copyright © 2015 David Thompson <davet@gnu.org>
3 ;;;
4 ;;; Guile-syntax-highlight is free software; you can redistribute it
5 ;;; and/or modify it under the terms of the GNU Lesser General Public
6 ;;; License as published by the Free Software Foundation; either
7 ;;; version 3 of the License, or (at your option) any later version.
8 ;;;
9 ;;; Guile-syntax-highlight is distributed in the hope that it will be
10 ;;; useful, but WITHOUT ANY WARRANTY; without even the implied
11 ;;; warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 ;;; See the GNU Lesser General Public License for more details.
13 ;;;
14 ;;; You should have received a copy of the GNU Lesser General Public
15 ;;; License along with guile-syntax-highlight. If not, see
16 ;;; <http://www.gnu.org/licenses/>.
17
18 ;;; Commentary:
19 ;;
20 ;; GNU Guix development package. To build and install, run:
21 ;;
22 ;; guix package -f guix.scm
23 ;;
24 ;; To use as the basis for a development environment, run:
25 ;;
26 ;; guix environment -l guix.scm
27 ;;
28 ;;; Code:
29
30 (use-modules (guix packages)
31 (guix licenses)
32 (guix git-download)
33 (guix build-system gnu)
34 (gnu packages)
35 (gnu packages autotools)
36 (gnu packages guile)
37 (gnu packages pkg-config))
38
39 (package
40 (name "guile-syntax-highlight")
41 (version "0.1")
42 (source (origin
43 (method git-fetch)
44 (uri (git-reference
45 (url "git://dthompson.us/guile-syntax-highlight.git")
46 (commit "deaad79")))
47 (sha256
48 (base32
49 "00ppmg796mcahq8nnq081srf6iwx36biq7arvsi5azm7f6lmwkdc"))))
50 (build-system gnu-build-system)
51 (arguments
52 '(#:phases
53 (modify-phases %standard-phases
54 (add-after 'unpack 'bootstrap
55 (lambda _ (zero? (system* "sh" "bootstrap")))))))
56 (native-inputs
57 `(("autoconf" ,autoconf)
58 ("automake" ,automake)
59 ("pkg-config" ,pkg-config)))
60 (inputs
61 `(("guile" ,guile-2.0)))
62 (synopsis "General-purpose syntax highlighter for GNU Guile")
63 (description "Guile-syntax-highlight is a general-purpose syntax
64 highlighting library for GNU Guile. It can parse code written in
65 various programming languages into a simple s-expression that can be
66 converted to HTML (via SXML) or any other format for rendering.")
67 (home-page "http://dthompson.us/software/guile-syntax-highlight")
68 (license lgpl3+))