2013-01-14 19:08:00 -05:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2020-01-27 09:04:28 -05:00
|
|
|
|
;;; Copyright © 2013, 2014, 2015, 2016, 2018, 2020 Ludovic Courtès <ludo@gnu.org>
|
2015-02-16 07:29:36 -05:00
|
|
|
|
;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
|
2016-05-12 08:57:25 -04:00
|
|
|
|
;;; Copyright © 2015, 2016 Federico Beffa <beffa@fbengineering.ch>
|
2016-03-20 12:10:12 -04:00
|
|
|
|
;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
|
2020-12-26 15:12:29 -05:00
|
|
|
|
;;; Copyright © 2016, 2017, 2020 Efraim Flashner <efraim@flashner.co.il>
|
2016-05-19 17:50:09 -04:00
|
|
|
|
;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
|
mailmap: Update entries for Nikita.
* .mailmap: change email and name for Nikita.
* 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/elixir.scm, gnu/packages/emacs-xyz.scm, gnu/packages/emacs.scm,
gnu/packages/enlightenment.scm, gnu/packages/erlang.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/gtk.scm, gnu/packages/guile-wm.scm, gnu/packages/guile-xyz.scm,
gnu/packages/haskell-apps.scm, gnu/packages/haskell-check.scm,
gnu/packages/haskell-crypto.scm, gnu/packages/haskell-xyz.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-xyz.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-compression.scm, gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm, gnu/packages/python-xyz.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: Efraim Flashner <efraim@flashner.co.il>
2020-05-11 07:05:45 -04:00
|
|
|
|
;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
|
2017-02-26 14:18:26 -05:00
|
|
|
|
;;; Copyright © 2017 John Darrington <jmd@gnu.org>
|
2017-05-30 02:56:34 -04:00
|
|
|
|
;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
|
2020-01-07 13:22:04 -05:00
|
|
|
|
;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
|
2018-06-22 14:29:23 -04:00
|
|
|
|
;;; Copyright © 2018 Adam Massmann <massmannak@gmail.com>
|
2019-01-15 03:11:10 -05:00
|
|
|
|
;;; Copyright © 2018 Gabriel Hondet <gabrielhondet@gmail.com>
|
2020-02-18 10:19:27 -05:00
|
|
|
|
;;; Copyright © 2020 Pierre Neidhardt <mail@ambrevar.xyz>
|
2020-08-01 00:41:48 -04:00
|
|
|
|
;;; Copyright © 2020 Brett Gilio <brettg@gnu.org>
|
2020-06-19 09:35:29 -04:00
|
|
|
|
;;; Copyright © 2020 Edouard Klein <edk@beaver-labs.com>
|
2021-03-18 22:34:51 -04:00
|
|
|
|
;;; Copyright © 2021 Philip McGrath <philip@philipmcgrath.com>
|
2021-04-29 08:57:15 -04:00
|
|
|
|
;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
|
2013-01-14 19:08:00 -05: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-17 19:06:24 -05:00
|
|
|
|
(define-module (gnu packages scheme)
|
2013-01-17 19:06:47 -05:00
|
|
|
|
#:use-module (gnu packages)
|
2016-05-23 08:55:44 -04:00
|
|
|
|
#:use-module ((guix licenses)
|
2020-06-19 09:35:29 -04:00
|
|
|
|
#:select (gpl2+ lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3+ asl2.0 bsd-3
|
2020-02-18 10:19:27 -05:00
|
|
|
|
cc-by-sa4.0 non-copyleft expat))
|
2013-01-14 19:08:00 -05:00
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix download)
|
2016-05-19 17:50:09 -04:00
|
|
|
|
#:use-module (guix git-download)
|
2015-02-16 07:29:36 -05:00
|
|
|
|
#:use-module (guix utils)
|
2013-01-14 19:08:00 -05:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2016-05-19 17:50:09 -04:00
|
|
|
|
#:use-module (guix build-system trivial)
|
2018-12-20 16:05:50 -05:00
|
|
|
|
#:use-module (gnu packages autotools)
|
2017-07-02 14:22:05 -04:00
|
|
|
|
#:use-module (gnu packages bdw-gc)
|
2021-03-18 22:34:51 -04:00
|
|
|
|
#:use-module (gnu packages bash)
|
2016-05-12 08:57:25 -04:00
|
|
|
|
#:use-module (gnu packages compression)
|
gnu: Move sqlite to separate module.
* gnu/packages/databases.scm (sqlite, sqlite-3.26.0, sqlite-with-fts5,
sqlite-with-column-metadata): Move variables from here...
* gnu/packages/sqlite.scm: ...to this new module.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/apl.scm,
gnu/packages/bittorrent.scm,
gnu/packages/calendar.scm,
gnu/packages/code.scm,
gnu/packages/crypto.scm,
gnu/packages/databases.scm,
gnu/packages/dc.scm,
gnu/packages/disk.scm,
gnu/packages/ebook.scm,
gnu/packages/education.scm,
gnu/packages/emacs.scm,
gnu/packages/emulators.scm,
gnu/packages/file-systems.scm,
gnu/packages/freedesktop.scm,
gnu/packages/ftp.scm,
gnu/packages/games.scm,
gnu/packages/geo.scm,
gnu/packages/gnome.scm,
gnu/packages/gnunet.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/gps.scm,
gnu/packages/guile.scm,
gnu/packages/ibus.scm,
gnu/packages/kerberos.scm,
gnu/packages/kodi.scm,
gnu/packages/lisp.scm,
gnu/packages/mail.scm,
gnu/packages/messaging.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/nfs.scm,
gnu/packages/ocaml.scm,
gnu/packages/package-management.scm,
gnu/packages/pdf.scm,
gnu/packages/photo.scm,
gnu/packages/php.scm,
gnu/packages/python.scm,
gnu/packages/qt.scm,
gnu/packages/ruby.scm,
gnu/packages/scheme.scm,
gnu/packages/sync.scm,
gnu/packages/syndication.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/web-browsers.scm,
gnu/packages/webkit.scm: Adjust module references.
2019-01-15 15:47:05 -05:00
|
|
|
|
#:use-module (gnu packages databases)
|
2017-07-02 14:22:05 -04:00
|
|
|
|
#:use-module (gnu packages libevent)
|
|
|
|
|
#:use-module (gnu packages libunistring)
|
2013-01-17 19:06:24 -05:00
|
|
|
|
#:use-module (gnu packages m4)
|
|
|
|
|
#:use-module (gnu packages multiprecision)
|
2016-05-12 08:57:25 -04:00
|
|
|
|
#:use-module (gnu packages ncurses)
|
2017-07-02 14:22:05 -04:00
|
|
|
|
#:use-module (gnu packages pcre)
|
2013-01-17 19:06:24 -05:00
|
|
|
|
#:use-module (gnu packages emacs)
|
2016-05-12 08:57:25 -04:00
|
|
|
|
#:use-module (gnu packages ghostscript)
|
|
|
|
|
#:use-module (gnu packages netpbm)
|
2013-01-17 19:06:24 -05:00
|
|
|
|
#:use-module (gnu packages texinfo)
|
2016-05-24 15:18:53 -04: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 11:21:21 -05:00
|
|
|
|
#:use-module (gnu packages base)
|
2016-05-19 17:50:09 -04:00
|
|
|
|
#:use-module (gnu packages compression)
|
2013-04-03 08:44:40 -04:00
|
|
|
|
#:use-module (gnu packages pkg-config)
|
|
|
|
|
#:use-module (gnu packages avahi)
|
|
|
|
|
#:use-module (gnu packages libphidget)
|
2016-03-20 18:03:24 -04:00
|
|
|
|
#:use-module (gnu packages gcc)
|
2013-06-16 14:43:29 -04:00
|
|
|
|
#:use-module (gnu packages glib)
|
2013-09-24 12:06:08 -04:00
|
|
|
|
#:use-module (gnu packages gtk)
|
2013-06-16 14:43:29 -04:00
|
|
|
|
#:use-module (gnu packages libffi)
|
2015-01-28 15:28:29 -05: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 08:39:02 -04:00
|
|
|
|
#:use-module (gnu packages image)
|
2015-05-19 18:27:02 -04:00
|
|
|
|
#:use-module (gnu packages xorg)
|
gnu: Move sqlite to separate module.
* gnu/packages/databases.scm (sqlite, sqlite-3.26.0, sqlite-with-fts5,
sqlite-with-column-metadata): Move variables from here...
* gnu/packages/sqlite.scm: ...to this new module.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/apl.scm,
gnu/packages/bittorrent.scm,
gnu/packages/calendar.scm,
gnu/packages/code.scm,
gnu/packages/crypto.scm,
gnu/packages/databases.scm,
gnu/packages/dc.scm,
gnu/packages/disk.scm,
gnu/packages/ebook.scm,
gnu/packages/education.scm,
gnu/packages/emacs.scm,
gnu/packages/emulators.scm,
gnu/packages/file-systems.scm,
gnu/packages/freedesktop.scm,
gnu/packages/ftp.scm,
gnu/packages/games.scm,
gnu/packages/geo.scm,
gnu/packages/gnome.scm,
gnu/packages/gnunet.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/gps.scm,
gnu/packages/guile.scm,
gnu/packages/ibus.scm,
gnu/packages/kerberos.scm,
gnu/packages/kodi.scm,
gnu/packages/lisp.scm,
gnu/packages/mail.scm,
gnu/packages/messaging.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/nfs.scm,
gnu/packages/ocaml.scm,
gnu/packages/package-management.scm,
gnu/packages/pdf.scm,
gnu/packages/photo.scm,
gnu/packages/php.scm,
gnu/packages/python.scm,
gnu/packages/qt.scm,
gnu/packages/ruby.scm,
gnu/packages/scheme.scm,
gnu/packages/sync.scm,
gnu/packages/syndication.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/web-browsers.scm,
gnu/packages/webkit.scm: Adjust module references.
2019-01-15 15:47:05 -05:00
|
|
|
|
#:use-module (gnu packages sqlite)
|
2016-07-19 09:26:42 -04:00
|
|
|
|
#:use-module (gnu packages tls)
|
|
|
|
|
#:use-module (gnu packages gl)
|
2018-08-02 10:23:11 -04:00
|
|
|
|
#:use-module (gnu packages libedit)
|
2020-06-19 09:35:29 -04:00
|
|
|
|
#:use-module (gnu packages linux)
|
2018-11-24 09:11:37 -05:00
|
|
|
|
#:use-module (srfi srfi-1)
|
2013-01-14 19:08:00 -05:00
|
|
|
|
#:use-module (ice-9 match))
|
|
|
|
|
|
2014-09-27 17:59:18 -04:00
|
|
|
|
(define (mit-scheme-source-directory system version)
|
2014-09-27 12:59:40 -04:00
|
|
|
|
(string-append "mit-scheme-"
|
|
|
|
|
(if (or (string-prefix? "x86_64" system)
|
2014-09-27 17:59:18 -04:00
|
|
|
|
(string-prefix? "i686" system))
|
2014-09-27 12:59:40 -04:00
|
|
|
|
""
|
|
|
|
|
"c-")
|
|
|
|
|
version))
|
|
|
|
|
|
2013-01-14 19:08:00 -05:00
|
|
|
|
(define-public mit-scheme
|
|
|
|
|
(package
|
|
|
|
|
(name "mit-scheme")
|
2018-12-13 08:32:50 -05:00
|
|
|
|
(version "10.1.3")
|
2013-01-14 19:08:00 -05:00
|
|
|
|
(source #f) ; see below
|
2016-01-09 05:04:40 -05:00
|
|
|
|
(outputs '("out" "doc"))
|
2013-01-14 19:08:00 -05:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2018-12-20 16:05:50 -05:00
|
|
|
|
`(#:modules ((guix build gnu-build-system)
|
2016-01-09 05:04:40 -05:00
|
|
|
|
(guix build utils)
|
|
|
|
|
(srfi srfi-1))
|
2013-01-14 19:08:00 -05:00
|
|
|
|
#:phases
|
2015-12-27 13:06:37 -05:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'unpack
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
2018-02-22 09:26:14 -05: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
|
2018-12-13 08:32:50 -05:00
|
|
|
|
(find-files "src/compiler" "^make\\."))
|
2018-02-22 09:26:14 -05:00
|
|
|
|
(chdir "src")
|
|
|
|
|
#t))
|
2018-12-20 16:05:50 -05:00
|
|
|
|
(add-after 'unpack 'patch-/bin/sh
|
|
|
|
|
(lambda _
|
|
|
|
|
(setenv "CONFIG_SHELL" (which "sh"))
|
|
|
|
|
(substitute* '("../tests/ffi/autogen.sh"
|
|
|
|
|
"../tests/ffi/autobuild.sh"
|
|
|
|
|
"../tests/ffi/test-ffi.sh"
|
|
|
|
|
"../tests/runtime/test-process.scm"
|
|
|
|
|
"runtime/unxprm.scm")
|
|
|
|
|
(("/bin/sh") (which "sh"))
|
|
|
|
|
(("\\./autogen\\.sh")
|
|
|
|
|
(string-append (which "sh") " autogen.sh"))
|
|
|
|
|
(("\\./configure")
|
|
|
|
|
(string-append (which "sh") " configure")))
|
|
|
|
|
#t))
|
2015-12-27 13:06:37 -05: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 09:26:14 -05:00
|
|
|
|
(invoke "make" "compile-microcode")
|
|
|
|
|
(invoke "./etc/make-liarc.sh"
|
|
|
|
|
(string-append "--prefix=" out)))
|
|
|
|
|
#t)))
|
2016-01-09 05:04:40 -05: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 09:26:14 -05:00
|
|
|
|
(invoke bin/sh "./configure"
|
|
|
|
|
(string-append "--prefix=" out)
|
|
|
|
|
(string-append "SHELL=" bin/sh))
|
2016-01-09 05:04:40 -05:00
|
|
|
|
#t))))
|
|
|
|
|
(add-after 'build 'build-doc
|
|
|
|
|
(lambda* _
|
|
|
|
|
(with-directory-excursion "../doc"
|
2018-02-22 09:26:14 -05:00
|
|
|
|
(invoke "make"))
|
|
|
|
|
#t))
|
2016-01-09 05:04:40 -05: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 09:26:14 -05:00
|
|
|
|
(invoke "make" target))
|
2018-12-13 08:32:50 -05:00
|
|
|
|
'("install-info-gz" "install-man"
|
2016-01-09 05:04:40 -05:00
|
|
|
|
"install-html" "install-pdf")))
|
|
|
|
|
(mkdir-p new-doc/mit-scheme-dir)
|
|
|
|
|
(copy-recursively
|
2018-12-13 08:32:50 -05:00
|
|
|
|
(string-append old-doc-dir "/" ,name)
|
2016-01-09 05:04:40 -05:00
|
|
|
|
new-doc/mit-scheme-dir)
|
|
|
|
|
(delete-file-recursively old-doc-dir)
|
|
|
|
|
#t))))))
|
|
|
|
|
(native-inputs
|
2018-12-20 16:05:50 -05:00
|
|
|
|
`(;; Autoconf, Automake, and Libtool are necessary for the FFI tests.
|
|
|
|
|
("autoconf" ,autoconf)
|
|
|
|
|
("automake" ,automake)
|
|
|
|
|
("libtool" ,libtool)
|
gnu: Replace all uses of texlive-union by texlive-updmap.cfg.
* doc/build.scm (pdf-manual) Replace texlive-union by texlive-updmap.cfg.
* gnu/packages/algebra.scm (pari-gp): Likewise.
* gnu/packages/bioinformatics.scm (discrover, velvet): Likewise.
* gnu/packages/chez.scm (chez-scheme, chez-web, chez-sockets): Likewise.
* gnu/packages/docbook.scm (dblatex): Likewise.
* gnu/packages/emacs-xyz.scm (emacs-auctex): Likewise.
* gnu/packages/engineering.scm (fastcap): Likewise.
* gnu/packages/guile-xyz.scm (emacsy, guile-cv): Likewise.
* gnu/packages/lisp.scm (sbcl): Likewise.
* gnu/packages/maths.scm (octave, hypre): Likewise.
* gnu/packages/music.scm (lilypond): Likewise.
* gnu/packages/plotutils.scm (asymptote): Likewise.
* gnu/packages/python-xyz.scm (python-numpy-documentation)
(python-matplotlib-documentation, python-ipython-documentation)
(python-pypandoc): Likewise.
* gnu/packages/radio.scm (gnuradio, libosmo-dsp): Likewise.
* gnu/packages/scheme.scm (mit-scheme): Likewise.
* gnu/packages/statistics.scm (r-with-tests): Likewise.
* gnu/packages/tex.scm (simple-texlive-package)
(texlive-xmltex, texlive-tiny, texlive-jadetex, teximpatient, lyx): Likewise.
2021-01-14 00:23:38 -05:00
|
|
|
|
("texlive" ,(texlive-updmap.cfg (list texlive-tex-texinfo)))
|
2016-01-09 05:04:40 -05:00
|
|
|
|
("texinfo" ,texinfo)
|
|
|
|
|
("m4" ,m4)))
|
2013-01-14 19:08:00 -05:00
|
|
|
|
(inputs
|
2016-01-09 05:04:40 -05:00
|
|
|
|
`(("libx11" ,libx11)
|
2013-01-14 19:08:00 -05:00
|
|
|
|
|
|
|
|
|
("source"
|
2013-01-24 17:33:30 -05: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 12:59:40 -04:00
|
|
|
|
("x86_64-linux"
|
|
|
|
|
(string-append version "-x86-64"))
|
|
|
|
|
("i686-linux"
|
2018-12-14 17:39:08 -05:00
|
|
|
|
(string-append version "-i386"))
|
|
|
|
|
(_
|
|
|
|
|
(string-append "c-" version)))
|
2013-01-24 17:33:30 -05:00
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(match (%current-system)
|
|
|
|
|
("x86_64-linux"
|
|
|
|
|
(base32
|
2018-12-13 08:32:50 -05:00
|
|
|
|
"03m7cc035w3avs91j2pcz9f15ssgvgp3rm045d1vbydqrkzfyw8k"))
|
2013-01-24 17:33:30 -05:00
|
|
|
|
("i686-linux"
|
|
|
|
|
(base32
|
2018-12-16 08:04:22 -05:00
|
|
|
|
"05sjyz90xxfnmi87qv8x0yx0fcallnzl1dciygdafp317pn489is"))
|
|
|
|
|
(_
|
2019-09-23 06:14:39 -04:00
|
|
|
|
(base32
|
|
|
|
|
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"))))))))
|
2014-10-06 13:34:04 -04:00
|
|
|
|
|
|
|
|
|
;; Fails to build on MIPS, see <http://bugs.gnu.org/18221>.
|
2018-12-13 08:32:50 -05:00
|
|
|
|
;; Also, the portable C version of MIT/GNU Scheme did not work in time for
|
|
|
|
|
;; release in version 10.1.
|
|
|
|
|
(supported-systems '("x86_64-linux" "i686-linux"))
|
2014-10-06 13:34:04 -04:00
|
|
|
|
|
2017-03-29 18:48:16 -04:00
|
|
|
|
(home-page "https://www.gnu.org/software/mit-scheme/")
|
2014-11-09 11:56:02 -05:00
|
|
|
|
(synopsis "A Scheme implementation with integrated editor and debugger")
|
2013-01-14 19:08:00 -05:00
|
|
|
|
(description
|
2013-12-01 16:33:23 -05: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 10:14:23 -04: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 16:18:56 -04:00
|
|
|
|
(license gpl2+)
|
|
|
|
|
(properties '((ftp-directory . "/gnu/mit-scheme/stable.pkg")))))
|
2013-01-14 19:08:00 -05:00
|
|
|
|
|
|
|
|
|
(define-public bigloo
|
2018-11-28 16:55:12 -05:00
|
|
|
|
;; Upstream modifies source tarballs in place, making significant changes
|
2019-12-23 18:00:33 -05:00
|
|
|
|
;; long after the initial publication: <https://bugs.gnu.org/33525>.
|
2021-04-29 08:57:15 -04:00
|
|
|
|
(let ((upstream-version "4.3g"))
|
2018-11-28 16:55:12 -05:00
|
|
|
|
(package
|
|
|
|
|
(name "bigloo")
|
2021-04-29 08:57:15 -04:00
|
|
|
|
(version "4.3g")
|
2018-11-28 16:55:12 -05:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "ftp://ftp-sop.inria.fr/indes/fp/Bigloo/bigloo"
|
|
|
|
|
upstream-version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-04-29 08:57:15 -04:00
|
|
|
|
"07305c134v7s1nz44igwsyqpb9qqia5zyng1q2qj60sskw3nbd67"))
|
2018-11-28 16:55:12 -05:00
|
|
|
|
;; Remove bundled libraries.
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
'(begin
|
|
|
|
|
(for-each delete-file-recursively
|
2021-04-29 08:57:15 -04:00
|
|
|
|
'("gc" "gmp" "libuv" "libunistring" "pcre"))
|
2018-11-28 16:55:12 -05:00
|
|
|
|
#t))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:test-target "test"
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
2021-04-29 08:57:15 -04:00
|
|
|
|
(add-after 'unpack 'fix-gmp-detection
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "configure"
|
|
|
|
|
(("gmpversion=`\\$autoconf gmp --lib=\\$gmplib`")
|
|
|
|
|
"gmpversion=`\\$autoconf gmp --lib=\"\\$gmplib\"`"))))
|
2018-11-28 16:55:12 -05:00
|
|
|
|
(replace 'configure
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
2013-01-14 19:08:00 -05:00
|
|
|
|
|
2018-11-28 16:55:12 -05: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-14 19:08:00 -05:00
|
|
|
|
|
2018-11-28 16:55:12 -05: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"
|
2021-04-29 08:57:15 -04:00
|
|
|
|
"--enable-gmp"
|
|
|
|
|
"--customgmp=no"
|
2018-11-28 16:55:12 -05:00
|
|
|
|
"--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 08:44:40 -04:00
|
|
|
|
|
2018-11-28 16:55:12 -05: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
|
2019-12-23 18:00:53 -05:00
|
|
|
|
(home-page "https://www-sop.inria.fr/indes/fp/Bigloo/")
|
2018-11-28 16:55:12 -05:00
|
|
|
|
(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 08:39:58 -05:00
|
|
|
|
|
|
|
|
|
(define-public hop
|
|
|
|
|
(package
|
|
|
|
|
(name "hop")
|
2018-12-30 14:24:16 -05:00
|
|
|
|
(version "3.2.0-pre1")
|
2013-02-08 08:39:58 -05:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "ftp://ftp-sop.inria.fr/indes/fp/Hop/hop-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2018-12-30 14:24:16 -05:00
|
|
|
|
"0jf418d0s9imv98s6qrpjxr1mdaxr37knh5qyfl5y4a9cc41mlg5"))))
|
2013-02-08 08:39:58 -05:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2017-07-03 14:34:34 -04:00
|
|
|
|
`(#:test-target "test"
|
|
|
|
|
#:make-flags '("BIGLOO=bigloo")
|
|
|
|
|
#:parallel-build? #f
|
|
|
|
|
#:phases
|
2016-10-23 03:21:58 -04:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'configure
|
2017-07-03 14:34:34 -04:00
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
2016-10-23 03:21:58 -04:00
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
2018-12-30 14:24:16 -05:00
|
|
|
|
(substitute* '("tools/Makefile"
|
|
|
|
|
"test/hopjs/TEST.in")
|
|
|
|
|
(("/bin/rm") (which "rm")))
|
2018-06-26 10:33:29 -04:00
|
|
|
|
(invoke "./configure"
|
|
|
|
|
(string-append "--prefix=" out)
|
2018-12-30 14:24:16 -05:00
|
|
|
|
"--hostcc=gcc"
|
2018-06-26 10:33:29 -04:00
|
|
|
|
(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 09:10:23 -05:00
|
|
|
|
(inputs `(("avahi" ,avahi)
|
|
|
|
|
("bigloo" ,bigloo)
|
2017-07-03 14:34:34 -04:00
|
|
|
|
("libgc" ,libgc)
|
|
|
|
|
("libunistring" ,libunistring)
|
|
|
|
|
("libuv" ,libuv)
|
|
|
|
|
("pcre" ,pcre)
|
|
|
|
|
("sqlite" ,sqlite)
|
2015-05-05 12:01:06 -04:00
|
|
|
|
("which" ,which)))
|
2013-02-08 08:39:58 -05:00
|
|
|
|
(home-page "http://hop.inria.fr/")
|
2014-09-13 09:50:30 -04:00
|
|
|
|
(synopsis "Multi-tier programming language for the Web 2.0")
|
2013-02-08 08:39:58 -05: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 05:38:38 -04:00
|
|
|
|
|
2013-05-11 16:13:59 -04:00
|
|
|
|
(define-public scheme48
|
|
|
|
|
(package
|
|
|
|
|
(name "scheme48")
|
2016-04-04 15:01:40 -04:00
|
|
|
|
(version "1.9.2")
|
2013-05-11 16:13:59 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "http://s48.org/" version
|
|
|
|
|
"/scheme48-" version ".tgz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-04-04 15:01:40 -04:00
|
|
|
|
"1x4xfm3lyz2piqcw1h01vbs1iq89zq7wrsfjgh3fxnlm1slj2jcw"))
|
2016-04-08 08:18:13 -04:00
|
|
|
|
(patches (search-patches "scheme48-tests.patch"))))
|
2013-05-11 16:13:59 -04: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 14:43:29 -04:00
|
|
|
|
|
2015-02-16 07:29:36 -05:00
|
|
|
|
(define-public gambit-c
|
|
|
|
|
(package
|
|
|
|
|
(name "gambit-c")
|
2020-01-07 13:22:04 -05:00
|
|
|
|
(version "4.9.3")
|
2015-02-16 07:29:36 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"http://www.iro.umontreal.ca/~gambit/download/gambit/v"
|
2016-10-23 06:29:38 -04:00
|
|
|
|
(version-major+minor version) "/source/gambit-v"
|
2015-02-16 07:29:36 -05:00
|
|
|
|
(string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
|
|
|
|
|
".tgz"))
|
|
|
|
|
(sha256
|
2020-01-07 13:22:04 -05:00
|
|
|
|
(base32 "1p6172vhcrlpjgia6hsks1w4fl8rdyjf9xjh14wxfkv7dnx8a5hk"))))
|
2015-02-16 07:29:36 -05: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 00:14:29 -04:00
|
|
|
|
'("--enable-single-host")))
|
2018-12-30 11:07:00 -05:00
|
|
|
|
(home-page "http://dynamo.iro.umontreal.ca/wiki/index.php/Main_Page")
|
2015-02-16 07:29:36 -05: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 15:58:36 -05:00
|
|
|
|
|
|
|
|
|
(define-public chibi-scheme
|
|
|
|
|
(package
|
|
|
|
|
(name "chibi-scheme")
|
2020-08-01 00:41:48 -04:00
|
|
|
|
(version "0.9")
|
2019-10-31 19:12:32 -04:00
|
|
|
|
(home-page "https://github.com/ashinn/chibi-scheme")
|
2015-02-16 15:58:36 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
2019-10-31 19:12:32 -04:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference (url home-page) (commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
2015-02-16 15:58:36 -05:00
|
|
|
|
(sha256
|
2019-10-31 19:12:32 -04:00
|
|
|
|
(base32
|
2020-08-01 00:41:48 -04:00
|
|
|
|
"1lnap41gl9vg82h557f4rlr69jgmd2gh0iqs6cxm77d39kv1scb8"))))
|
2015-02-16 15:58:36 -05:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2016-09-15 09:40:00 -04:00
|
|
|
|
`(#:phases (modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)
|
|
|
|
|
(add-before 'build 'set-cc
|
|
|
|
|
(lambda _
|
|
|
|
|
(setenv "CC" "gcc"))))
|
2015-02-16 15:58:36 -05:00
|
|
|
|
#:make-flags (let ((out (assoc-ref %outputs "out")))
|
|
|
|
|
(list (string-append "PREFIX=" out)
|
|
|
|
|
(string-append "LDFLAGS=-Wl,-rpath=" out "/lib")))
|
|
|
|
|
#:test-target "test"))
|
|
|
|
|
(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 12:58:01 -04:00
|
|
|
|
|
2016-05-19 17:50:09 -04:00
|
|
|
|
(define-public sicp
|
2017-12-24 18:55:20 -05:00
|
|
|
|
(let ((commit "225c172f9b859902a64a3c5dd5e1f9ac1a7382de"))
|
2016-05-19 17:50:09 -04:00
|
|
|
|
(package
|
|
|
|
|
(name "sicp")
|
2017-12-24 18:55:20 -05:00
|
|
|
|
(version (string-append "20170703-1." (string-take commit 7)))
|
2016-05-19 17:50:09 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/sarabander/sicp")
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2017-12-24 18:55:20 -05:00
|
|
|
|
"0bhdrdc1mgdjdsg4jksq9z6x129f3346jbf3zir2a0dfmsj6m10n"))
|
2016-05-19 17:50:09 -04:00
|
|
|
|
(file-name (string-append name "-" version "-checkout"))))
|
|
|
|
|
(build-system trivial-build-system)
|
|
|
|
|
(native-inputs `(("gzip" ,gzip)
|
|
|
|
|
("source" ,source)
|
|
|
|
|
("texinfo" ,texinfo)))
|
|
|
|
|
(arguments
|
2020-01-27 09:04:28 -05:00
|
|
|
|
`(#:modules ((guix build utils))
|
2016-05-19 17:50:09 -04:00
|
|
|
|
#:builder
|
|
|
|
|
(begin
|
|
|
|
|
(use-modules (guix build utils)
|
|
|
|
|
(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 02:56:34 -04:00
|
|
|
|
(html-dir (string-append %output "/share/doc/" ,name "/html"))
|
2016-05-19 17:50:09 -04:00
|
|
|
|
(info-dir (string-append %output "/share/info")))
|
2017-05-30 02:56:34 -04:00
|
|
|
|
(copy-recursively (string-append source "/html") html-dir)
|
2016-05-19 17:50:09 -04:00
|
|
|
|
(setenv "PATH" (string-append gzip "/bin"
|
|
|
|
|
":" texinfo "/bin"))
|
|
|
|
|
(mkdir-p info-dir)
|
2018-03-27 19:51:45 -04: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-24 20:05:47 -05:00
|
|
|
|
(home-page "https://sarabander.github.io/sicp")
|
2016-05-19 17:50:09 -04: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 11:01:34 -05:00
|
|
|
|
|
|
|
|
|
(define-public scheme48-rx
|
2017-12-24 18:58:10 -05:00
|
|
|
|
(let* ((commit "dd9037f6f9ea01019390614f6b126b7dd293798d")
|
|
|
|
|
(revision "2"))
|
2017-02-16 11:01:34 -05: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-24 18:58:10 -05:00
|
|
|
|
"1bvriavxw5kf2izjbil3999vr983vkk2xplfpinafr86m40b2cci"))
|
2017-02-16 11:01:34 -05: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-27 20:14:05 -04:00
|
|
|
|
(copy-recursively "." share)
|
|
|
|
|
#t))))
|
2017-02-16 11:01:34 -05: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 14:18:26 -05: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 10:39:45 -04:00
|
|
|
|
(string-append (assoc-ref outputs "out") "/bin"))
|
|
|
|
|
#t))
|
2017-02-26 14:18:26 -05:00
|
|
|
|
(replace 'configure
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
2018-06-26 10:39:45 -04:00
|
|
|
|
(invoke "./configure"
|
|
|
|
|
(string-append "--prefix="
|
|
|
|
|
(assoc-ref outputs "out"))))))))
|
2017-02-26 14:18:26 -05:00
|
|
|
|
(native-inputs `(("unzip" ,unzip)
|
|
|
|
|
("texinfo" ,texinfo)))
|
2020-01-18 19:42:17 -05:00
|
|
|
|
(home-page "https://people.csail.mit.edu/jaffer/SLIB.html")
|
2017-02-26 14:18:26 -05: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 14:22:11 -05:00
|
|
|
|
(define-public scm
|
|
|
|
|
(package
|
|
|
|
|
(name "scm")
|
2020-03-07 09:06:59 -05:00
|
|
|
|
(version "5f3")
|
2017-02-26 14:22:11 -05:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"http://groups.csail.mit.edu/mac/ftpdir/scm/scm-"
|
|
|
|
|
version ".zip"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-03-07 09:06:59 -05:00
|
|
|
|
"1jxxlhmgal26mpcl97kz37djkn97rfy9h5pvw0hah6f3f6w49j97"))))
|
2017-02-26 14:22:11 -05:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'configure
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
2018-06-26 11:42:41 -04:00
|
|
|
|
(invoke "./configure"
|
|
|
|
|
(string-append "--prefix="
|
|
|
|
|
(assoc-ref outputs "out")))))
|
2017-02-26 14:22:11 -05:00
|
|
|
|
(add-before 'build 'pre-build
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(substitute* "Makefile"
|
2018-06-26 11:42:41 -04:00
|
|
|
|
(("ginstall-info") "install-info"))
|
|
|
|
|
#t))
|
2017-02-26 14:22:11 -05: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 11:42:41 -04:00
|
|
|
|
(invoke "make" "scmlit" "CC=gcc")
|
|
|
|
|
(invoke "make" "all")))
|
2017-02-26 14:22:11 -05:00
|
|
|
|
(add-after 'install 'post-install
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
2018-06-26 11:42:41 -04: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 14:22:11 -05:00
|
|
|
|
(inputs `(("slib" ,slib)))
|
|
|
|
|
(native-inputs `(("unzip" ,unzip)
|
|
|
|
|
("texinfo" ,texinfo)))
|
2020-01-18 18:33:39 -05:00
|
|
|
|
(home-page "https://people.csail.mit.edu/jaffer/SCM")
|
2017-02-26 14:22:11 -05:00
|
|
|
|
(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-08 20:40:28 -05:00
|
|
|
|
|
|
|
|
|
(define-public tinyscheme
|
|
|
|
|
(package
|
|
|
|
|
(name "tinyscheme")
|
2020-10-19 14:49:28 -04:00
|
|
|
|
(version "1.42")
|
2018-03-08 20:40:28 -05:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://sourceforge/" name "/" name "/"
|
|
|
|
|
name "-" version "/" name "-" version ".zip"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-10-19 14:49:28 -04:00
|
|
|
|
"0rik3qnxqd8wjlazx8rw996pfzkjjg60v6hcbpcqzi7rgml8q4n8"))))
|
2018-03-08 20:40:28 -05:00
|
|
|
|
(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 14:29:23 -04: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
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 16:53:28 -04:00
|
|
|
|
(url "https://github.com/barak/stalin")
|
2018-06-22 14:29:23 -04:00
|
|
|
|
(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 09:11:37 -05:00
|
|
|
|
|
|
|
|
|
(define-public femtolisp
|
2020-01-03 19:33:40 -05:00
|
|
|
|
(let ((commit "ec7601076a976f845bc05ad6bd3ed5b8cde58a97")
|
|
|
|
|
(revision "2"))
|
2018-11-24 09:11:37 -05:00
|
|
|
|
(package
|
|
|
|
|
(name "femtolisp")
|
|
|
|
|
(version (string-append "0.0.0-" revision "." (string-take commit 7)))
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 16:53:28 -04:00
|
|
|
|
(url "https://github.com/JeffBezanson/femtolisp")
|
2018-11-24 09:11:37 -05:00
|
|
|
|
(commit commit)))
|
|
|
|
|
(file-name (string-append name "-" version "-checkout"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-01-03 19:33:40 -05:00
|
|
|
|
"1fcyiqlqn27nd4wxi27km8mhmlzpzzsxzpwsl1bxbmhraq468njw"))))
|
2018-11-24 09:11:37 -05:00
|
|
|
|
;; 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
|
2019-01-25 17:10:03 -05:00
|
|
|
|
(delete 'bootstrap)
|
2018-11-24 09:11:37 -05:00
|
|
|
|
(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")))
|
2019-01-25 17:10:03 -05:00
|
|
|
|
(invoke "./bootstrap.sh")
|
|
|
|
|
(install-file "flisp.boot" bin)
|
|
|
|
|
#t))))))
|
2018-11-24 09:11:37 -05:00
|
|
|
|
(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))))
|
2019-01-15 03:11:10 -05:00
|
|
|
|
|
|
|
|
|
(define-public gauche
|
|
|
|
|
(package
|
|
|
|
|
(name "gauche")
|
2020-12-23 04:35:34 -05:00
|
|
|
|
(version "0.9.10")
|
2020-01-18 17:06:36 -05:00
|
|
|
|
(home-page "https://practical-scheme.net/gauche/index.html")
|
2019-01-15 03:11:10 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"mirror://sourceforge/gauche/Gauche/Gauche-"
|
|
|
|
|
version ".tgz"))
|
|
|
|
|
(sha256
|
2020-12-23 04:35:34 -05:00
|
|
|
|
(base32 "0ci57ak5cp3lkmfy3nh50hifh8nbg58hh6r18asq0rn5mqfxyf8g"))
|
2019-01-15 03:11:10 -05:00
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet '(begin
|
2020-01-14 18:33:46 -05:00
|
|
|
|
;; Remove libatomic-ops.
|
2019-01-15 03:11:10 -05:00
|
|
|
|
(delete-file-recursively "gc/libatomic_ops")
|
|
|
|
|
#t))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("libatomic-ops" ,libatomic-ops)
|
2020-12-26 15:12:29 -05:00
|
|
|
|
("slib" ,slib)
|
2019-01-15 03:11:10 -05:00
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("texinfo" ,texinfo)
|
2020-01-14 18:33:46 -05:00
|
|
|
|
("openssl" ,openssl) ; needed for tests
|
|
|
|
|
("pkg-config" ,pkg-config))) ; needed to find external libatomic-ops
|
2019-01-15 03:11:10 -05:00
|
|
|
|
(arguments
|
2020-12-26 15:12:29 -05:00
|
|
|
|
`(#:configure-flags
|
|
|
|
|
(list (string-append "--with-slib="
|
|
|
|
|
(assoc-ref %build-inputs "slib")
|
|
|
|
|
"/lib/slib"))
|
|
|
|
|
#:phases
|
2019-01-15 03:11:10 -05:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'patch-/bin/sh
|
2020-01-14 18:33:46 -05:00
|
|
|
|
;; Needed only for tests.
|
2019-01-15 03:11:10 -05:00
|
|
|
|
(lambda _
|
2020-12-23 04:35:34 -05:00
|
|
|
|
(substitute* '("test/www.scm"
|
2019-01-15 03:11:10 -05:00
|
|
|
|
"ext/tls/test.scm"
|
|
|
|
|
"lib/gauche/package/util.scm"
|
2020-12-23 04:35:34 -05:00
|
|
|
|
"libsrc/gauche/process.scm")
|
2019-01-15 03:11:10 -05:00
|
|
|
|
(("/bin/sh") (which "sh")))
|
|
|
|
|
#t))
|
|
|
|
|
(add-after 'build 'build-doc
|
2019-01-17 02:24:30 -05:00
|
|
|
|
(lambda _
|
|
|
|
|
(with-directory-excursion "doc"
|
|
|
|
|
(invoke "make" "info"))
|
2019-01-15 03:11:10 -05:00
|
|
|
|
#t))
|
|
|
|
|
(add-before 'check 'patch-network-tests
|
2020-01-14 18:33:46 -05:00
|
|
|
|
;; Remove net checks.
|
2019-01-15 03:11:10 -05:00
|
|
|
|
(lambda _
|
2020-12-23 04:35:34 -05:00
|
|
|
|
(delete-file "ext/net/test.scm")
|
|
|
|
|
(invoke "touch" "ext/net/test.scm")
|
2019-01-15 03:11:10 -05:00
|
|
|
|
#t))
|
|
|
|
|
(add-after 'install 'install-docs
|
2019-01-17 02:24:30 -05:00
|
|
|
|
(lambda _
|
|
|
|
|
(with-directory-excursion "doc"
|
|
|
|
|
(invoke "make" "install"))
|
2019-01-15 03:11:10 -05:00
|
|
|
|
#t)))))
|
|
|
|
|
(synopsis "Scheme scripting engine")
|
|
|
|
|
(description "Gauche is a R7RS Scheme scripting engine aiming at being a
|
|
|
|
|
handy tool that helps programmers and system administrators to write small to
|
|
|
|
|
large scripts quickly. Quick startup, built-in system interface, native
|
|
|
|
|
multilingual support are some of the goals. Gauche comes with a package
|
|
|
|
|
manager/installer @code{gauche-package} which can download, compile, install
|
2019-01-17 02:24:30 -05:00
|
|
|
|
and list gauche extension packages.")
|
2019-01-15 03:11:10 -05:00
|
|
|
|
(license bsd-3)))
|
2020-06-19 09:35:29 -04:00
|
|
|
|
|
|
|
|
|
(define-public gerbil
|
|
|
|
|
(package
|
|
|
|
|
(name "gerbil")
|
|
|
|
|
(version "0.16")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/vyzo/gerbil")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0vng0kxpnwsg8jbjdpyn4sdww36jz7zfpfbzayg9sdpz6bjxjy0f"))))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'bootstrap)
|
|
|
|
|
(add-before 'configure 'chdir
|
|
|
|
|
(lambda _
|
|
|
|
|
(chdir "src")
|
|
|
|
|
#t))
|
|
|
|
|
(replace 'configure
|
|
|
|
|
(lambda* (#:key outputs inputs #:allow-other-keys)
|
|
|
|
|
(invoke "chmod" "755" "-R" ".")
|
|
|
|
|
;; Otherwise fails when editing an r--r--r-- file.
|
|
|
|
|
(invoke "gsi-script" "configure"
|
|
|
|
|
"--prefix" (assoc-ref outputs "out")
|
|
|
|
|
"--with-gambit" (assoc-ref inputs "gambit-c"))))
|
|
|
|
|
(add-before 'patch-generated-file-shebangs 'fix-gxi-shebangs
|
|
|
|
|
(lambda _
|
|
|
|
|
;; Some .ss files refer to gxi using /usr/bin/env gxi
|
|
|
|
|
;; and 'patch-generated-file-shebangs can't fix that
|
|
|
|
|
;; because gxi has not been compiled yet.
|
|
|
|
|
;; We know where gxi is going to end up so we
|
|
|
|
|
;; Doctor Who our fix here before the problem
|
|
|
|
|
;; happens towards the end of the build.sh script.
|
|
|
|
|
(let ((abs-srcdir (getcwd)))
|
|
|
|
|
(for-each
|
|
|
|
|
(lambda (f)
|
|
|
|
|
(substitute* f
|
|
|
|
|
(("#!/usr/bin/env gxi")
|
|
|
|
|
(string-append "#!" abs-srcdir "/../bin/gxi"))))
|
|
|
|
|
'("./gerbil/gxc"
|
|
|
|
|
"./lang/build.ss"
|
|
|
|
|
"./misc/http-perf/build.ss"
|
|
|
|
|
"./misc/rpc-perf/build.ss"
|
|
|
|
|
"./misc/scripts/docsnarf.ss"
|
|
|
|
|
"./misc/scripts/docstub.ss"
|
|
|
|
|
"./misc/scripts/docsyms.ss"
|
|
|
|
|
"./r7rs-large/build.ss"
|
|
|
|
|
"./release.ss"
|
|
|
|
|
"./std/build.ss"
|
|
|
|
|
"./std/run-tests.ss"
|
|
|
|
|
"./std/web/fastcgi-test.ss"
|
|
|
|
|
"./std/web/rack-test.ss"
|
|
|
|
|
"./tools/build.ss"
|
|
|
|
|
"./tutorial/httpd/build.ss"
|
|
|
|
|
"./tutorial/kvstore/build.ss"
|
|
|
|
|
"./tutorial/lang/build.ss"
|
|
|
|
|
"./tutorial/proxy/build-static.ss"
|
|
|
|
|
"./tutorial/proxy/build.ss")))
|
|
|
|
|
#t))
|
|
|
|
|
(replace
|
|
|
|
|
'build
|
|
|
|
|
(lambda*
|
|
|
|
|
(#:key inputs #:allow-other-keys)
|
|
|
|
|
(setenv "HOME" (getcwd))
|
|
|
|
|
(invoke
|
|
|
|
|
;; The build script needs a tty or it'll crash on an ioctl
|
|
|
|
|
;; trying to find the width of the terminal it's running on.
|
|
|
|
|
;; Calling in script prevents that.
|
|
|
|
|
"script"
|
|
|
|
|
"-qefc"
|
|
|
|
|
"./build.sh")))
|
|
|
|
|
(delete 'check)
|
|
|
|
|
(replace 'install
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(bin (string-append out "/bin"))
|
|
|
|
|
(lib (string-append out "/lib")))
|
|
|
|
|
(mkdir-p bin)
|
|
|
|
|
(mkdir-p lib)
|
|
|
|
|
(copy-recursively "../bin" bin)
|
|
|
|
|
(copy-recursively "../lib" lib)))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("coreutils" ,coreutils)
|
|
|
|
|
("util-linux" ,util-linux)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("gambit-c" ,gambit-c)
|
|
|
|
|
("zlib" ,zlib)
|
|
|
|
|
("openssl" ,openssl)
|
|
|
|
|
("sqlite" ,sqlite)))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(synopsis "Meta-dialect of Scheme with post-modern features")
|
|
|
|
|
(description "Gerbil is an opinionated dialect of Scheme designed for Systems
|
|
|
|
|
Programming, with a state of the art macro and module system on top of the Gambit
|
|
|
|
|
runtime. The macro system is based on quote-syntax, and provides the full meta-syntactic
|
|
|
|
|
tower with a native implementation of syntax-case. It also provides a full-blown module
|
|
|
|
|
system, similar to PLT Scheme's (sorry, Racket) modules. The main difference from Racket
|
|
|
|
|
is that Gerbil modules are single instantiation, supporting high performance ahead of
|
|
|
|
|
time compilation and compiled macros.")
|
|
|
|
|
(home-page "https://cons.io")
|
|
|
|
|
(license `(,lgpl2.1 ,asl2.0))))
|