distro: Add the `guile', `typesetting', and `databases' package modules.
* distro.scm (package-files): Adjust PREFIX-LEN to use the top-level
directory, not %DISTRO-MODULE-DIRECTORY.
* distro/packages/base.scm (guile-reader, guile-reader/guile-1.8,
guile-reader/guile-2.0, lout, recutils): Move to...
* distro/packages/guile.scm, distro/packages/typesetting.scm,
distro/packages/databases.scm: ... here. New files.
* Makefile.am (MODULES): Add them.
(EXTRA_DIST): Add `.dir-locals.el'.
* .dir-locals.el: New file, with settings formerly in `base.scm'.
2012-09-26 20:17:41 +00:00
|
|
|
|
;;; Guix --- Nix package management from Guile. -*- coding: utf-8 -*-
|
|
|
|
|
;;; Copyright (C) 2012 Ludovic Courtès <ludo@gnu.org>
|
|
|
|
|
;;;
|
|
|
|
|
;;; This file is part of Guix.
|
|
|
|
|
;;;
|
|
|
|
|
;;; 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.
|
|
|
|
|
;;;
|
|
|
|
|
;;; 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 Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
(define-module (distro packages guile)
|
|
|
|
|
#:use-module (distro packages base)
|
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix http)
|
|
|
|
|
#:use-module (guix utils)
|
|
|
|
|
#:use-module (guix build-system gnu))
|
|
|
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
|
;;;
|
|
|
|
|
;;; Modules and extensions for GNU Guile.
|
|
|
|
|
;;;
|
|
|
|
|
;;; Code:
|
|
|
|
|
|
|
|
|
|
(define (guile-reader guile)
|
|
|
|
|
"Build Guile-Reader against GUILE, a package of some version of Guile 1.8
|
|
|
|
|
or 2.0."
|
|
|
|
|
(package
|
|
|
|
|
(name (string-append "guile-reader-for-guile-" (package-version guile)))
|
|
|
|
|
(version "0.6")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method http-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"http://download-mirror.savannah.gnu.org/releases/guile-reader/guile-reader-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1svlyk5pm4fsdp2g7n6qffdl6fdggxnlicj0jn9s4lxd63gzxy1n"))))
|
|
|
|
|
(build-system gnu-build-system)
|
2012-09-26 21:06:45 +00:00
|
|
|
|
(native-inputs `(("pkgconfig" ,pkg-config)
|
2012-11-03 20:11:02 +00:00
|
|
|
|
("gperf" ,(nixpkgs-derivation "gperf"))))
|
distro: Add the `guile', `typesetting', and `databases' package modules.
* distro.scm (package-files): Adjust PREFIX-LEN to use the top-level
directory, not %DISTRO-MODULE-DIRECTORY.
* distro/packages/base.scm (guile-reader, guile-reader/guile-1.8,
guile-reader/guile-2.0, lout, recutils): Move to...
* distro/packages/guile.scm, distro/packages/typesetting.scm,
distro/packages/databases.scm: ... here. New files.
* Makefile.am (MODULES): Add them.
(EXTRA_DIST): Add `.dir-locals.el'.
* .dir-locals.el: New file, with settings formerly in `base.scm'.
2012-09-26 20:17:41 +00:00
|
|
|
|
(inputs `(("guile" ,guile)))
|
2012-11-04 12:41:34 +00:00
|
|
|
|
(synopsis "Guile-Reader, a simple framework for building readers for
|
distro: Add the `guile', `typesetting', and `databases' package modules.
* distro.scm (package-files): Adjust PREFIX-LEN to use the top-level
directory, not %DISTRO-MODULE-DIRECTORY.
* distro/packages/base.scm (guile-reader, guile-reader/guile-1.8,
guile-reader/guile-2.0, lout, recutils): Move to...
* distro/packages/guile.scm, distro/packages/typesetting.scm,
distro/packages/databases.scm: ... here. New files.
* Makefile.am (MODULES): Add them.
(EXTRA_DIST): Add `.dir-locals.el'.
* .dir-locals.el: New file, with settings formerly in `base.scm'.
2012-09-26 20:17:41 +00:00
|
|
|
|
GNU Guile")
|
2012-11-04 12:41:34 +00:00
|
|
|
|
(description
|
distro: Add the `guile', `typesetting', and `databases' package modules.
* distro.scm (package-files): Adjust PREFIX-LEN to use the top-level
directory, not %DISTRO-MODULE-DIRECTORY.
* distro/packages/base.scm (guile-reader, guile-reader/guile-1.8,
guile-reader/guile-2.0, lout, recutils): Move to...
* distro/packages/guile.scm, distro/packages/typesetting.scm,
distro/packages/databases.scm: ... here. New files.
* Makefile.am (MODULES): Add them.
(EXTRA_DIST): Add `.dir-locals.el'.
* .dir-locals.el: New file, with settings formerly in `base.scm'.
2012-09-26 20:17:41 +00:00
|
|
|
|
"Guile-Reader is a simple framework for building readers for GNU Guile.
|
|
|
|
|
|
|
|
|
|
The idea is to make it easy to build procedures that extend Guile’s read
|
|
|
|
|
procedure. Readers supporting various syntax variants can easily be written,
|
|
|
|
|
possibly by re-using existing “token readers” of a standard Scheme
|
|
|
|
|
readers. For example, it is used to implement Skribilo’s R5RS-derived
|
|
|
|
|
document syntax.
|
|
|
|
|
|
|
|
|
|
Guile-Reader’s approach is similar to Common Lisp’s “read table”, but
|
|
|
|
|
hopefully more powerful and flexible (for instance, one may instantiate as
|
|
|
|
|
many readers as needed).")
|
|
|
|
|
(home-page "http://www.nongnu.org/guile-reader/")
|
|
|
|
|
(license "GPLv3+")))
|
|
|
|
|
|
|
|
|
|
(define-public guile-reader/guile-1.8
|
|
|
|
|
;; Guile-Reader built against Guile 1.8.
|
|
|
|
|
(guile-reader guile-1.8))
|
|
|
|
|
|
|
|
|
|
(define-public guile-reader/guile-2.0
|
|
|
|
|
;; Guile-Reader built against Guile 2.0.
|
|
|
|
|
(guile-reader guile-2.0))
|
|
|
|
|
|
|
|
|
|
;;; guile.scm ends here
|