2013-01-15 01:08:00 +01:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2018-04-24 09:52:24 +02:00
|
|
|
|
;;; Copyright © 2013, 2014, 2015, 2016, 2018 Ludovic Courtès <ludo@gnu.org>
|
2015-02-16 13:29:36 +01:00
|
|
|
|
;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
|
2016-05-12 14:57:25 +02:00
|
|
|
|
;;; Copyright © 2015, 2016 Federico Beffa <beffa@fbengineering.ch>
|
2016-03-20 17:10:12 +01:00
|
|
|
|
;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
|
2017-06-26 10:55:23 +02:00
|
|
|
|
;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
|
2016-05-19 23:50:09 +02:00
|
|
|
|
;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
|
Correct name and Email for ng0.
* .mailmap: Correct name and Email for ng0.
* Makefile.am, doc/guix.texi, etc/completion/fish/guix.fish
gnu/packages/accessibility.scm, gnu/packages/admin.scm,
gnu/packages/audio.scm, gnu/packages/autotools.scm,
gnu/packages/cdrom.scm, gnu/packages/check.scm,
gnu/packages/cinnamon.scm, gnu/packages/compression.scm,
gnu/packages/crypto.scm, gnu/packages/databases.scm,
gnu/packages/django.scm, gnu/packages/dns.scm,
gnu/packages/emacs.scm, gnu/packages/enlightenment.scm,
gnu/packages/fonts.scm, gnu/packages/fontutils.scm,
gnu/packages/forth.scm, gnu/packages/fvwm.scm,
gnu/packages/games.scm, gnu/packages/gl.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm,
gnu/packages/gnupg.scm, gnu/packages/gnuzilla.scm,
gnu/packages/gtk.scm, gnu/packages/guile-wm.scm,
gnu/packages/guile.scm, gnu/packages/haskell-check.scm,
gnu/packages/haskell-crypto.scm, gnu/packages/haskell.scm,
gnu/packages/image-viewers.scm, gnu/packages/image.scm,
gnu/packages/irc.scm, gnu/packages/language.scm,
gnu/packages/libcanberra.scm, gnu/packages/linux.scm,
gnu/packages/lisp.scm, gnu/packages/lolcode.scm,
gnu/packages/lxde.scm, gnu/packages/lxqt.scm,
gnu/packages/mail.scm, gnu/packages/markup.scm,
gnu/packages/mate.scm, gnu/packages/maths.scm,
gnu/packages/mc.scm, gnu/packages/messaging.scm,
gnu/packages/music.scm, gnu/packages/ncurses.scm,
gnu/packages/networking.scm, gnu/packages/nickle.scm,
gnu/packages/openbox.scm, gnu/packages/pdf.scm,
gnu/packages/perl-check.scm, gnu/packages/perl.scm,
gnu/packages/python-crypto.scm, gnu/packages/python-web.scm,
gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/ruby.scm, gnu/packages/rust.scm,
gnu/packages/scheme.scm, gnu/packages/serialization.scm,
gnu/packages/shells.scm, gnu/packages/ssh.scm,
gnu/packages/suckless.scm, gnu/packages/tbb.scm,
gnu/packages/telephony.scm, gnu/packages/text-editors.scm,
gnu/packages/textutils.scm, gnu/packages/time.scm,
gnu/packages/tls.scm, gnu/packages/tor.scm,
gnu/packages/version-control.scm, gnu/packages/video.scm,
gnu/packages/vim.scm, gnu/packages/web.scm,
gnu/packages/wm.scm, gnu/packages/xdisorg.scm,
gnu/packages/xfce.scm, gnu/packages/xml.scm,
gnu/packages/xorg.scm, gnu/services/certbot.scm,
gnu/services/desktop.scm, gnu/services/version-control.scm,
gnu/services/web.scm, guix/import/hackage.scm,
guix/licenses.scm: Likewise.
Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
2018-03-20 16:39:45 +01:00
|
|
|
|
;;; Copyright © 2016, 2017 Nils Gillmann <ng0@n0.is>
|
2017-02-26 20:18:26 +01:00
|
|
|
|
;;; Copyright © 2017 John Darrington <jmd@gnu.org>
|
2017-05-30 08:56:34 +02:00
|
|
|
|
;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
|
2018-02-22 15:26:14 +01:00
|
|
|
|
;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
2018-06-22 20:29:23 +02:00
|
|
|
|
;;; Copyright © 2018 Adam Massmann <massmannak@gmail.com>
|
2013-01-15 01:08:00 +01:00
|
|
|
|
;;;
|
|
|
|
|
;;; 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/>.
|
|
|
|
|
|
2013-01-18 01:06:24 +01:00
|
|
|
|
(define-module (gnu packages scheme)
|
2013-01-18 01:06:47 +01:00
|
|
|
|
#:use-module (gnu packages)
|
2016-05-23 14:55:44 +02:00
|
|
|
|
#:use-module ((guix licenses)
|
2017-02-26 20:18:26 +01:00
|
|
|
|
#:select (gpl2+ lgpl2.0+ lgpl2.1+ lgpl3+ asl2.0 bsd-3
|
|
|
|
|
cc-by-sa4.0 non-copyleft))
|
2013-01-15 01:08:00 +01:00
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix download)
|
2016-05-19 23:50:09 +02:00
|
|
|
|
#:use-module (guix git-download)
|
2015-02-16 13:29:36 +01:00
|
|
|
|
#:use-module (guix utils)
|
2013-01-15 01:08:00 +01:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2016-05-19 23:50:09 +02:00
|
|
|
|
#:use-module (guix build-system trivial)
|
2017-07-02 20:22:05 +02:00
|
|
|
|
#:use-module (gnu packages bdw-gc)
|
2016-05-12 14:57:25 +02:00
|
|
|
|
#:use-module (gnu packages compression)
|
2017-07-02 20:22:05 +02:00
|
|
|
|
#:use-module (gnu packages libevent)
|
|
|
|
|
#:use-module (gnu packages libunistring)
|
2013-01-18 01:06:24 +01:00
|
|
|
|
#:use-module (gnu packages m4)
|
|
|
|
|
#:use-module (gnu packages multiprecision)
|
2016-05-12 14:57:25 +02:00
|
|
|
|
#:use-module (gnu packages ncurses)
|
2017-07-02 20:22:05 +02:00
|
|
|
|
#:use-module (gnu packages pcre)
|
2015-01-28 21:28:29 +01:00
|
|
|
|
#:use-module (gnu packages databases)
|
2013-01-18 01:06:24 +01:00
|
|
|
|
#:use-module (gnu packages emacs)
|
2016-05-12 14:57:25 +02:00
|
|
|
|
#:use-module (gnu packages ghostscript)
|
|
|
|
|
#:use-module (gnu packages netpbm)
|
2013-01-18 01:06:24 +01:00
|
|
|
|
#:use-module (gnu packages texinfo)
|
2016-05-24 21:18:53 +02:00
|
|
|
|
#:use-module (gnu packages tex)
|
gnu: Move 'which' to (gnu packages base).
* gnu/packages/which.scm: Remove.
* gnu-system.am (GNU_SYSTEM_MODULES): Remove it.
* gnu/packages/base.scm (which): New variable.
* gnu/packages/aspell.scm, gnu/packages/audio.scm,
gnu/packages/autogen.scm, gnu/packages/cdrom.scm,
gnu/packages/compression.scm, gnu/packages/datamash.scm,
gnu/packages/games.scm, gnu/packages/glib.scm,
gnu/packages/gnu-pw-mgr.scm, gnu/packages/gnutls.scm,
gnu/packages/gps.scm, gnu/packages/guile.scm,
gnu/packages/java.scm, gnu/packages/libevent.scm,
gnu/packages/linux.scm, gnu/packages/lisp.scm,
gnu/packages/node.scm, gnu/packages/ntp.scm,
gnu/packages/orpheus.scm, gnu/packages/pciutils.scm,
gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/sawfish.scm,
gnu/packages/scheme.scm, gnu/packages/ssh.scm,
gnu/packages/statistics.scm, gnu/packages/texlive.scm,
gnu/packages/wdiff.scm: Adjust accordingly.
2015-03-04 17:21:21 +01:00
|
|
|
|
#:use-module (gnu packages base)
|
2016-05-19 23:50:09 +02:00
|
|
|
|
#:use-module (gnu packages compression)
|
2013-04-03 14:44:40 +02:00
|
|
|
|
#:use-module (gnu packages pkg-config)
|
|
|
|
|
#:use-module (gnu packages avahi)
|
|
|
|
|
#:use-module (gnu packages libphidget)
|
2016-03-20 23:03:24 +01:00
|
|
|
|
#:use-module (gnu packages gcc)
|
2013-06-16 20:43:29 +02:00
|
|
|
|
#:use-module (gnu packages glib)
|
2013-09-24 18:06:08 +02:00
|
|
|
|
#:use-module (gnu packages gtk)
|
2013-06-16 20:43:29 +02:00
|
|
|
|
#:use-module (gnu packages libffi)
|
2015-01-28 21:28:29 +01:00
|
|
|
|
#:use-module (gnu packages fontutils)
|
gnu: Consolidate libjpeg, libpng, and libtiff into one module.
* gnu/packages/image.scm: New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add image.scm and remove libjpeg.scm,
libpng.scm, and libtiff.scm.
* gnu/packages/libjpeg.scm, gnu/packages/libpng.scm, gnu/packages/libtiff.scm:
Delete files.
* gnu/packages/emacs.scm gnu/packages/games.scm, gnu/packages/gd.scm,
gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/gimp.scm, gnu/packages/gnome.scm, gnu/packages/gnunet.scm,
gnu/packages/gnustep.scm, gnu/packages/gnuzilla.scm,
gnu/packages/graphviz.scm, gnu/packages/gtk.scm,
gnu/packages/imagemagick.scm, gnu/packages/inkscape.scm,
gnu/packages/netpbm.scm, gnu/packages/pdf.scm, gnu/packages/plotutils.scm,
gnu/packages/qemu.scm, gnu/packages/qt.scm, gnu/packages/scheme.scm,
gnu/packages/sdl.scm, gnu/packages/slim.scm, gnu/packages/tcl.scm,
gnu/packages/texlive.scm, gnu/packages/video.scm, gnu/packages/xiph.scm,
gnu/packages/xorg.scm: Use (gnu packages image) module.
2014-06-25 14:39:02 +02:00
|
|
|
|
#:use-module (gnu packages image)
|
2015-05-20 00:27:02 +02:00
|
|
|
|
#:use-module (gnu packages xorg)
|
2016-07-19 15:26:42 +02:00
|
|
|
|
#:use-module (gnu packages tls)
|
|
|
|
|
#:use-module (gnu packages gl)
|
2018-08-02 16:23:11 +02:00
|
|
|
|
#:use-module (gnu packages libedit)
|
2018-11-24 15:11:37 +01:00
|
|
|
|
#:use-module (srfi srfi-1)
|
2013-01-15 01:08:00 +01:00
|
|
|
|
#:use-module (ice-9 match))
|
|
|
|
|
|
2014-09-27 23:59:18 +02:00
|
|
|
|
(define (mit-scheme-source-directory system version)
|
2014-09-27 18:59:40 +02:00
|
|
|
|
(string-append "mit-scheme-"
|
|
|
|
|
(if (or (string-prefix? "x86_64" system)
|
2014-09-27 23:59:18 +02:00
|
|
|
|
(string-prefix? "i686" system))
|
2014-09-27 18:59:40 +02:00
|
|
|
|
""
|
|
|
|
|
"c-")
|
|
|
|
|
version))
|
|
|
|
|
|
2013-01-15 01:08:00 +01:00
|
|
|
|
(define-public mit-scheme
|
|
|
|
|
(package
|
|
|
|
|
(name "mit-scheme")
|
2014-09-27 16:51:44 +02:00
|
|
|
|
(version "9.2")
|
2013-01-15 01:08:00 +01:00
|
|
|
|
(source #f) ; see below
|
2016-01-09 11:04:40 +01:00
|
|
|
|
(outputs '("out" "doc"))
|
2013-01-15 01:08:00 +01:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; no "check" target
|
2016-01-09 11:04:40 +01:00
|
|
|
|
#:modules ((guix build gnu-build-system)
|
|
|
|
|
(guix build utils)
|
|
|
|
|
(srfi srfi-1))
|
2013-01-15 01:08:00 +01:00
|
|
|
|
#:phases
|
2015-12-27 19:06:37 +01:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'unpack
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
2018-02-22 15:26:14 +01:00
|
|
|
|
(invoke "tar" "xzvf"
|
|
|
|
|
(assoc-ref inputs "source"))
|
|
|
|
|
(chdir ,(mit-scheme-source-directory (%current-system)
|
|
|
|
|
version))
|
|
|
|
|
;; Delete these dangling symlinks since they break
|
|
|
|
|
;; `patch-shebangs'.
|
|
|
|
|
(for-each delete-file
|
|
|
|
|
(append '("src/lib/shim-config.scm")
|
|
|
|
|
(find-files "src/lib/lib" "\\.so$")
|
|
|
|
|
(find-files "src/lib" "^liarc-")
|
|
|
|
|
(find-files "src/compiler" "^make\\.")))
|
|
|
|
|
(chdir "src")
|
|
|
|
|
#t))
|
2018-08-13 18:04:42 +02:00
|
|
|
|
;; FIXME: the texlive-union insists on regenerating fonts. It stores
|
|
|
|
|
;; them in HOME, so it needs to be writeable.
|
|
|
|
|
(add-before 'build 'set-HOME
|
|
|
|
|
(lambda _ (setenv "HOME" "/tmp") #t))
|
2015-12-27 19:06:37 +01:00
|
|
|
|
(replace 'build
|
|
|
|
|
(lambda* (#:key system outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(if (or (string-prefix? "x86_64" system)
|
|
|
|
|
(string-prefix? "i686" system))
|
2018-02-22 15:26:14 +01:00
|
|
|
|
(invoke "make" "compile-microcode")
|
|
|
|
|
(invoke "./etc/make-liarc.sh"
|
|
|
|
|
(string-append "--prefix=" out)))
|
|
|
|
|
#t)))
|
2016-01-09 11:04:40 +01:00
|
|
|
|
(add-after 'configure 'configure-doc
|
|
|
|
|
(lambda* (#:key outputs inputs #:allow-other-keys)
|
|
|
|
|
(with-directory-excursion "../doc"
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(bash (assoc-ref inputs "bash"))
|
|
|
|
|
(bin/sh (string-append bash "/bin/sh")))
|
2018-02-22 15:26:14 +01:00
|
|
|
|
(invoke bin/sh "./configure"
|
|
|
|
|
(string-append "--prefix=" out)
|
|
|
|
|
(string-append "SHELL=" bin/sh))
|
2016-01-09 11:04:40 +01:00
|
|
|
|
(substitute* '("Makefile" "make-common")
|
|
|
|
|
(("/lib/mit-scheme/doc")
|
|
|
|
|
(string-append "/share/doc/" ,name "-" ,version)))
|
|
|
|
|
#t))))
|
|
|
|
|
(add-after 'build 'build-doc
|
|
|
|
|
(lambda* _
|
|
|
|
|
(with-directory-excursion "../doc"
|
2018-02-22 15:26:14 +01:00
|
|
|
|
(invoke "make"))
|
|
|
|
|
#t))
|
2016-01-09 11:04:40 +01:00
|
|
|
|
(add-after 'install 'install-doc
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(doc (assoc-ref outputs "doc"))
|
|
|
|
|
(old-doc-dir (string-append out "/share/doc"))
|
|
|
|
|
(new-doc/mit-scheme-dir
|
|
|
|
|
(string-append doc "/share/doc/" ,name "-" ,version)))
|
|
|
|
|
(with-directory-excursion "../doc"
|
|
|
|
|
(for-each (lambda (target)
|
2018-02-22 15:26:14 +01:00
|
|
|
|
(invoke "make" target))
|
2016-01-09 11:04:40 +01:00
|
|
|
|
'("install-config" "install-info-gz" "install-man"
|
|
|
|
|
"install-html" "install-pdf")))
|
|
|
|
|
(mkdir-p new-doc/mit-scheme-dir)
|
|
|
|
|
(copy-recursively
|
|
|
|
|
(string-append old-doc-dir "/" ,name "-" ,version)
|
|
|
|
|
new-doc/mit-scheme-dir)
|
|
|
|
|
(delete-file-recursively old-doc-dir)
|
|
|
|
|
#t))))))
|
|
|
|
|
(native-inputs
|
2018-08-13 18:04:42 +02:00
|
|
|
|
`(("texlive" ,(texlive-union (list texlive-tex-texinfo)))
|
2016-01-09 11:04:40 +01:00
|
|
|
|
("texinfo" ,texinfo)
|
|
|
|
|
("m4" ,m4)))
|
2013-01-15 01:08:00 +01:00
|
|
|
|
(inputs
|
2016-01-09 11:04:40 +01:00
|
|
|
|
`(("libx11" ,libx11)
|
2013-01-15 01:08:00 +01:00
|
|
|
|
|
|
|
|
|
("source"
|
2013-01-24 23:33:30 +01:00
|
|
|
|
|
|
|
|
|
;; MIT/GNU Scheme is not bootstrappable, so it's recommended to
|
|
|
|
|
;; compile from the architecture-specific tarballs, which contain
|
|
|
|
|
;; pre-built binaries. It leads to more efficient code than when
|
|
|
|
|
;; building the tarball that contains generated C code instead of
|
|
|
|
|
;; those binaries.
|
|
|
|
|
,(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://gnu/mit-scheme/stable.pkg/"
|
|
|
|
|
version "/mit-scheme-"
|
|
|
|
|
(match (%current-system)
|
2014-09-27 18:59:40 +02:00
|
|
|
|
("x86_64-linux"
|
|
|
|
|
(string-append version "-x86-64"))
|
|
|
|
|
("i686-linux"
|
|
|
|
|
(string-append version "-i386"))
|
|
|
|
|
(_
|
|
|
|
|
(string-append "c-" version)))
|
2013-01-24 23:33:30 +01:00
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(match (%current-system)
|
|
|
|
|
("x86_64-linux"
|
|
|
|
|
(base32
|
2014-09-27 16:51:44 +02:00
|
|
|
|
"1skzxxhr0iq96bf0j5m7mvf3i4sppfyfa6gpqn34mwgkw1fx8274"))
|
2013-01-24 23:33:30 +01:00
|
|
|
|
("i686-linux"
|
|
|
|
|
(base32
|
2014-09-27 16:51:44 +02:00
|
|
|
|
"1fmlpnhf5a75db93phajh4ysbdgrgl72v45lk3kznriprl0a7jc6"))
|
2013-01-24 23:33:30 +01:00
|
|
|
|
(_
|
|
|
|
|
(base32
|
2014-09-27 16:51:44 +02:00
|
|
|
|
"0w5ib5vsidihb4hb6fma3sp596ykr8izagm57axvgd6lqzwicsjg"))))))))
|
2014-10-06 19:34:04 +02:00
|
|
|
|
|
|
|
|
|
;; Fails to build on MIPS, see <http://bugs.gnu.org/18221>.
|
2017-06-26 10:55:23 +02:00
|
|
|
|
(supported-systems '("x86_64-linux" "i686-linux" "armhf-linux"))
|
2014-10-06 19:34:04 +02:00
|
|
|
|
|
2017-03-30 00:48:16 +02:00
|
|
|
|
(home-page "https://www.gnu.org/software/mit-scheme/")
|
2014-11-09 17:56:02 +01:00
|
|
|
|
(synopsis "A Scheme implementation with integrated editor and debugger")
|
2013-01-15 01:08:00 +01:00
|
|
|
|
(description
|
2013-12-01 22:33:23 +01:00
|
|
|
|
"GNU/MIT Scheme is an implementation of the Scheme programming
|
Synchronize package descriptions with the Womb.
* gnu/packages/algebra.scm,
gnu/packages/aspell.scm,
gnu/packages/autotools.scm,
gnu/packages/base.scm,
gnu/packages/bash.scm,
gnu/packages/bison.scm,
gnu/packages/cdrom.scm,
gnu/packages/cflow.scm,
gnu/packages/compression.scm,
gnu/packages/cpio.scm,
gnu/packages/cppi.scm,
gnu/packages/ddrescue.scm,
gnu/packages/dejagnu.scm,
gnu/packages/ed.scm,
gnu/packages/emacs.scm,
gnu/packages/fdisk.scm,
gnu/packages/freeipmi.scm,
gnu/packages/gawk.scm,
gnu/packages/gcal.scm,
gnu/packages/gcc.scm,
gnu/packages/gdb.scm,
gnu/packages/gdbm.scm,
gnu/packages/gettext.scm,
gnu/packages/ghostscript.scm,
gnu/packages/global.scm,
gnu/packages/gnunet.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnutls.scm,
gnu/packages/gperf.scm,
gnu/packages/gprolog.scm,
gnu/packages/groff.scm,
gnu/packages/grub.scm,
gnu/packages/gsasl.scm,
gnu/packages/guile.scm,
gnu/packages/gv.scm,
gnu/packages/help2man.scm,
gnu/packages/idutils.scm,
gnu/packages/indent.scm,
gnu/packages/less.scm,
gnu/packages/libidn.scm,
gnu/packages/libsigsegv.scm,
gnu/packages/libunistring.scm,
gnu/packages/lightning.scm,
gnu/packages/linux.scm,
gnu/packages/lsh.scm,
gnu/packages/m4.scm,
gnu/packages/mail.scm,
gnu/packages/maths.scm,
gnu/packages/multiprecision.scm,
gnu/packages/nano.scm,
gnu/packages/ncurses.scm,
gnu/packages/nettle.scm,
gnu/packages/ocrad.scm,
gnu/packages/oggvorbis.scm,
gnu/packages/parted.scm,
gnu/packages/plotutils.scm,
gnu/packages/pth.scm,
gnu/packages/readline.scm,
gnu/packages/recutils.scm,
gnu/packages/rush.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/shishi.scm,
gnu/packages/smalltalk.scm,
gnu/packages/system.scm,
gnu/packages/texinfo.scm,
gnu/packages/time.scm,
gnu/packages/unrtf.scm,
gnu/packages/version-control.scm,
gnu/packages/wdiff.scm,
gnu/packages/wget.scm,
gnu/packages/which.scm,
gnu/packages/xnee.scm,
gnu/packages/zile.scm: Change value of the 'description' field to that
of the Womb.
2013-10-09 16:14:23 +02:00
|
|
|
|
language. It provides an interpreter, a compiler and a debugger. It also
|
|
|
|
|
features an integrated Emacs-like editor and a large runtime library.")
|
2016-04-14 22:18:56 +02:00
|
|
|
|
(license gpl2+)
|
|
|
|
|
(properties '((ftp-directory . "/gnu/mit-scheme/stable.pkg")))))
|
2013-01-15 01:08:00 +01:00
|
|
|
|
|
|
|
|
|
(define-public bigloo
|
2018-11-28 22:55:12 +01:00
|
|
|
|
;; Upstream modifies source tarballs in place, making significant changes
|
|
|
|
|
;; long after the initial publication: <https://bugs.gnu.org/33525>. For
|
|
|
|
|
;; transparency, we give this "second 4.3b" release a different version
|
|
|
|
|
;; number.
|
|
|
|
|
(let ((upstream-version "4.3b"))
|
|
|
|
|
(package
|
|
|
|
|
(name "bigloo")
|
|
|
|
|
(version "4.3b2")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "ftp://ftp-sop.inria.fr/indes/fp/Bigloo/bigloo"
|
|
|
|
|
upstream-version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"02s0wrz5b1p0yqk9x6kax1vwzil7g9cyxfvl3vmy7fzznsza9gs4"))
|
|
|
|
|
;; Remove bundled libraries.
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
'(begin
|
|
|
|
|
(for-each delete-file-recursively
|
|
|
|
|
'("gc" "gmp" "libuv"))
|
|
|
|
|
#t))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:test-target "test"
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'configure
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
2013-01-15 01:08:00 +01:00
|
|
|
|
|
2018-11-28 22:55:12 +01:00
|
|
|
|
(substitute* "configure"
|
|
|
|
|
(("^shell=.*$")
|
|
|
|
|
(string-append "shell=" (which "bash") "\n"))
|
|
|
|
|
(("`date`") "0"))
|
|
|
|
|
(substitute* "autoconf/runtest.in"
|
|
|
|
|
((", @DATE@") ""))
|
|
|
|
|
(substitute* "autoconf/osversion"
|
|
|
|
|
(("^version.*$") "version=\"\"\n"))
|
|
|
|
|
(substitute* "comptime/Makefile"
|
|
|
|
|
(("\\$\\(LDCOMPLIBS\\)")
|
|
|
|
|
"$(LDCOMPLIBS) $(LDFLAGS)"))
|
2013-01-15 01:08:00 +01:00
|
|
|
|
|
2018-11-28 22:55:12 +01:00
|
|
|
|
;; The `configure' script doesn't understand options
|
|
|
|
|
;; of those of Autoconf.
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(invoke "./configure"
|
|
|
|
|
(string-append "--prefix=" out)
|
|
|
|
|
; use system libraries
|
|
|
|
|
"--customgc=no"
|
|
|
|
|
"--customunistring=no"
|
|
|
|
|
"--customlibuv=no"
|
|
|
|
|
(string-append"--mv=" (which "mv"))
|
|
|
|
|
(string-append "--rm=" (which "rm"))
|
|
|
|
|
"--cflags=-fPIC"
|
|
|
|
|
(string-append "--ldflags=-Wl,-rpath="
|
|
|
|
|
(assoc-ref outputs "out")
|
|
|
|
|
"/lib/bigloo/" ,upstream-version)
|
|
|
|
|
(string-append "--lispdir=" out
|
|
|
|
|
"/share/emacs/site-lisp")
|
|
|
|
|
"--sharedbde=yes"
|
|
|
|
|
"--sharedcompiler=yes"
|
|
|
|
|
"--disable-patch"))))
|
|
|
|
|
(add-after 'install 'install-emacs-modes
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(dir (string-append out "/share/emacs/site-lisp")))
|
|
|
|
|
(invoke "make" "-C" "bmacs" "all" "install"
|
|
|
|
|
(string-append "EMACSBRAND=emacs25")
|
|
|
|
|
(string-append "EMACSDIR=" dir))))))))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("emacs" ,emacs) ;UDE needs the X version of Emacs
|
|
|
|
|
("libgc" ,libgc)
|
|
|
|
|
("libunistring" ,libunistring)
|
|
|
|
|
("libuv" ,libuv)
|
|
|
|
|
("openssl" ,openssl)
|
|
|
|
|
("sqlite" ,sqlite)
|
2013-04-03 14:44:40 +02:00
|
|
|
|
|
2018-11-28 22:55:12 +01:00
|
|
|
|
;; Optional APIs for which Bigloo has bindings.
|
|
|
|
|
("avahi" ,avahi)
|
|
|
|
|
("libphidget" ,libphidget)
|
|
|
|
|
("pcre" ,pcre)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("gmp" ,gmp))) ; bigloo.h refers to gmp.h
|
|
|
|
|
(home-page "http://www-sop.inria.fr/indes/fp/Bigloo/")
|
|
|
|
|
(synopsis "Efficient Scheme compiler")
|
|
|
|
|
(description
|
|
|
|
|
"Bigloo is a Scheme implementation devoted to one goal: enabling Scheme
|
|
|
|
|
based programming style where C(++) is usually required. Bigloo attempts to
|
|
|
|
|
make Scheme practical by offering features usually presented by traditional
|
|
|
|
|
programming languages but not offered by Scheme and functional programming.
|
|
|
|
|
Bigloo compiles Scheme modules. It delivers small and fast stand alone binary
|
|
|
|
|
executables. Bigloo enables full connections between Scheme and C programs
|
|
|
|
|
and between Scheme and Java programs.")
|
|
|
|
|
(license gpl2+))))
|
2013-02-08 14:39:58 +01:00
|
|
|
|
|
|
|
|
|
(define-public hop
|
|
|
|
|
(package
|
|
|
|
|
(name "hop")
|
2017-07-03 20:34:34 +02:00
|
|
|
|
(version "3.1.0-pre2")
|
2013-02-08 14:39:58 +01:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "ftp://ftp-sop.inria.fr/indes/fp/Hop/hop-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2018-04-24 09:52:24 +02:00
|
|
|
|
"0bvq79vxcpgwydwi923cxb5w9isx2x8r3d0xndbdhacmmsw1m811"))))
|
2013-02-08 14:39:58 +01:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2017-07-03 20:34:34 +02:00
|
|
|
|
`(#:test-target "test"
|
|
|
|
|
#:make-flags '("BIGLOO=bigloo")
|
|
|
|
|
#:parallel-build? #f
|
|
|
|
|
#:phases
|
2016-10-23 09:21:58 +02:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'configure
|
2017-07-03 20:34:34 +02:00
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
2016-10-23 09:21:58 +02:00
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
2018-06-26 16:33:29 +02:00
|
|
|
|
(invoke "./configure"
|
|
|
|
|
(string-append "--prefix=" out)
|
|
|
|
|
(string-append "--blflags="
|
|
|
|
|
;; user flags completely override useful
|
|
|
|
|
;; default flags, so repeat them here.
|
|
|
|
|
"-copt \\$(CPICFLAGS) "
|
|
|
|
|
"-L \\$(BUILDLIBDIR) "
|
|
|
|
|
"-ldopt -Wl,-rpath," out "/lib"))))))))
|
2016-01-26 15:10:23 +01:00
|
|
|
|
(inputs `(("avahi" ,avahi)
|
|
|
|
|
("bigloo" ,bigloo)
|
2017-07-03 20:34:34 +02:00
|
|
|
|
("libgc" ,libgc)
|
|
|
|
|
("libunistring" ,libunistring)
|
|
|
|
|
("libuv" ,libuv)
|
|
|
|
|
("pcre" ,pcre)
|
|
|
|
|
("sqlite" ,sqlite)
|
2015-05-05 18:01:06 +02:00
|
|
|
|
("which" ,which)))
|
2013-02-08 14:39:58 +01:00
|
|
|
|
(home-page "http://hop.inria.fr/")
|
2014-09-13 15:50:30 +02:00
|
|
|
|
(synopsis "Multi-tier programming language for the Web 2.0")
|
2013-02-08 14:39:58 +01:00
|
|
|
|
(description
|
|
|
|
|
"HOP is a multi-tier programming language for the Web 2.0 and the
|
|
|
|
|
so-called diffuse Web. It is designed for programming interactive web
|
|
|
|
|
applications in many fields such as multimedia (web galleries, music players,
|
|
|
|
|
...), ubiquitous and house automation (SmartPhones, personal appliance),
|
|
|
|
|
mashups, office (web agendas, mail clients, ...), etc.")
|
|
|
|
|
(license gpl2+)))
|
2013-05-11 11:38:38 +02:00
|
|
|
|
|
|
|
|
|
(define-public chicken
|
|
|
|
|
(package
|
|
|
|
|
(name "chicken")
|
2017-12-23 15:03:50 +01:00
|
|
|
|
(version "4.13.0")
|
2013-05-11 11:38:38 +02:00
|
|
|
|
(source (origin
|
2017-01-03 13:52:24 +01:00
|
|
|
|
(method url-fetch)
|
2017-03-21 19:54:04 +01:00
|
|
|
|
(uri (string-append "https://code.call-cc.org/releases/"
|
2017-01-03 13:52:24 +01:00
|
|
|
|
version "/chicken-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2017-12-23 15:03:50 +01:00
|
|
|
|
"0hvckhi5gfny3mlva6d7y9pmx7cbwvq0r7mk11k3sdiik9hlkmdd"))))
|
2013-05-11 11:38:38 +02:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:modules ((guix build gnu-build-system)
|
|
|
|
|
(guix build utils)
|
|
|
|
|
(srfi srfi-1))
|
2018-06-22 20:29:23 +02:00
|
|
|
|
|
2013-05-11 11:38:38 +02:00
|
|
|
|
;; No `configure' script; run "make check" after "make install" as
|
|
|
|
|
;; prescribed by README.
|
2016-03-20 17:10:41 +01:00
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)
|
|
|
|
|
(delete 'check)
|
|
|
|
|
(add-after 'install 'check
|
2017-01-03 13:52:24 +01:00
|
|
|
|
(assoc-ref %standard-phases 'check)))
|
2013-05-11 11:38:38 +02:00
|
|
|
|
|
|
|
|
|
#:make-flags (let ((out (assoc-ref %outputs "out")))
|
|
|
|
|
(list "PLATFORM=linux"
|
|
|
|
|
(string-append "PREFIX=" out)
|
|
|
|
|
(string-append "VARDIR=" out "/var/lib")))
|
|
|
|
|
|
|
|
|
|
;; Parallel builds are not supported, as noted in README.
|
|
|
|
|
#:parallel-build? #f))
|
|
|
|
|
(home-page "http://www.call-cc.org/")
|
|
|
|
|
(synopsis "R5RS Scheme implementation that compiles native code via C")
|
|
|
|
|
(description
|
|
|
|
|
"CHICKEN is a compiler for the Scheme programming language. CHICKEN
|
|
|
|
|
produces portable and efficient C, supports almost all of the R5RS Scheme
|
2013-05-11 20:00:48 +02:00
|
|
|
|
language standard, and includes many enhancements and extensions.")
|
2013-05-11 11:38:38 +02:00
|
|
|
|
(license bsd-3)))
|
2013-05-11 22:13:59 +02:00
|
|
|
|
|
|
|
|
|
(define-public scheme48
|
|
|
|
|
(package
|
|
|
|
|
(name "scheme48")
|
2016-04-04 21:01:40 +02:00
|
|
|
|
(version "1.9.2")
|
2013-05-11 22:13:59 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "http://s48.org/" version
|
|
|
|
|
"/scheme48-" version ".tgz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-04-04 21:01:40 +02:00
|
|
|
|
"1x4xfm3lyz2piqcw1h01vbs1iq89zq7wrsfjgh3fxnlm1slj2jcw"))
|
2016-04-08 14:18:13 +02:00
|
|
|
|
(patches (search-patches "scheme48-tests.patch"))))
|
2013-05-11 22:13:59 +02:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(home-page "http://s48.org/")
|
|
|
|
|
(synopsis "Scheme implementation using a bytecode interpreter")
|
|
|
|
|
(description
|
|
|
|
|
"Scheme 48 is an implementation of Scheme based on a byte-code
|
|
|
|
|
interpreter and is designed to be used as a testbed for experiments in
|
|
|
|
|
implementation techniques and as an expository tool.")
|
|
|
|
|
|
|
|
|
|
;; Most files are BSD-3; see COPYING for the few exceptions.
|
|
|
|
|
(license bsd-3)))
|
2013-06-16 20:43:29 +02:00
|
|
|
|
|
|
|
|
|
(define-public racket
|
|
|
|
|
(package
|
|
|
|
|
(name "racket")
|
2018-08-02 16:23:11 +02:00
|
|
|
|
(version "7.0")
|
2013-06-16 20:43:29 +02:00
|
|
|
|
(source (origin
|
2018-08-02 16:23:11 +02:00
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (list (string-append "http://mirror.racket-lang.org/installers/"
|
|
|
|
|
version "/racket-" version "-src.tgz")
|
|
|
|
|
(string-append
|
|
|
|
|
"http://mirror.informatik.uni-tuebingen.de/mirror/racket/"
|
|
|
|
|
version "/racket-" version "-src.tgz")))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1glv5amsp9xp480d4yr63hhm9kkyav06yl3a6p489nkr4cln0j9a"))
|
|
|
|
|
(patches (search-patches
|
|
|
|
|
"racket-store-checksum-override.patch"))))
|
2013-06-16 20:43:29 +02:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
gnu: Use 'modify-phases' syntax.
* gnu/packages/admin.scm (mingetty, clusterssh, wpa-supplicant-minimal,
wpa-supplicant, wakelan, acpica, tree, direvent, dstat)[arguments]: Use
'modify-phases' syntax.
* gnu/packages/algebra.scm (arb)[arguments]: Likewise.
* gnu/packages/apr.scm (apr-util)[arguments]: Likewise.
* gnu/packages/audio.scm (clalsadrv, fluidsynth, faad2, lv2-mda-piano,
lv2-mda-epiano, timidity++, vamp, soundtouch, portaudio, rsound,
zita-convolver, zita-alsa-pcmi)[arguments]: Likewise.
* gnu/packages/backup.scm (rdup, btar)[arguments]: Likewise.
* gnu/packages/bioinformatics.scm (bedops, bwa, crossmap, express,
flexbar, grit, hisat, ngs-sdk, subread)[arguments]: Likewise.
* gnu/packages/bittorrent.scm (transmission)[arguments]: Likewise.
* gnu/packages/cdrom.scm (cd-discid)[arguments]: Likewise.
* gnu/packages/compression.scm (sharutils)[arguments]: Likewise.
* gnu/packages/conky.scm (conky)[arguments]: Likewise.
* gnu/packages/databases.scm (bdb, bdb-5.3)[arguments]: Likewise.
* gnu/packages/debug.scm (delta, c-reduce)[arguments]: Likewise.
* gnu/packages/display-managers.scm (slim)[arguments]: Likewise.
* gnu/packages/dns.scm (dnsmasq)[arguments]: Likewise.
* gnu/packages/emacs.scm (geiser, emacs-wget, bbdb)[arguments]: Likewise.
* gnu/packages/engineering.scm (pcb)[arguments]: Likewise.
* gnu/packages/firmware.scm (ath9k-htc-firmware)[arguments]: Likewise.
* gnu/packages/flashing-tools.scm (flashrom)[arguments]: Likewise.
* gnu/packages/fltk.scm (fltk)[arguments]: Likewise.
* gnu/packages/freedesktop.scm (python-pyxdg)[arguments]: Likewise.
* gnu/packages/gd.scm (perl-gd)[arguments]: Likewise.
* gnu/packages/gkrellm.scm (gkrellm)[arguments]: Likewise.
* gnu/packages/glib.scm (glibmm)[arguments]: Likewise.
* gnu/packages/gl.scm (glew)[arguments]: Likewise.
* gnu/packages/gnome.scm (icon-naming-utils, orbit2, libbonobo, gnome-vfs,
libgnome, libbonoboui, goffice-0.8, dconf)[arguments]: Likewise.
* gnu/packages/gprolog.scm (gprolog)[arguments]: Likewise.
* gnu/packages/gps.scm (gpscorrelate)[arguments]: Likewise.
* gnu/packages/graphics.scm (agg)[arguments]: Likewise.
* gnu/packages/gtk.scm (ganv, girara, gtksourceview-2, guile-present,
python2-pycairo)[arguments]: Likewise.
* gnu/packages/guile.scm (guile-1.8)[arguments]: Likewise.
* gnu/packages/guile-wm.scm (guile-wm)[arguments]: Likewise.
* gnu/packages/hugs.scm (hugs)[arguments]: Likewise.
* gnu/packages/hurd.scm (gnumach-headers, hurd-headers, hurd-minimal)
[arguments]: Likewise.
* gnu/packages/image-viewers.scm (feh, sxiv)[arguments]: Likewise.
* gnu/packages/libcanberra.scm (libcanberra)[arguments]: Likewise.
* gnu/packages/linux.scm (bridge-utils, iw, fuse, unionfs-fuse/static,
lm-sensors, i2c-tools, xsensors, perf, mdadm, libaio, module-init-tools)
[arguments]: Likewise.
* gnu/packages/lisp.scm (ccl)[arguments]: Likewise.
* gnu/packages/lout.scm (lout)[arguments]: Likewise.
* gnu/packages/lua.scm (luajit)[arguments]: Likewise.
* gnu/packages/machine-learning.scm (shogun)[arguments]: Likewise.
* gnu/packages/mail.scm (exim)[arguments]: Likewise.
* gnu/packages/man.scm (man-pages, txt2man)[arguments]: Likewise.
* gnu/packages/maths.scm (lapack, superlu-dist, openlibm, openspecfun)
[arguments]: Likewise.
* gnu/packages/messaging.scm (bitlbee)[arguments]: Likewise.
* gnu/packages/mp3.scm (libmad, id3lib, mp3info)[arguments]: Likewise.
* gnu/packages/music.scm (solfege)[arguments]: Likewise.
* gnu/packages/noweb.scm (noweb)[arguments]: Likewise.
* gnu/packages/patchutils.scm (patchutils, quilt, colordiff)[arguments]:
Likewise.
* gnu/packages/pdf.scm (xpdf, zathura-cb, zathura-ps, zathura-djvu,
zathura-pdf-poppler, zathura, podofo, fbida)[arguments]: Likewise.
* gnu/packages/perl.scm (perl-file-list, perl-test-harness)[arguments]:
Likewise.
* gnu/packages/photo.scm (gphoto2)[arguments]: Likewise.
* gnu/packages/popt.scm (popt)[arguments]: Likewise.
* gnu/packages/pretty-print.scm (source-highlight, astyle)[arguments]:
Likewise.
* gnu/packages/pumpio.scm (pumpa)[arguments]: Likewise.
* gnu/packages/python.scm (python-passlib, python-pycrypto, python2-empy,
python-sqlalchemy, python-docopt)[arguments]: Likewise.
* gnu/packages/rdf.scm (lrdf)[arguments]: Likewise.
* gnu/packages/regex.scm (tre)[arguments]: Likewise.
* gnu/packages/rrdtool.scm (rrdtool)[arguments]: Likewise.
* gnu/packages/ruby.scm (ruby-2.1, ruby-1.8)[arguments]: Likewise.
* gnu/packages/sawfish.scm (sawfish)[arguments]: Likewise.
* gnu/packages/scheme.scm (racket)[arguments]: Likewise.
* gnu/packages/sdl.scm (guile-sdl)[arguments]: Likewise.
* gnu/packages/serveez.scm (serveez)[arguments]: Likewise.
* gnu/packages/skribilo.scm (skribilo)[arguments]: Likewise.
* gnu/packages/smalltalk.scm (smalltalk)[arguments]: Likewise.
* gnu/packages/suckless.scm (dmenu, slock)[arguments]: Likewise.
* gnu/packages/tcl.scm (expect)[arguments]: Likewise.
* gnu/packages/telephony.scm (commoncpp)[arguments]: Likewise.
* gnu/packages/textutils.scm (recode, libgtextutils)[arguments]:
Likewise.
* gnu/packages/time.scm (time)[arguments]: Likewise.
* gnu/packages/tor.scm (privoxy)[arguments]: Likewise.
* gnu/packages/uucp.scm (uucp)[arguments]: Likewise.
* gnu/packages/video.scm (libdvdnav-4)[arguments]: Likewise.
* gnu/packages/web-browsers.scm (lynx)[arguments]: Likewise.
* gnu/packages/web.scm (tinyproxy)[arguments]: Likewise.
* gnu/packages/wicd.scm (wicd)[arguments]: Likewise.
* gnu/packages/wm.scm (bspwm)[arguments]: Likewise.
* gnu/packages/xdisorg.scm (sxhkd, xcape)[arguments]: Likewise.
* gnu/packages/xfce.scm (xfconf)[arguments]: Likewise.
* gnu/packages/xfig.scm (transfig)[arguments]: Likewise.
* gnu/packages/xorg.scm (imake)[arguments]: Likewise.
2017-07-29 17:28:42 +02:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'configure 'pre-configure
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
;; Patch dynamically loaded libraries with their absolute paths.
|
|
|
|
|
(let* ((library-path (search-path-as-string->list
|
|
|
|
|
(getenv "LIBRARY_PATH")))
|
|
|
|
|
(find-so (lambda (soname)
|
|
|
|
|
(search-path
|
|
|
|
|
library-path
|
|
|
|
|
(format #f "~a.so" soname))))
|
|
|
|
|
(patch-ffi-libs (lambda (file libs)
|
|
|
|
|
(for-each
|
|
|
|
|
(lambda (lib)
|
|
|
|
|
(substitute* file
|
|
|
|
|
(((format #f "\"~a\"" lib))
|
|
|
|
|
(format #f "\"~a\"" (find-so lib)))))
|
|
|
|
|
libs))))
|
|
|
|
|
(substitute* "collects/db/private/sqlite3/ffi.rkt"
|
|
|
|
|
(("ffi-lib sqlite-so")
|
|
|
|
|
(format #f "ffi-lib \"~a\"" (find-so "libsqlite3"))))
|
|
|
|
|
(substitute* "collects/openssl/libssl.rkt"
|
|
|
|
|
(("ffi-lib libssl-so")
|
|
|
|
|
(format #f "ffi-lib \"~a\"" (find-so "libssl"))))
|
|
|
|
|
(substitute* "collects/openssl/libcrypto.rkt"
|
|
|
|
|
(("ffi-lib libcrypto-so")
|
|
|
|
|
(format #f "ffi-lib \"~a\"" (find-so "libcrypto"))))
|
|
|
|
|
(substitute* "share/pkgs/math-lib/math/private/bigfloat/gmp.rkt"
|
|
|
|
|
(("ffi-lib libgmp-so")
|
|
|
|
|
(format #f "ffi-lib \"~a\"" (find-so "libgmp"))))
|
|
|
|
|
(substitute* "share/pkgs/math-lib/math/private/bigfloat/mpfr.rkt"
|
|
|
|
|
(("ffi-lib libmpfr-so")
|
|
|
|
|
(format #f "ffi-lib \"~a\"" (find-so "libmpfr"))))
|
2018-09-13 13:28:36 +02:00
|
|
|
|
(substitute* "share/pkgs/readline-lib/readline/rktrl.rkt"
|
|
|
|
|
(("\\(getenv \"PLT_READLINE_LIB\"\\)")
|
|
|
|
|
(format #f "\"~a\"" (find-so "libedit"))))
|
gnu: Use 'modify-phases' syntax.
* gnu/packages/admin.scm (mingetty, clusterssh, wpa-supplicant-minimal,
wpa-supplicant, wakelan, acpica, tree, direvent, dstat)[arguments]: Use
'modify-phases' syntax.
* gnu/packages/algebra.scm (arb)[arguments]: Likewise.
* gnu/packages/apr.scm (apr-util)[arguments]: Likewise.
* gnu/packages/audio.scm (clalsadrv, fluidsynth, faad2, lv2-mda-piano,
lv2-mda-epiano, timidity++, vamp, soundtouch, portaudio, rsound,
zita-convolver, zita-alsa-pcmi)[arguments]: Likewise.
* gnu/packages/backup.scm (rdup, btar)[arguments]: Likewise.
* gnu/packages/bioinformatics.scm (bedops, bwa, crossmap, express,
flexbar, grit, hisat, ngs-sdk, subread)[arguments]: Likewise.
* gnu/packages/bittorrent.scm (transmission)[arguments]: Likewise.
* gnu/packages/cdrom.scm (cd-discid)[arguments]: Likewise.
* gnu/packages/compression.scm (sharutils)[arguments]: Likewise.
* gnu/packages/conky.scm (conky)[arguments]: Likewise.
* gnu/packages/databases.scm (bdb, bdb-5.3)[arguments]: Likewise.
* gnu/packages/debug.scm (delta, c-reduce)[arguments]: Likewise.
* gnu/packages/display-managers.scm (slim)[arguments]: Likewise.
* gnu/packages/dns.scm (dnsmasq)[arguments]: Likewise.
* gnu/packages/emacs.scm (geiser, emacs-wget, bbdb)[arguments]: Likewise.
* gnu/packages/engineering.scm (pcb)[arguments]: Likewise.
* gnu/packages/firmware.scm (ath9k-htc-firmware)[arguments]: Likewise.
* gnu/packages/flashing-tools.scm (flashrom)[arguments]: Likewise.
* gnu/packages/fltk.scm (fltk)[arguments]: Likewise.
* gnu/packages/freedesktop.scm (python-pyxdg)[arguments]: Likewise.
* gnu/packages/gd.scm (perl-gd)[arguments]: Likewise.
* gnu/packages/gkrellm.scm (gkrellm)[arguments]: Likewise.
* gnu/packages/glib.scm (glibmm)[arguments]: Likewise.
* gnu/packages/gl.scm (glew)[arguments]: Likewise.
* gnu/packages/gnome.scm (icon-naming-utils, orbit2, libbonobo, gnome-vfs,
libgnome, libbonoboui, goffice-0.8, dconf)[arguments]: Likewise.
* gnu/packages/gprolog.scm (gprolog)[arguments]: Likewise.
* gnu/packages/gps.scm (gpscorrelate)[arguments]: Likewise.
* gnu/packages/graphics.scm (agg)[arguments]: Likewise.
* gnu/packages/gtk.scm (ganv, girara, gtksourceview-2, guile-present,
python2-pycairo)[arguments]: Likewise.
* gnu/packages/guile.scm (guile-1.8)[arguments]: Likewise.
* gnu/packages/guile-wm.scm (guile-wm)[arguments]: Likewise.
* gnu/packages/hugs.scm (hugs)[arguments]: Likewise.
* gnu/packages/hurd.scm (gnumach-headers, hurd-headers, hurd-minimal)
[arguments]: Likewise.
* gnu/packages/image-viewers.scm (feh, sxiv)[arguments]: Likewise.
* gnu/packages/libcanberra.scm (libcanberra)[arguments]: Likewise.
* gnu/packages/linux.scm (bridge-utils, iw, fuse, unionfs-fuse/static,
lm-sensors, i2c-tools, xsensors, perf, mdadm, libaio, module-init-tools)
[arguments]: Likewise.
* gnu/packages/lisp.scm (ccl)[arguments]: Likewise.
* gnu/packages/lout.scm (lout)[arguments]: Likewise.
* gnu/packages/lua.scm (luajit)[arguments]: Likewise.
* gnu/packages/machine-learning.scm (shogun)[arguments]: Likewise.
* gnu/packages/mail.scm (exim)[arguments]: Likewise.
* gnu/packages/man.scm (man-pages, txt2man)[arguments]: Likewise.
* gnu/packages/maths.scm (lapack, superlu-dist, openlibm, openspecfun)
[arguments]: Likewise.
* gnu/packages/messaging.scm (bitlbee)[arguments]: Likewise.
* gnu/packages/mp3.scm (libmad, id3lib, mp3info)[arguments]: Likewise.
* gnu/packages/music.scm (solfege)[arguments]: Likewise.
* gnu/packages/noweb.scm (noweb)[arguments]: Likewise.
* gnu/packages/patchutils.scm (patchutils, quilt, colordiff)[arguments]:
Likewise.
* gnu/packages/pdf.scm (xpdf, zathura-cb, zathura-ps, zathura-djvu,
zathura-pdf-poppler, zathura, podofo, fbida)[arguments]: Likewise.
* gnu/packages/perl.scm (perl-file-list, perl-test-harness)[arguments]:
Likewise.
* gnu/packages/photo.scm (gphoto2)[arguments]: Likewise.
* gnu/packages/popt.scm (popt)[arguments]: Likewise.
* gnu/packages/pretty-print.scm (source-highlight, astyle)[arguments]:
Likewise.
* gnu/packages/pumpio.scm (pumpa)[arguments]: Likewise.
* gnu/packages/python.scm (python-passlib, python-pycrypto, python2-empy,
python-sqlalchemy, python-docopt)[arguments]: Likewise.
* gnu/packages/rdf.scm (lrdf)[arguments]: Likewise.
* gnu/packages/regex.scm (tre)[arguments]: Likewise.
* gnu/packages/rrdtool.scm (rrdtool)[arguments]: Likewise.
* gnu/packages/ruby.scm (ruby-2.1, ruby-1.8)[arguments]: Likewise.
* gnu/packages/sawfish.scm (sawfish)[arguments]: Likewise.
* gnu/packages/scheme.scm (racket)[arguments]: Likewise.
* gnu/packages/sdl.scm (guile-sdl)[arguments]: Likewise.
* gnu/packages/serveez.scm (serveez)[arguments]: Likewise.
* gnu/packages/skribilo.scm (skribilo)[arguments]: Likewise.
* gnu/packages/smalltalk.scm (smalltalk)[arguments]: Likewise.
* gnu/packages/suckless.scm (dmenu, slock)[arguments]: Likewise.
* gnu/packages/tcl.scm (expect)[arguments]: Likewise.
* gnu/packages/telephony.scm (commoncpp)[arguments]: Likewise.
* gnu/packages/textutils.scm (recode, libgtextutils)[arguments]:
Likewise.
* gnu/packages/time.scm (time)[arguments]: Likewise.
* gnu/packages/tor.scm (privoxy)[arguments]: Likewise.
* gnu/packages/uucp.scm (uucp)[arguments]: Likewise.
* gnu/packages/video.scm (libdvdnav-4)[arguments]: Likewise.
* gnu/packages/web-browsers.scm (lynx)[arguments]: Likewise.
* gnu/packages/web.scm (tinyproxy)[arguments]: Likewise.
* gnu/packages/wicd.scm (wicd)[arguments]: Likewise.
* gnu/packages/wm.scm (bspwm)[arguments]: Likewise.
* gnu/packages/xdisorg.scm (sxhkd, xcape)[arguments]: Likewise.
* gnu/packages/xfce.scm (xfconf)[arguments]: Likewise.
* gnu/packages/xfig.scm (transfig)[arguments]: Likewise.
* gnu/packages/xorg.scm (imake)[arguments]: Likewise.
2017-07-29 17:28:42 +02:00
|
|
|
|
(for-each
|
|
|
|
|
(lambda (x) (apply patch-ffi-libs x))
|
|
|
|
|
'(("share/pkgs/draw-lib/racket/draw/unsafe/cairo-lib.rkt"
|
|
|
|
|
("libfontconfig" "libcairo"))
|
|
|
|
|
("share/pkgs/draw-lib/racket/draw/unsafe/glib.rkt"
|
|
|
|
|
("libglib-2.0" "libgmodule-2.0" "libgobject-2.0"))
|
|
|
|
|
("share/pkgs/draw-lib/racket/draw/unsafe/jpeg.rkt"
|
|
|
|
|
("libjpeg"))
|
|
|
|
|
("share/pkgs/draw-lib/racket/draw/unsafe/pango.rkt"
|
|
|
|
|
("libpango-1.0" "libpangocairo-1.0"))
|
|
|
|
|
("share/pkgs/draw-lib/racket/draw/unsafe/png.rkt"
|
|
|
|
|
("libpng"))
|
|
|
|
|
("share/pkgs/db-lib/db/private/odbc/ffi.rkt"
|
|
|
|
|
("libodbc"))
|
|
|
|
|
("share/pkgs/gui-lib/mred/private/wx/gtk/x11.rkt"
|
|
|
|
|
("libX11"))
|
|
|
|
|
("share/pkgs/gui-lib/mred/private/wx/gtk/gsettings.rkt"
|
|
|
|
|
("libgio-2.0"))
|
|
|
|
|
("share/pkgs/gui-lib/mred/private/wx/gtk/gtk3.rkt"
|
|
|
|
|
("libgdk-3" "libgtk-3"))
|
|
|
|
|
("share/pkgs/gui-lib/mred/private/wx/gtk/unique.rkt"
|
|
|
|
|
("libunique-1.0"))
|
|
|
|
|
("share/pkgs/gui-lib/mred/private/wx/gtk/utils.rkt"
|
|
|
|
|
("libgdk-x11-2.0" "libgdk_pixbuf-2.0" "libgtk-x11-2.0"))
|
|
|
|
|
("share/pkgs/gui-lib/mred/private/wx/gtk/gl-context.rkt"
|
|
|
|
|
("libGL"))
|
|
|
|
|
("share/pkgs/sgl/gl.rkt"
|
2018-09-13 13:28:36 +02:00
|
|
|
|
("libGL" "libGLU")))))
|
gnu: Use 'modify-phases' syntax.
* gnu/packages/admin.scm (mingetty, clusterssh, wpa-supplicant-minimal,
wpa-supplicant, wakelan, acpica, tree, direvent, dstat)[arguments]: Use
'modify-phases' syntax.
* gnu/packages/algebra.scm (arb)[arguments]: Likewise.
* gnu/packages/apr.scm (apr-util)[arguments]: Likewise.
* gnu/packages/audio.scm (clalsadrv, fluidsynth, faad2, lv2-mda-piano,
lv2-mda-epiano, timidity++, vamp, soundtouch, portaudio, rsound,
zita-convolver, zita-alsa-pcmi)[arguments]: Likewise.
* gnu/packages/backup.scm (rdup, btar)[arguments]: Likewise.
* gnu/packages/bioinformatics.scm (bedops, bwa, crossmap, express,
flexbar, grit, hisat, ngs-sdk, subread)[arguments]: Likewise.
* gnu/packages/bittorrent.scm (transmission)[arguments]: Likewise.
* gnu/packages/cdrom.scm (cd-discid)[arguments]: Likewise.
* gnu/packages/compression.scm (sharutils)[arguments]: Likewise.
* gnu/packages/conky.scm (conky)[arguments]: Likewise.
* gnu/packages/databases.scm (bdb, bdb-5.3)[arguments]: Likewise.
* gnu/packages/debug.scm (delta, c-reduce)[arguments]: Likewise.
* gnu/packages/display-managers.scm (slim)[arguments]: Likewise.
* gnu/packages/dns.scm (dnsmasq)[arguments]: Likewise.
* gnu/packages/emacs.scm (geiser, emacs-wget, bbdb)[arguments]: Likewise.
* gnu/packages/engineering.scm (pcb)[arguments]: Likewise.
* gnu/packages/firmware.scm (ath9k-htc-firmware)[arguments]: Likewise.
* gnu/packages/flashing-tools.scm (flashrom)[arguments]: Likewise.
* gnu/packages/fltk.scm (fltk)[arguments]: Likewise.
* gnu/packages/freedesktop.scm (python-pyxdg)[arguments]: Likewise.
* gnu/packages/gd.scm (perl-gd)[arguments]: Likewise.
* gnu/packages/gkrellm.scm (gkrellm)[arguments]: Likewise.
* gnu/packages/glib.scm (glibmm)[arguments]: Likewise.
* gnu/packages/gl.scm (glew)[arguments]: Likewise.
* gnu/packages/gnome.scm (icon-naming-utils, orbit2, libbonobo, gnome-vfs,
libgnome, libbonoboui, goffice-0.8, dconf)[arguments]: Likewise.
* gnu/packages/gprolog.scm (gprolog)[arguments]: Likewise.
* gnu/packages/gps.scm (gpscorrelate)[arguments]: Likewise.
* gnu/packages/graphics.scm (agg)[arguments]: Likewise.
* gnu/packages/gtk.scm (ganv, girara, gtksourceview-2, guile-present,
python2-pycairo)[arguments]: Likewise.
* gnu/packages/guile.scm (guile-1.8)[arguments]: Likewise.
* gnu/packages/guile-wm.scm (guile-wm)[arguments]: Likewise.
* gnu/packages/hugs.scm (hugs)[arguments]: Likewise.
* gnu/packages/hurd.scm (gnumach-headers, hurd-headers, hurd-minimal)
[arguments]: Likewise.
* gnu/packages/image-viewers.scm (feh, sxiv)[arguments]: Likewise.
* gnu/packages/libcanberra.scm (libcanberra)[arguments]: Likewise.
* gnu/packages/linux.scm (bridge-utils, iw, fuse, unionfs-fuse/static,
lm-sensors, i2c-tools, xsensors, perf, mdadm, libaio, module-init-tools)
[arguments]: Likewise.
* gnu/packages/lisp.scm (ccl)[arguments]: Likewise.
* gnu/packages/lout.scm (lout)[arguments]: Likewise.
* gnu/packages/lua.scm (luajit)[arguments]: Likewise.
* gnu/packages/machine-learning.scm (shogun)[arguments]: Likewise.
* gnu/packages/mail.scm (exim)[arguments]: Likewise.
* gnu/packages/man.scm (man-pages, txt2man)[arguments]: Likewise.
* gnu/packages/maths.scm (lapack, superlu-dist, openlibm, openspecfun)
[arguments]: Likewise.
* gnu/packages/messaging.scm (bitlbee)[arguments]: Likewise.
* gnu/packages/mp3.scm (libmad, id3lib, mp3info)[arguments]: Likewise.
* gnu/packages/music.scm (solfege)[arguments]: Likewise.
* gnu/packages/noweb.scm (noweb)[arguments]: Likewise.
* gnu/packages/patchutils.scm (patchutils, quilt, colordiff)[arguments]:
Likewise.
* gnu/packages/pdf.scm (xpdf, zathura-cb, zathura-ps, zathura-djvu,
zathura-pdf-poppler, zathura, podofo, fbida)[arguments]: Likewise.
* gnu/packages/perl.scm (perl-file-list, perl-test-harness)[arguments]:
Likewise.
* gnu/packages/photo.scm (gphoto2)[arguments]: Likewise.
* gnu/packages/popt.scm (popt)[arguments]: Likewise.
* gnu/packages/pretty-print.scm (source-highlight, astyle)[arguments]:
Likewise.
* gnu/packages/pumpio.scm (pumpa)[arguments]: Likewise.
* gnu/packages/python.scm (python-passlib, python-pycrypto, python2-empy,
python-sqlalchemy, python-docopt)[arguments]: Likewise.
* gnu/packages/rdf.scm (lrdf)[arguments]: Likewise.
* gnu/packages/regex.scm (tre)[arguments]: Likewise.
* gnu/packages/rrdtool.scm (rrdtool)[arguments]: Likewise.
* gnu/packages/ruby.scm (ruby-2.1, ruby-1.8)[arguments]: Likewise.
* gnu/packages/sawfish.scm (sawfish)[arguments]: Likewise.
* gnu/packages/scheme.scm (racket)[arguments]: Likewise.
* gnu/packages/sdl.scm (guile-sdl)[arguments]: Likewise.
* gnu/packages/serveez.scm (serveez)[arguments]: Likewise.
* gnu/packages/skribilo.scm (skribilo)[arguments]: Likewise.
* gnu/packages/smalltalk.scm (smalltalk)[arguments]: Likewise.
* gnu/packages/suckless.scm (dmenu, slock)[arguments]: Likewise.
* gnu/packages/tcl.scm (expect)[arguments]: Likewise.
* gnu/packages/telephony.scm (commoncpp)[arguments]: Likewise.
* gnu/packages/textutils.scm (recode, libgtextutils)[arguments]:
Likewise.
* gnu/packages/time.scm (time)[arguments]: Likewise.
* gnu/packages/tor.scm (privoxy)[arguments]: Likewise.
* gnu/packages/uucp.scm (uucp)[arguments]: Likewise.
* gnu/packages/video.scm (libdvdnav-4)[arguments]: Likewise.
* gnu/packages/web-browsers.scm (lynx)[arguments]: Likewise.
* gnu/packages/web.scm (tinyproxy)[arguments]: Likewise.
* gnu/packages/wicd.scm (wicd)[arguments]: Likewise.
* gnu/packages/wm.scm (bspwm)[arguments]: Likewise.
* gnu/packages/xdisorg.scm (sxhkd, xcape)[arguments]: Likewise.
* gnu/packages/xfce.scm (xfconf)[arguments]: Likewise.
* gnu/packages/xfig.scm (transfig)[arguments]: Likewise.
* gnu/packages/xorg.scm (imake)[arguments]: Likewise.
2017-07-29 17:28:42 +02:00
|
|
|
|
(chdir "src")
|
|
|
|
|
#t))
|
|
|
|
|
(add-after 'unpack 'patch-/bin/sh
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "collects/racket/system.rkt"
|
|
|
|
|
(("/bin/sh") (which "sh")))
|
|
|
|
|
#t)))
|
2018-08-02 16:23:11 +02:00
|
|
|
|
#:tests? #f ; XXX: how to run them?
|
2013-06-16 20:43:29 +02:00
|
|
|
|
))
|
2016-07-19 15:26:42 +02:00
|
|
|
|
(inputs
|
|
|
|
|
`(("libffi" ,libffi)
|
|
|
|
|
;; Hardcode dynamically loaded libraries for better functionality.
|
|
|
|
|
;; sqlite and libraries for `racket/draw' are needed to build the doc.
|
|
|
|
|
("cairo" ,cairo)
|
|
|
|
|
("fontconfig" ,fontconfig)
|
|
|
|
|
("glib" ,glib)
|
|
|
|
|
("glu" ,glu)
|
|
|
|
|
("gmp" ,gmp)
|
2018-08-02 16:23:11 +02:00
|
|
|
|
("gtk+" ,gtk+) ; propagates gdk-pixbuf+svg
|
2016-07-19 15:26:42 +02:00
|
|
|
|
("libjpeg" ,libjpeg)
|
|
|
|
|
("libpng" ,libpng)
|
|
|
|
|
("libx11" ,libx11)
|
|
|
|
|
("mesa" ,mesa)
|
|
|
|
|
("mpfr" ,mpfr)
|
|
|
|
|
("openssl" ,openssl)
|
|
|
|
|
("pango" ,pango)
|
|
|
|
|
("sqlite" ,sqlite)
|
2018-08-02 16:23:11 +02:00
|
|
|
|
("unixodbc" ,unixodbc)
|
|
|
|
|
("libedit" ,libedit)))
|
2013-06-16 20:43:29 +02:00
|
|
|
|
(home-page "http://racket-lang.org")
|
|
|
|
|
(synopsis "Implementation of Scheme and related languages")
|
|
|
|
|
(description
|
|
|
|
|
"Racket is an implementation of the Scheme programming language (R5RS and
|
|
|
|
|
R6RS) and related languages, such as Typed Racket. It features a compiler and
|
|
|
|
|
a virtual machine with just-in-time native compilation, as well as a large set
|
|
|
|
|
of libraries.")
|
2015-01-28 22:54:12 +01:00
|
|
|
|
(license lgpl2.0+)))
|
2015-02-16 13:29:36 +01:00
|
|
|
|
|
|
|
|
|
(define-public gambit-c
|
|
|
|
|
(package
|
|
|
|
|
(name "gambit-c")
|
2018-09-15 06:14:29 +02:00
|
|
|
|
(version "4.9.0")
|
2015-02-16 13:29:36 +01:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"http://www.iro.umontreal.ca/~gambit/download/gambit/v"
|
2016-10-23 12:29:38 +02:00
|
|
|
|
(version-major+minor version) "/source/gambit-v"
|
2015-02-16 13:29:36 +01:00
|
|
|
|
(string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
|
|
|
|
|
".tgz"))
|
|
|
|
|
(sha256
|
2018-09-15 06:14:29 +02:00
|
|
|
|
(base32 "19862w9ij0g5xrkskl4g89xbs17gp9cc6cfcdca6dlfkb3lk6xhp"))))
|
2015-02-16 13:29:36 +01:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:configure-flags
|
|
|
|
|
;; According to the ./configure script, this makes the build slower and
|
|
|
|
|
;; use >= 1 GB memory, but makes Gambit much faster.
|
2018-09-15 06:14:29 +02:00
|
|
|
|
'("--enable-single-host")))
|
2018-09-15 06:13:42 +02:00
|
|
|
|
(home-page "http://gambitscheme.org")
|
2015-02-16 13:29:36 +01:00
|
|
|
|
(synopsis "Efficient Scheme interpreter and compiler")
|
|
|
|
|
(description
|
|
|
|
|
"Gambit consists of two main programs: gsi, the Gambit Scheme
|
|
|
|
|
interpreter, and gsc, the Gambit Scheme compiler. The interpreter contains
|
|
|
|
|
the complete execution and debugging environment. The compiler is the
|
|
|
|
|
interpreter extended with the capability of generating executable files. The
|
|
|
|
|
compiler can produce standalone executables or compiled modules which can be
|
|
|
|
|
loaded at run time. Interpreted code and compiled code can be freely
|
|
|
|
|
mixed.")
|
|
|
|
|
;; Dual license.
|
|
|
|
|
(license (list lgpl2.1+ asl2.0))))
|
2015-02-16 21:58:36 +01:00
|
|
|
|
|
|
|
|
|
(define-public chibi-scheme
|
|
|
|
|
(package
|
|
|
|
|
(name "chibi-scheme")
|
2015-05-27 21:11:47 +02:00
|
|
|
|
(version "0.7.3")
|
2015-02-16 21:58:36 +01:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-05-27 21:11:47 +02:00
|
|
|
|
(uri (string-append "https://github.com/ashinn/chibi-scheme/archive/"
|
|
|
|
|
version ".tar.gz"))
|
2015-02-16 21:58:36 +01:00
|
|
|
|
(sha256
|
2015-05-27 21:11:47 +02:00
|
|
|
|
(base32 "16wppf4qzr0748iyp0m89gidsfgq9s6x3gw4xggym91waw4fh742"))
|
|
|
|
|
(file-name (string-append "chibi-scheme-" version ".tar.gz"))))
|
2015-02-16 21:58:36 +01:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2016-09-15 15:40:00 +02:00
|
|
|
|
`(#:phases (modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)
|
|
|
|
|
(add-before 'build 'set-cc
|
|
|
|
|
(lambda _
|
|
|
|
|
(setenv "CC" "gcc"))))
|
2015-02-16 21:58:36 +01:00
|
|
|
|
#:make-flags (let ((out (assoc-ref %outputs "out")))
|
|
|
|
|
(list (string-append "PREFIX=" out)
|
|
|
|
|
(string-append "LDFLAGS=-Wl,-rpath=" out "/lib")))
|
|
|
|
|
#:test-target "test"))
|
2016-12-14 21:46:59 +01:00
|
|
|
|
(home-page "https://github.com/ashinn/chibi-scheme")
|
2015-02-16 21:58:36 +01:00
|
|
|
|
(synopsis "Small embeddable Scheme implementation")
|
|
|
|
|
(description
|
|
|
|
|
"Chibi-Scheme is a very small library with no external dependencies
|
|
|
|
|
intended for use as an extension and scripting language in C programs. In
|
|
|
|
|
addition to support for lightweight VM-based threads, each VM itself runs in
|
|
|
|
|
an isolated heap allowing multiple VMs to run simultaneously in different OS
|
|
|
|
|
threads.")
|
|
|
|
|
(license bsd-3)))
|
2015-08-13 18:58:01 +02:00
|
|
|
|
|
|
|
|
|
(define-public scmutils
|
|
|
|
|
(let ()
|
|
|
|
|
(define (system-suffix)
|
|
|
|
|
(cond
|
|
|
|
|
((string-prefix? "x86_64" (or (%current-target-system)
|
|
|
|
|
(%current-system)))
|
|
|
|
|
"x86-64")
|
|
|
|
|
(else "i386")))
|
|
|
|
|
|
|
|
|
|
(package
|
|
|
|
|
(name "scmutils")
|
2017-12-24 19:59:38 +01:00
|
|
|
|
(version "20160827")
|
2015-08-13 18:58:01 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
2016-02-22 00:29:54 +01:00
|
|
|
|
(method url-fetch/tarbomb)
|
2015-08-13 18:58:01 +02:00
|
|
|
|
(modules '((guix build utils)))
|
gnu: All snippets report errors using exceptions, else return #t.
* gnu/packages/admin.scm, gnu/packages/algebra.scm, gnu/packages/audio.scm,
gnu/packages/backup.scm, gnu/packages/base.scm,
gnu/packages/bioinformatics.scm, gnu/packages/cdrom.scm,
gnu/packages/chez.scm, gnu/packages/code.scm, gnu/packages/compression.scm,
gnu/packages/cross-base.scm, gnu/packages/crypto.scm, gnu/packages/cups.scm,
gnu/packages/databases.scm, gnu/packages/dns.scm, gnu/packages/emacs.scm,
gnu/packages/emulators.scm, gnu/packages/engineering.scm,
gnu/packages/enlightenment.scm, gnu/packages/fpga.scm,
gnu/packages/freedesktop.scm, gnu/packages/ftp.scm, gnu/packages/games.scm,
gnu/packages/gcc.scm, gnu/packages/geo.scm, gnu/packages/ghostscript.scm,
gnu/packages/gl.scm, gnu/packages/glib.scm, gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm, gnu/packages/graphics.scm, gnu/packages/gtk.scm,
gnu/packages/guile.scm, gnu/packages/irc.scm, gnu/packages/java.scm,
gnu/packages/kerberos.scm, gnu/packages/linux.scm, gnu/packages/lisp.scm,
gnu/packages/lxde.scm, gnu/packages/machine-learning.scm,
gnu/packages/mail.scm, gnu/packages/maths.scm, gnu/packages/messaging.scm,
gnu/packages/monitoring.scm, gnu/packages/mp3.scm, gnu/packages/music.scm,
gnu/packages/netpbm.scm, gnu/packages/networking.scm, gnu/packages/node.scm,
gnu/packages/nvi.scm, gnu/packages/ocaml.scm, gnu/packages/pdf.scm,
gnu/packages/perl.scm, gnu/packages/php.scm, gnu/packages/plotutils.scm,
gnu/packages/pretty-print.scm, gnu/packages/profiling.scm,
gnu/packages/pulseaudio.scm, gnu/packages/python-crypto.scm,
gnu/packages/python.scm, gnu/packages/qt.scm, gnu/packages/robotics.scm,
gnu/packages/sawfish.scm, gnu/packages/scanner.scm, gnu/packages/scheme.scm,
gnu/packages/scribus.scm, gnu/packages/sdl.scm,
gnu/packages/serialization.scm, gnu/packages/shells.scm,
gnu/packages/slang.scm, gnu/packages/smalltalk.scm, gnu/packages/ssh.scm,
gnu/packages/sync.scm, gnu/packages/syncthing.scm, gnu/packages/tbb.scm,
gnu/packages/terminals.scm, gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm, gnu/packages/textutils.scm,
gnu/packages/tls.scm, gnu/packages/unrtf.scm,
gnu/packages/version-control.scm, gnu/packages/video.scm,
gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm, gnu/packages/xdisorg.scm, gnu/packages/xorg.scm:
In all snippets, report errors using exceptions, or else return #t.
2018-03-16 12:47:34 +01:00
|
|
|
|
(snippet '(begin
|
|
|
|
|
;; Remove binary code
|
|
|
|
|
(delete-file-recursively "scmutils/mit-scheme")
|
|
|
|
|
#t))
|
2015-08-13 18:58:01 +02:00
|
|
|
|
(uri (string-append "http://groups.csail.mit.edu/mac/users/gjs/6946"
|
|
|
|
|
"/scmutils-tarballs/" name "-" version
|
|
|
|
|
"-x86-64-gnu-linux.tar.gz"))
|
|
|
|
|
(sha256
|
2017-12-24 19:59:38 +01:00
|
|
|
|
(base32 "00ly5m0s4dy5kxravjaqlpii5zcnr6b9nqm0607lr7xcs52i4j8b"))))
|
2015-08-13 18:58:01 +02:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("mit-scheme" ,mit-scheme)
|
2016-05-12 00:58:59 +02:00
|
|
|
|
("emacs" ,emacs-minimal)))
|
2015-08-13 18:58:01 +02:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ;; no tests-suite
|
|
|
|
|
#:modules ((guix build gnu-build-system)
|
|
|
|
|
(guix build utils)
|
|
|
|
|
(guix build emacs-utils))
|
|
|
|
|
#:imported-modules (,@%gnu-build-system-modules
|
|
|
|
|
(guix build emacs-utils))
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'configure
|
2017-12-24 19:59:38 +01:00
|
|
|
|
;; No standard build procedure is used. We set the correct
|
|
|
|
|
;; runtime path in the custom build system.
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
;; Required to find .bci files at runtime.
|
|
|
|
|
(with-directory-excursion "scmutils"
|
|
|
|
|
(rename-file "src" "scmutils"))
|
|
|
|
|
(substitute* "scmutils/scmutils/load.scm"
|
|
|
|
|
(("/usr/local/scmutils/")
|
|
|
|
|
(string-append out "/lib/mit-scheme-"
|
|
|
|
|
,(system-suffix) "/")))
|
|
|
|
|
#t)))
|
2015-08-13 18:58:01 +02:00
|
|
|
|
(replace 'build
|
2017-12-24 19:59:38 +01:00
|
|
|
|
;; Compile the code and build a band.
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(make-img (string-append
|
|
|
|
|
"echo '(load \"load\") "
|
|
|
|
|
"(disk-save \"edwin-mechanics.com\")'"
|
|
|
|
|
"| mit-scheme")))
|
|
|
|
|
(with-directory-excursion "scmutils/scmutils"
|
|
|
|
|
(and (zero? (system "mit-scheme < compile.scm"))
|
2018-06-26 16:37:17 +02:00
|
|
|
|
(zero? (system make-img))))
|
|
|
|
|
#t)))
|
2015-08-13 18:58:01 +02:00
|
|
|
|
(add-before 'install 'fix-directory-names
|
2017-12-24 19:59:38 +01:00
|
|
|
|
;; Correct directory names in the startup script.
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(scm-root (assoc-ref inputs "mit-scheme")))
|
|
|
|
|
(substitute* "bin/mechanics"
|
|
|
|
|
(("ROOT=\"\\$\\{SCMUTILS_ROOT:-/.*\\}\"")
|
|
|
|
|
(string-append
|
|
|
|
|
"ROOT=\"${SCMUTILS_ROOT:-" scm-root "}\"\n"
|
|
|
|
|
"LIB=\"${ROOT}/lib/mit-scheme-"
|
|
|
|
|
,(system-suffix) ":"
|
|
|
|
|
out "/lib/mit-scheme-" ,(system-suffix) "\""))
|
|
|
|
|
(("EDWIN_INFO_DIRECTORY=.*\n") "")
|
|
|
|
|
(("SCHEME=.*\n")
|
|
|
|
|
(string-append "SCHEME=\"${ROOT}/bin/scheme "
|
|
|
|
|
"--library ${LIB}\"\n"))
|
|
|
|
|
(("export EDWIN_INFO_DIRECTORY") ""))
|
|
|
|
|
#t)))
|
2015-08-13 18:58:01 +02:00
|
|
|
|
(add-before 'install 'emacs-tags
|
2017-12-24 19:59:38 +01:00
|
|
|
|
;; Generate Emacs's tags for easy reference to source
|
|
|
|
|
;; code.
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(with-directory-excursion "scmutils/scmutils"
|
2018-06-26 16:37:17 +02:00
|
|
|
|
(apply invoke "etags" (find-files "." "\\.scm")))
|
|
|
|
|
#t))
|
2015-08-13 18:58:01 +02:00
|
|
|
|
(replace 'install
|
2017-12-24 19:59:38 +01:00
|
|
|
|
;; Copy files to the store.
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(define* (copy-files-to-directory files dir
|
|
|
|
|
#:optional (delete? #f))
|
|
|
|
|
(for-each (lambda (f)
|
|
|
|
|
(copy-file f (string-append dir "/" f))
|
|
|
|
|
(when delete? (delete-file f)))
|
|
|
|
|
files))
|
2015-08-13 18:58:01 +02:00
|
|
|
|
|
2017-12-24 19:59:38 +01:00
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(bin (string-append out "/bin"))
|
|
|
|
|
(doc (string-append out "/share/doc/"
|
|
|
|
|
,name "-" ,version))
|
|
|
|
|
(lib (string-append out "/lib/mit-scheme-"
|
|
|
|
|
,(system-suffix)
|
|
|
|
|
"/scmutils")))
|
|
|
|
|
(for-each mkdir-p (list lib doc bin))
|
|
|
|
|
(with-directory-excursion "scmutils/scmutils"
|
|
|
|
|
(copy-files-to-directory '("COPYING" "LICENSE")
|
|
|
|
|
doc #t)
|
|
|
|
|
(for-each delete-file (find-files "." "\\.bin"))
|
|
|
|
|
(copy-files-to-directory '("edwin-mechanics.com")
|
|
|
|
|
(string-append lib "/..") #t)
|
|
|
|
|
(copy-recursively "." lib))
|
|
|
|
|
(with-directory-excursion "bin"
|
|
|
|
|
(copy-files-to-directory (find-files ".") bin))
|
|
|
|
|
(with-directory-excursion "scmutils/manual"
|
|
|
|
|
(copy-files-to-directory (find-files ".") doc))
|
|
|
|
|
#t)))
|
2015-08-13 18:58:01 +02:00
|
|
|
|
(add-after 'install 'emacs-helpers
|
2017-12-24 19:59:38 +01:00
|
|
|
|
;; Add convenience Emacs commands to easily load the
|
|
|
|
|
;; Scmutils band in an MIT-Scheme buffer inside of Emacs
|
|
|
|
|
;; and to easily load code tags.
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(mit-root (assoc-ref inputs "mit-scheme"))
|
|
|
|
|
(emacs-lisp-dir
|
|
|
|
|
(string-append out "/share/emacs/site-lisp"
|
|
|
|
|
"/guix.d/" ,name "-" ,version))
|
|
|
|
|
(el-file (string-append emacs-lisp-dir
|
|
|
|
|
"/scmutils.el"))
|
|
|
|
|
(lib-relative-path
|
|
|
|
|
(string-append "/lib/mit-scheme-"
|
|
|
|
|
,(system-suffix))))
|
|
|
|
|
(mkdir-p emacs-lisp-dir)
|
|
|
|
|
(call-with-output-file el-file
|
|
|
|
|
(lambda (p)
|
|
|
|
|
(format p
|
|
|
|
|
";;;###autoload
|
2015-08-13 18:58:01 +02:00
|
|
|
|
(defun scmutils-load ()
|
|
|
|
|
(interactive)
|
|
|
|
|
(require 'xscheme)
|
|
|
|
|
(let ((mit-root \"~a\")
|
|
|
|
|
(scmutils \"~a\"))
|
|
|
|
|
(run-scheme
|
|
|
|
|
(concat mit-root \"/bin/scheme --library \"
|
|
|
|
|
mit-root \"~a:\" scmutils \"~a\"
|
|
|
|
|
\" --band edwin-mechanics.com\"
|
|
|
|
|
\" --emacs\"))))
|
|
|
|
|
|
|
|
|
|
;;;###autoload
|
|
|
|
|
(defun scmutils-load-tags ()
|
|
|
|
|
(interactive)
|
|
|
|
|
(let ((scmutils \"~a\"))
|
|
|
|
|
(visit-tags-table (concat scmutils \"/TAGS\"))))
|
|
|
|
|
"
|
|
|
|
|
mit-root out
|
|
|
|
|
lib-relative-path
|
|
|
|
|
lib-relative-path
|
|
|
|
|
(string-append out lib-relative-path
|
|
|
|
|
"/scmutils"))))
|
2015-12-24 13:29:54 +01:00
|
|
|
|
(emacs-generate-autoloads ,name emacs-lisp-dir)
|
|
|
|
|
(emacs-byte-compile-directory emacs-lisp-dir)
|
2015-08-13 18:58:01 +02:00
|
|
|
|
#t))))))
|
|
|
|
|
(home-page
|
|
|
|
|
"http://groups.csail.mit.edu/mac/users/gjs/6946/linux-install.htm")
|
|
|
|
|
(synopsis "Scmutils library for MIT Scheme")
|
|
|
|
|
(description "The Scmutils system is an integrated library of
|
|
|
|
|
procedures, embedded in the programming language Scheme, and intended to
|
|
|
|
|
support teaching and research in mathematical physics and electrical
|
|
|
|
|
engineering.")
|
|
|
|
|
(license gpl2+))))
|
2016-05-19 23:50:09 +02:00
|
|
|
|
|
|
|
|
|
(define-public sicp
|
2017-12-25 00:55:20 +01:00
|
|
|
|
(let ((commit "225c172f9b859902a64a3c5dd5e1f9ac1a7382de"))
|
2016-05-19 23:50:09 +02:00
|
|
|
|
(package
|
|
|
|
|
(name "sicp")
|
2017-12-25 00:55:20 +01:00
|
|
|
|
(version (string-append "20170703-1." (string-take commit 7)))
|
2016-05-19 23:50:09 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/sarabander/sicp")
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2017-12-25 00:55:20 +01:00
|
|
|
|
"0bhdrdc1mgdjdsg4jksq9z6x129f3346jbf3zir2a0dfmsj6m10n"))
|
2016-05-19 23:50:09 +02:00
|
|
|
|
(file-name (string-append name "-" version "-checkout"))))
|
|
|
|
|
(build-system trivial-build-system)
|
|
|
|
|
(native-inputs `(("gzip" ,gzip)
|
|
|
|
|
("source" ,source)
|
|
|
|
|
("texinfo" ,texinfo)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:modules ((guix build utils)
|
|
|
|
|
(srfi srfi-1)
|
|
|
|
|
(srfi srfi-26))
|
|
|
|
|
#:builder
|
|
|
|
|
(begin
|
|
|
|
|
(use-modules (guix build utils)
|
|
|
|
|
(srfi srfi-1)
|
|
|
|
|
(srfi srfi-26))
|
|
|
|
|
(let ((gzip (assoc-ref %build-inputs "gzip"))
|
|
|
|
|
(source (assoc-ref %build-inputs "source"))
|
|
|
|
|
(texinfo (assoc-ref %build-inputs "texinfo"))
|
2017-05-30 08:56:34 +02:00
|
|
|
|
(html-dir (string-append %output "/share/doc/" ,name "/html"))
|
2016-05-19 23:50:09 +02:00
|
|
|
|
(info-dir (string-append %output "/share/info")))
|
2017-05-30 08:56:34 +02:00
|
|
|
|
(copy-recursively (string-append source "/html") html-dir)
|
2016-05-19 23:50:09 +02:00
|
|
|
|
(setenv "PATH" (string-append gzip "/bin"
|
|
|
|
|
":" texinfo "/bin"))
|
|
|
|
|
(mkdir-p info-dir)
|
2018-03-28 01:51:45 +02:00
|
|
|
|
(invoke "makeinfo" "--output"
|
|
|
|
|
(string-append info-dir "/sicp.info")
|
|
|
|
|
(string-append source "/sicp-pocket.texi"))
|
|
|
|
|
(for-each (cut invoke "gzip" "-9n" <>)
|
|
|
|
|
(find-files info-dir))
|
|
|
|
|
#t))))
|
2017-12-25 02:05:47 +01:00
|
|
|
|
(home-page "https://sarabander.github.io/sicp")
|
2016-05-19 23:50:09 +02:00
|
|
|
|
(synopsis "Structure and Interpretation of Computer Programs")
|
|
|
|
|
(description "Structure and Interpretation of Computer Programs (SICP) is
|
|
|
|
|
a textbook aiming to teach the principles of computer programming.
|
|
|
|
|
|
|
|
|
|
Using Scheme, a dialect of the Lisp programming language, the book explains
|
|
|
|
|
core computer science concepts such as abstraction in programming,
|
|
|
|
|
metalinguistic abstraction, recursion, interpreters, and modular programming.")
|
|
|
|
|
(license cc-by-sa4.0))))
|
2017-02-16 17:01:34 +01:00
|
|
|
|
|
|
|
|
|
(define-public scheme48-rx
|
2017-12-25 00:58:10 +01:00
|
|
|
|
(let* ((commit "dd9037f6f9ea01019390614f6b126b7dd293798d")
|
|
|
|
|
(revision "2"))
|
2017-02-16 17:01:34 +01:00
|
|
|
|
(package
|
|
|
|
|
(name "scheme48-rx")
|
|
|
|
|
(version (string-append "0.0.0-" revision "." (string-take commit 7)))
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/scheme/rx")
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2017-12-25 00:58:10 +01:00
|
|
|
|
"1bvriavxw5kf2izjbil3999vr983vkk2xplfpinafr86m40b2cci"))
|
2017-02-16 17:01:34 +01:00
|
|
|
|
(file-name (string-append name "-" version "-checkout"))))
|
|
|
|
|
(build-system trivial-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:modules ((guix build utils))
|
|
|
|
|
#:builder
|
|
|
|
|
(begin
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
(let ((share (string-append %output
|
|
|
|
|
"/share/scheme48-"
|
|
|
|
|
,(package-version scheme48)
|
|
|
|
|
"/rx")))
|
|
|
|
|
(chdir (assoc-ref %build-inputs "source"))
|
|
|
|
|
(mkdir-p share)
|
gnu: Use invoke and return #t from all builders.
* gnu/packages/admin.scm, gnu/packages/android.scm, gnu/packages/audio.scm,
gnu/packages/avr.scm, gnu/packages/base.scm, gnu/packages/bioinformatics.scm,
gnu/packages/certs.scm, gnu/packages/check.scm, gnu/packages/code.scm,
gnu/packages/commencement.scm, gnu/packages/dictionaries.scm,
gnu/packages/docbook.scm, gnu/packages/emacs.scm, gnu/packages/embedded.scm,
gnu/packages/fonts.scm, gnu/packages/games.scm, gnu/packages/gnome.scm,
gnu/packages/gnu-doc.scm, gnu/packages/guile.scm, gnu/packages/hurd.scm,
gnu/packages/javascript.scm, gnu/packages/libreoffice.scm,
gnu/packages/linux.scm, gnu/packages/lisp.scm, gnu/packages/lxde.scm,
gnu/packages/mail.scm, gnu/packages/markup.scm, gnu/packages/mate.scm,
gnu/packages/pkg-config.scm, gnu/packages/qt.scm, gnu/packages/rust.scm,
gnu/packages/scheme.scm, gnu/packages/sdl.scm, gnu/packages/statistics.scm,
gnu/packages/syncthing.scm, gnu/packages/tex.scm, gnu/packages/web.scm,
gnu/packages/wine.scm, gnu/packages/xfce.scm: In the builders of packages
using 'trivial-build-system', use invoke where appropriate, raise exceptions
on errors, and otherwise return #t.
2018-03-28 02:14:05 +02:00
|
|
|
|
(copy-recursively "." share)
|
|
|
|
|
#t))))
|
2017-02-16 17:01:34 +01:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("source" ,source)
|
|
|
|
|
("scheme48" ,scheme48)))
|
|
|
|
|
(home-page "https://github.com/scheme/rx/")
|
|
|
|
|
(synopsis "SRE String pattern-matching library for scheme48")
|
|
|
|
|
(description
|
|
|
|
|
"String pattern-matching library for scheme48 based on the SRE
|
|
|
|
|
regular-expression notation.")
|
|
|
|
|
(license bsd-3))))
|
2017-02-26 20:18:26 +01:00
|
|
|
|
|
|
|
|
|
(define-public slib
|
|
|
|
|
(package
|
|
|
|
|
(name "slib")
|
|
|
|
|
(version "3b5")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "http://groups.csail.mit.edu/mac/ftpdir/scm/slib-"
|
|
|
|
|
version ".zip"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0q0p2d53p8qw2592yknzgy2y1p5a9k7ppjx0cfrbvk6242c4mdpq"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; There is no check target.
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'install 'remove-bin-share
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(delete-file-recursively
|
2018-06-26 16:39:45 +02:00
|
|
|
|
(string-append (assoc-ref outputs "out") "/bin"))
|
|
|
|
|
#t))
|
2017-02-26 20:18:26 +01:00
|
|
|
|
(replace 'configure
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
2018-06-26 16:39:45 +02:00
|
|
|
|
(invoke "./configure"
|
|
|
|
|
(string-append "--prefix="
|
|
|
|
|
(assoc-ref outputs "out"))))))))
|
2017-02-26 20:18:26 +01:00
|
|
|
|
(native-inputs `(("unzip" ,unzip)
|
|
|
|
|
("texinfo" ,texinfo)))
|
2017-12-25 00:11:23 +01:00
|
|
|
|
(home-page "http://people.csail.mit.edu/jaffer/SLIB.html")
|
2017-02-26 20:18:26 +01:00
|
|
|
|
(synopsis "Compatibility and utility library for Scheme")
|
|
|
|
|
(description "SLIB is a portable Scheme library providing compatibility and
|
|
|
|
|
utility functions for all standard Scheme implementations.")
|
|
|
|
|
(license (non-copyleft
|
|
|
|
|
"http://people.csail.mit.edu/jaffer/SLIB_COPYING.txt"
|
|
|
|
|
"Or see COPYING in the distribution."))))
|
|
|
|
|
|
2017-02-26 20:22:11 +01:00
|
|
|
|
(define-public scm
|
|
|
|
|
(package
|
|
|
|
|
(name "scm")
|
|
|
|
|
(version "5f2")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"http://groups.csail.mit.edu/mac/ftpdir/scm/scm-"
|
|
|
|
|
version ".zip"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"050ijb51jm1cij9g3r89zl9rawsrikhbb5y8zb7lspb7bsxq5w99"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'configure
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
2018-06-26 17:42:41 +02:00
|
|
|
|
(invoke "./configure"
|
|
|
|
|
(string-append "--prefix="
|
|
|
|
|
(assoc-ref outputs "out")))))
|
2017-02-26 20:22:11 +01:00
|
|
|
|
(add-before 'build 'pre-build
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(substitute* "Makefile"
|
2018-06-26 17:42:41 +02:00
|
|
|
|
(("ginstall-info") "install-info"))
|
|
|
|
|
#t))
|
2017-02-26 20:22:11 +01:00
|
|
|
|
(replace 'build
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(setenv "SCHEME_LIBRARY_PATH"
|
|
|
|
|
(string-append (assoc-ref inputs "slib")
|
|
|
|
|
"/lib/slib/"))
|
2018-06-26 17:42:41 +02:00
|
|
|
|
(invoke "make" "scmlit" "CC=gcc")
|
|
|
|
|
(invoke "make" "all")))
|
2017-02-26 20:22:11 +01:00
|
|
|
|
(add-after 'install 'post-install
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
2018-06-26 17:42:41 +02:00
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(req (string-append out "/lib/scm/require.scm")))
|
|
|
|
|
(delete-file req)
|
|
|
|
|
(format (open req (logior O_WRONLY O_CREAT))
|
|
|
|
|
"(define (library-vicinity) ~s)\n"
|
|
|
|
|
(string-append (assoc-ref inputs "slib")
|
|
|
|
|
"/lib/slib/"))
|
|
|
|
|
|
|
|
|
|
;; We must generate the slibcat file.
|
|
|
|
|
(invoke (string-append out "/bin/scm")
|
|
|
|
|
"-br" "new-catalog")))))))
|
2017-02-26 20:22:11 +01:00
|
|
|
|
(inputs `(("slib" ,slib)))
|
|
|
|
|
(native-inputs `(("unzip" ,unzip)
|
|
|
|
|
("texinfo" ,texinfo)))
|
|
|
|
|
(home-page "http://people.csail.mit.edu/jaffer/SCM")
|
|
|
|
|
(synopsis "Scheme implementation conforming to R5RS and IEEE P1178")
|
|
|
|
|
(description "GNU SCM is an implementation of Scheme. This
|
|
|
|
|
implementation includes Hobbit, a Scheme-to-C compiler, which can
|
|
|
|
|
generate C files whose binaries can be dynamically or statically
|
|
|
|
|
linked with a SCM executable.")
|
|
|
|
|
(license lgpl3+)))
|
2018-03-09 02:40:28 +01:00
|
|
|
|
|
|
|
|
|
(define-public tinyscheme
|
|
|
|
|
(package
|
|
|
|
|
(name "tinyscheme")
|
|
|
|
|
(version "1.41")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://sourceforge/" name "/" name "/"
|
|
|
|
|
name "-" version "/" name "-" version ".zip"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0yqma4jrjgj95f3hf30h542x97n8ah234n19yklbqq0phfsa08wf"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("unzip" ,unzip)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'unpack
|
|
|
|
|
(lambda* (#:key source #:allow-other-keys)
|
|
|
|
|
(invoke "unzip" source)
|
|
|
|
|
(chdir (string-append ,name "-" ,version))
|
|
|
|
|
#t))
|
|
|
|
|
(add-after 'unpack 'set-scm-directory
|
|
|
|
|
;; Hard-code ‘our’ init.scm instead of looking in the current
|
|
|
|
|
;; working directory, so invoking ‘scheme’ just works.
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(scm (string-append out "/share/" ,name)))
|
|
|
|
|
(substitute* "scheme.c"
|
|
|
|
|
(("init.scm" all)
|
|
|
|
|
(string-append scm "/" all)))
|
|
|
|
|
#t)))
|
|
|
|
|
(delete 'configure) ; no configure script
|
|
|
|
|
(replace 'install
|
|
|
|
|
;; There's no ‘install’ target. Install files manually.
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(bin (string-append out "/bin"))
|
|
|
|
|
(doc (string-append out "/share/doc/"
|
|
|
|
|
,name "-" ,version))
|
|
|
|
|
(include (string-append out "/include"))
|
|
|
|
|
(lib (string-append out "/lib"))
|
|
|
|
|
(scm (string-append out "/share/" ,name)))
|
|
|
|
|
(install-file "scheme" bin)
|
|
|
|
|
(install-file "Manual.txt" doc)
|
|
|
|
|
(install-file "scheme.h" include)
|
|
|
|
|
(install-file "libtinyscheme.so" lib)
|
|
|
|
|
(install-file "init.scm" scm)
|
|
|
|
|
#t))))
|
|
|
|
|
#:tests? #f)) ; no tests
|
|
|
|
|
(home-page "http://tinyscheme.sourceforge.net/")
|
|
|
|
|
(synopsis "Light-weight interpreter for the Scheme programming language")
|
|
|
|
|
(description
|
|
|
|
|
"TinyScheme is a light-weight Scheme interpreter that implements as large a
|
|
|
|
|
subset of R5RS as was possible without getting very large and complicated.
|
|
|
|
|
|
|
|
|
|
It's meant to be used as an embedded scripting interpreter for other programs.
|
|
|
|
|
As such, it does not offer an Integrated Development Environment (@dfn{IDE}) or
|
|
|
|
|
extensive toolkits, although it does sport a small (and optional) top-level
|
|
|
|
|
loop.
|
|
|
|
|
|
|
|
|
|
As an embedded interpreter, it allows multiple interpreter states to coexist in
|
|
|
|
|
the same program, without any interference between them. Foreign functions in C
|
|
|
|
|
can be added and values can be defined in the Scheme environment. Being quite a
|
|
|
|
|
small program, it is easy to comprehend, get to grips with, and use.")
|
|
|
|
|
(license bsd-3))) ; there are no licence headers
|
2018-06-22 20:29:23 +02:00
|
|
|
|
|
|
|
|
|
(define-public stalin
|
|
|
|
|
(let ((commit "ed1c9e339c352b7a6fee40bb2a47607c3466f0be"))
|
|
|
|
|
;; FIXME: The Stalin "source" contains C code generated by itself:
|
|
|
|
|
;; 'stalin-AMD64.c', etc.
|
|
|
|
|
(package
|
|
|
|
|
(name "stalin")
|
|
|
|
|
(version "0.11")
|
|
|
|
|
(source (origin
|
|
|
|
|
;; Use Pearlmutter's upstream branch with AMD64 patches
|
|
|
|
|
;; applied. Saves us from including those 20M! patches
|
|
|
|
|
;; in Guix. For more info, see:
|
|
|
|
|
;; <ftp.ecn.purdue.edu/qobi/stalin-0.11-amd64-patches.tgz>
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/barak/stalin.git")
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(file-name (string-append name "-" version "-checkout"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"15a5gxj9v7jqlgkg0543gdflw0rbrir7fj5zgifnb33m074wiyhn"))
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
;; remove gc libs from build, we have them as input
|
|
|
|
|
'(begin
|
|
|
|
|
(delete-file "gc6.8.tar.gz")
|
|
|
|
|
(delete-file-recursively "benchmarks")
|
|
|
|
|
(substitute* "build"
|
|
|
|
|
((".*gc6.8.*") "")
|
|
|
|
|
((" cd \\.\\.") "")
|
|
|
|
|
((".*B include/libgc.a") "")
|
|
|
|
|
((".*make.*") ""))
|
|
|
|
|
#t))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:make-flags (list "ARCH_OPTS=-freg-struct-return")
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'configure
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(include-out (string-append out "/include")))
|
|
|
|
|
(invoke "./build")
|
|
|
|
|
(for-each (lambda (fname)
|
|
|
|
|
(install-file fname include-out))
|
|
|
|
|
(find-files "include"))
|
|
|
|
|
(substitute* "makefile"
|
|
|
|
|
(("\\./include") include-out))
|
|
|
|
|
(substitute* "post-make"
|
|
|
|
|
(("`pwd`") out))
|
|
|
|
|
#t)))
|
|
|
|
|
(delete 'check)
|
|
|
|
|
(replace 'install
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(install-file "stalin.1"
|
|
|
|
|
(string-append out "/share/man/man1"))
|
|
|
|
|
(install-file "stalin"
|
|
|
|
|
(string-append out "/bin"))
|
|
|
|
|
#t))))))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("libx11" ,libx11)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("libgc" ,libgc)))
|
|
|
|
|
(supported-systems '("x86_64-linux"))
|
|
|
|
|
(home-page "https://engineering.purdue.edu/~qobi/papers/fdlcc.pdf")
|
|
|
|
|
(synopsis "Brutally efficient Scheme compiler")
|
|
|
|
|
(description
|
|
|
|
|
"Stalin is an aggressively optimizing whole-program compiler
|
|
|
|
|
for Scheme that does polyvariant interprocedural flow analysis,
|
|
|
|
|
flow-directed interprocedural escape analysis, flow-directed
|
|
|
|
|
lightweight CPS conversion, flow-directed lightweight closure
|
|
|
|
|
conversion, flow-directed interprocedural lifetime analysis, automatic
|
|
|
|
|
in-lining, unboxing, and flow-directed program-specific and
|
|
|
|
|
program-point-specific low-level representation selection and code
|
|
|
|
|
generation.")
|
|
|
|
|
(license gpl2+))))
|
2018-11-24 15:11:37 +01:00
|
|
|
|
|
|
|
|
|
(define-public femtolisp
|
|
|
|
|
(let ((commit "68c5b1225572ecf2c52baf62f928063e5a30511b")
|
|
|
|
|
(revision "1"))
|
|
|
|
|
(package
|
|
|
|
|
(name "femtolisp")
|
|
|
|
|
(version (string-append "0.0.0-" revision "." (string-take commit 7)))
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/JeffBezanson/femtolisp.git")
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(file-name (string-append name "-" version "-checkout"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"04rnwllxnl86zw8c6pwxznn49bvkvh0f1lfliy085vjzvlq3rgja"))))
|
|
|
|
|
;; See "utils.h" for supported systems. Upstream bug:
|
|
|
|
|
;; https://github.com/JeffBezanson/femtolisp/issues/25
|
|
|
|
|
(supported-systems
|
|
|
|
|
(fold delete %supported-systems
|
|
|
|
|
'("armhf-linux" "mips64el-linux" "aarch64-linux")))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:make-flags '("CC=gcc" "release")
|
|
|
|
|
#:test-target "test"
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure) ; No configure script
|
|
|
|
|
(replace 'install ; Makefile has no 'install phase
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(bin (string-append out "/bin")))
|
|
|
|
|
(install-file "flisp" bin)
|
|
|
|
|
#t)))
|
|
|
|
|
;; The flisp binary is now available, run bootstrap to
|
|
|
|
|
;; generate flisp.boot and afterwards runs make test.
|
|
|
|
|
(add-after 'install 'bootstrap-gen-and-test
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(bin (string-append out "/bin")))
|
|
|
|
|
(and
|
|
|
|
|
(zero? (system* "./bootstrap.sh"))
|
|
|
|
|
(install-file "flisp.boot" bin))))))))
|
|
|
|
|
(synopsis "Scheme-like lisp implementation")
|
|
|
|
|
(description
|
|
|
|
|
"@code{femtolisp} is a scheme-like lisp implementation with a
|
|
|
|
|
simple, elegant Scheme dialect. It is a lisp-1 with lexical scope.
|
|
|
|
|
The core is 12 builtin special forms and 33 builtin functions.")
|
|
|
|
|
(home-page "https://github.com/JeffBezanson/femtolisp")
|
|
|
|
|
(license bsd-3))))
|