2014-07-05 08:30:51 -04:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
|
;;; Copyright © 2014 John Darrington <jmd@gnu.org>
|
2015-02-11 18:15:02 -05:00
|
|
|
|
;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
|
2015-03-07 20:42:01 -05:00
|
|
|
|
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
|
2016-01-10 04:41:23 -05:00
|
|
|
|
;;; Copyright © 2016 Federico Beffa <beffa@fbengineering.ch>
|
Correct name and email address for ng0.
* .mailmap, Makefile.am, doc/guix.de.texi, doc/guix.fr.texi,
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/gnuzilla.scm, gnu/packages/gtk.scm,
gnu/packages/guile-wm.scm,gnu/packages/guile-xyz.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-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:
Correct name and email address for ng0.
Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
2019-03-14 05:33:38 -04:00
|
|
|
|
;;; Copyright © 2016, 2017 ng0 <ng0@n0.is>
|
2017-04-03 09:01:18 -04:00
|
|
|
|
;;; Copyright © 2016, 2017 Andy Patterson <ajpatter@uwaterloo.ca>
|
2019-02-04 06:07:51 -05:00
|
|
|
|
;;; Copyright © 2017, 2019 Ricardo Wurmus <rekado@elephly.net>
|
2019-11-28 08:38:40 -05:00
|
|
|
|
;;; Copyright © 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
|
2019-02-16 12:18:21 -05:00
|
|
|
|
;;; Copyright © 2017, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
|
2018-09-17 17:18:08 -04:00
|
|
|
|
;;; Copyright © 2018 Benjamin Slade <slade@jnanam.net>
|
2018-10-12 05:58:00 -04:00
|
|
|
|
;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
|
2019-12-09 06:20:48 -05:00
|
|
|
|
;;; Copyright © 2018, 2019 Pierre Neidhardt <mail@ambrevar.xyz>
|
2019-07-06 15:49:40 -04:00
|
|
|
|
;;; Copyright © 2018, 2019 Pierre Langlois <pierre.langlois@gmx.com>
|
2020-01-17 08:22:35 -05:00
|
|
|
|
;;; Copyright © 2019, 2020 Katherine Cox-Buday <cox.katherine.e@gmail.com>
|
2019-04-10 13:48:12 -04:00
|
|
|
|
;;; Copyright © 2019 Jesse Gildersleve <jessejohngildersleve@protonmail.com>
|
2020-01-10 19:23:50 -05:00
|
|
|
|
;;; Copyright © 2019, 2020 Guillaume Le Vaillant <glv@posteo.net>
|
2014-07-05 08:30:51 -04: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/>.
|
|
|
|
|
|
2019-11-28 15:37:28 -05:00
|
|
|
|
;;; This file only contains Common Lisp compilers and tooling.
|
|
|
|
|
;;; Common Lisp libraries go to lisp-xyz.scm.
|
|
|
|
|
;;; Common Lisp applications should go to the most appropriate file,
|
|
|
|
|
;;; e.g. StumpWM is in wm.scm.
|
|
|
|
|
|
2014-07-05 08:30:51 -04:00
|
|
|
|
(define-module (gnu packages lisp)
|
|
|
|
|
#:use-module (gnu packages)
|
Use #:prefix instead of #:renamer with 'symbol-prefix-proc'.
* gnu/packages/abiword.scm, gnu/packages/admin.scm, gnu/packages/aidc.scm,
gnu/packages/backup.scm, gnu/packages/bittorrent.scm,
gnu/packages/boost.scm, gnu/packages/compression.scm,
gnu/packages/cryptsetup.scm, gnu/packages/curl.scm,
gnu/packages/cyrus-sasl.scm, gnu/packages/dc.scm, gnu/packages/emacs.scm,
gnu/packages/fonts.scm, gnu/packages/fontutils.scm, gnu/packages/geeqie.scm,
gnu/packages/ghostscript.scm, gnu/packages/gimp.scm,
gnu/packages/gkrellm.scm, gnu/packages/gl.scm, gnu/packages/glib.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gnutls.scm, gnu/packages/gnuzilla.scm, gnu/packages/gsasl.scm,
gnu/packages/gtk.scm, gnu/packages/gv.scm, gnu/packages/image.scm,
gnu/packages/indent.scm, gnu/packages/inkscape.scm,
gnu/packages/lesstif.scm, gnu/packages/links.scm, gnu/packages/lisp.scm,
gnu/packages/lsh.scm, gnu/packages/lsof.scm, gnu/packages/maths.scm,
gnu/packages/mp3.scm, gnu/packages/openssl.scm, gnu/packages/ots.scm,
gnu/packages/pciutils.scm, gnu/packages/pcre.scm, gnu/packages/pdf.scm,
gnu/packages/pulseaudio.scm, gnu/packages/python.scm, gnu/packages/slim.scm,
gnu/packages/ssh.scm, gnu/packages/texlive.scm, gnu/packages/vim.scm,
gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wv.scm,
gnu/packages/xiph.scm, gnu/packages/xml.scm, gnu/packages/xorg.scm,
gnu/packages/yasm.scm, gnu/packages/zip.scm,
guix/build/cmake-build-system.scm, guix/build/perl-build-system.scm,
guix/build/python-build-system.scm, guix/download.scm: Replaces uses of
#:renamer and 'symbol-prefix-proc' with #:prefix.
2014-09-23 16:44:22 -04:00
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2014-07-05 08:30:51 -04:00
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix download)
|
2016-02-07 11:50:12 -05:00
|
|
|
|
#:use-module (guix git-download)
|
2014-07-05 08:30:51 -04:00
|
|
|
|
#:use-module (guix utils)
|
2015-02-11 18:15:02 -05:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2018-10-12 05:58:00 -04:00
|
|
|
|
#:use-module (guix build-system ant)
|
2016-10-02 22:41:30 -04:00
|
|
|
|
#:use-module (guix build-system asdf)
|
2016-10-07 04:07:49 -04:00
|
|
|
|
#:use-module (guix build-system trivial)
|
2018-10-09 13:30:35 -04:00
|
|
|
|
#:use-module (gnu packages admin)
|
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)
|
2018-10-09 13:30:35 -04:00
|
|
|
|
#:use-module (gnu packages bdw-gc)
|
2019-05-28 05:00:58 -04:00
|
|
|
|
#:use-module (gnu packages bison)
|
2017-02-14 13:56:44 -05:00
|
|
|
|
#:use-module (gnu packages compression)
|
2018-10-09 13:30:35 -04:00
|
|
|
|
#:use-module (gnu packages ed)
|
2019-05-28 05:00:58 -04:00
|
|
|
|
#:use-module (gnu packages flex)
|
2017-02-14 13:56:44 -05:00
|
|
|
|
#:use-module (gnu packages fontutils)
|
2018-10-09 13:30:35 -04:00
|
|
|
|
#:use-module (gnu packages gcc)
|
|
|
|
|
#:use-module (gnu packages gettext)
|
|
|
|
|
#:use-module (gnu packages gl)
|
|
|
|
|
#:use-module (gnu packages glib)
|
|
|
|
|
#:use-module (gnu packages m4)
|
2017-02-14 13:56:44 -05:00
|
|
|
|
#:use-module (gnu packages maths)
|
2015-02-11 18:15:02 -05:00
|
|
|
|
#:use-module (gnu packages multiprecision)
|
2017-10-03 15:46:40 -04:00
|
|
|
|
#:use-module (gnu packages ncurses)
|
2015-02-12 16:19:52 -05:00
|
|
|
|
#:use-module (gnu packages libffcall)
|
2018-10-09 13:30:35 -04:00
|
|
|
|
#:use-module (gnu packages libffi)
|
2015-02-14 13:04:12 -05:00
|
|
|
|
#:use-module (gnu packages libsigsegv)
|
2017-02-14 13:56:44 -05:00
|
|
|
|
#:use-module (gnu packages linux)
|
2018-10-09 13:30:35 -04:00
|
|
|
|
#:use-module (gnu packages perl)
|
|
|
|
|
#:use-module (gnu packages readline)
|
|
|
|
|
#:use-module (gnu packages sdl)
|
|
|
|
|
#:use-module (gnu packages tex)
|
2020-01-10 19:23:50 -05:00
|
|
|
|
#:use-module (gnu packages tls)
|
2018-10-09 13:30:35 -04:00
|
|
|
|
#:use-module (gnu packages texinfo)
|
2015-02-15 18:46:12 -05:00
|
|
|
|
#:use-module (gnu packages version-control)
|
2017-02-14 13:56:44 -05:00
|
|
|
|
#:use-module (gnu packages xorg)
|
2019-11-28 15:37:28 -05:00
|
|
|
|
#:use-module (ice-9 match))
|
2014-07-05 08:30:51 -04:00
|
|
|
|
|
2016-10-02 22:41:28 -04:00
|
|
|
|
(define (asdf-substitutions lisp)
|
|
|
|
|
;; Prepend XDG_DATA_DIRS/LISP-bundle-systems to ASDF's
|
|
|
|
|
;; 'default-system-source-registry'.
|
|
|
|
|
`((("\\(,dir \"systems/\"\\)\\)")
|
|
|
|
|
(format #f
|
|
|
|
|
"(,dir \"~a-bundle-systems\")))
|
|
|
|
|
|
|
|
|
|
,@(loop :for dir :in (xdg-data-dirs \"common-lisp/\")
|
|
|
|
|
:collect `(:directory (,dir \"systems\"))"
|
|
|
|
|
,lisp))))
|
|
|
|
|
|
2020-01-17 08:22:35 -05:00
|
|
|
|
(define-public cl-asdf
|
|
|
|
|
(package
|
|
|
|
|
(name "cl-asdf")
|
|
|
|
|
(version "3.3.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri
|
|
|
|
|
(string-append "https://common-lisp.net/project/asdf/archives/asdf-"
|
|
|
|
|
version ".lisp"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "18lr6kxvzhr79c9rx3sdricz30aby866fj0m24w27zxsqlyvn3rd"))))
|
|
|
|
|
(build-system trivial-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:modules ((guix build utils)
|
|
|
|
|
(guix build lisp-utils))
|
|
|
|
|
#:builder
|
|
|
|
|
(begin
|
|
|
|
|
(use-modules (guix build utils)
|
|
|
|
|
(guix build lisp-utils))
|
|
|
|
|
(let* ((out (string-append (assoc-ref %outputs "out")))
|
|
|
|
|
(asdf-install (string-append out %source-install-prefix
|
|
|
|
|
"/source/asdf/"))
|
|
|
|
|
(asdf (string-append (assoc-ref %build-inputs "source"))))
|
|
|
|
|
(mkdir-p asdf-install)
|
|
|
|
|
(copy-file asdf (string-append asdf-install "asdf.lisp"))))))
|
|
|
|
|
(home-page "https://common-lisp.net/project/asdf/")
|
|
|
|
|
(synopsis "Another System Definition Facility")
|
|
|
|
|
(description
|
|
|
|
|
"ASDF is what Common Lisp hackers use to build and load software. It is
|
|
|
|
|
the successor of the Lisp DEFSYSTEM of yore. ASDF stands for Another System
|
|
|
|
|
Definition Facility.")
|
|
|
|
|
;; MIT License
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
2014-07-05 08:30:51 -04:00
|
|
|
|
(define-public gcl
|
2018-12-08 19:36:16 -05:00
|
|
|
|
(let ((commit "d3335e2b3deb63f930eb0328e9b05377744c9512")
|
|
|
|
|
(revision "2")) ;Guix package revision
|
2017-11-22 13:47:33 -05:00
|
|
|
|
(package
|
|
|
|
|
(name "gcl")
|
|
|
|
|
(version (string-append "2.6.12-" revision "."
|
|
|
|
|
(string-take commit 7)))
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://git.savannah.gnu.org/r/gcl.git")
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(file-name (string-append "gcl-" version "-checkout"))
|
|
|
|
|
(sha256
|
2018-12-08 19:36:16 -05:00
|
|
|
|
(base32 "05v86lhvsby05nzvcd3c4k0wljvgdgd0i6arzd2fx1yd67dl6fgj"))))
|
2017-11-22 13:47:33 -05:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:parallel-build? #f ; The build system seems not to be thread safe.
|
2019-08-25 11:15:58 -04:00
|
|
|
|
#:test-target "ansi-tests/test_results"
|
2017-11-22 13:47:33 -05:00
|
|
|
|
#:configure-flags '("--enable-ansi") ; required for use by the maxima package
|
|
|
|
|
#:make-flags (list
|
|
|
|
|
(string-append "GCL_CC=" (assoc-ref %build-inputs "gcc")
|
|
|
|
|
"/bin/gcc")
|
|
|
|
|
(string-append "CC=" (assoc-ref %build-inputs "gcc")
|
|
|
|
|
"/bin/gcc"))
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'configure 'pre-conf
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(chdir "gcl")
|
|
|
|
|
(substitute*
|
|
|
|
|
(append
|
|
|
|
|
'("pcl/impl/kcl/makefile.akcl"
|
|
|
|
|
"add-defs"
|
|
|
|
|
"unixport/makefile.dos"
|
|
|
|
|
"add-defs.bat"
|
|
|
|
|
"gcl-tk/makefile.prev"
|
|
|
|
|
"add-defs1")
|
|
|
|
|
(find-files "h" "\\.defs"))
|
|
|
|
|
(("SHELL=/bin/bash")
|
|
|
|
|
(string-append "SHELL=" (which "bash")))
|
|
|
|
|
(("SHELL=/bin/sh")
|
|
|
|
|
(string-append "SHELL=" (which "sh"))))
|
|
|
|
|
(substitute* "h/linux.defs"
|
|
|
|
|
(("#CC") "CC")
|
|
|
|
|
(("-fwritable-strings") "")
|
|
|
|
|
(("-Werror") ""))
|
|
|
|
|
(substitute* "lsp/gcl_top.lsp"
|
|
|
|
|
(("\"cc\"")
|
|
|
|
|
(string-append "\"" (assoc-ref %build-inputs "gcc")
|
|
|
|
|
"/bin/gcc\""))
|
|
|
|
|
(("\\(or \\(get-path \\*cc\\*\\) \\*cc\\*\\)") "*cc*")
|
|
|
|
|
(("\"ld\"")
|
|
|
|
|
(string-append "\"" (assoc-ref %build-inputs "binutils")
|
|
|
|
|
"/bin/ld\""))
|
|
|
|
|
(("\\(or \\(get-path \\*ld\\*\\) \\*ld\\*\\)") "*ld*")
|
|
|
|
|
(("\\(get-path \"objdump --source \"\\)")
|
|
|
|
|
(string-append "\"" (assoc-ref %build-inputs "binutils")
|
|
|
|
|
"/bin/objdump --source \"")))
|
|
|
|
|
#t))
|
|
|
|
|
(add-after 'install 'wrap
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let* ((gcl (assoc-ref outputs "out"))
|
|
|
|
|
(input-path (lambda (lib path)
|
|
|
|
|
(string-append
|
|
|
|
|
(assoc-ref inputs lib) path)))
|
|
|
|
|
(binaries '("binutils")))
|
|
|
|
|
;; GCC and the GNU binutils are necessary for GCL to be
|
|
|
|
|
;; able to compile Lisp functions and programs (this is
|
|
|
|
|
;; a standard feature in Common Lisp). While the
|
|
|
|
|
;; the location of GCC is specified in the make-flags,
|
|
|
|
|
;; the GNU binutils must be available in GCL's $PATH.
|
|
|
|
|
(wrap-program (string-append gcl "/bin/gcl")
|
|
|
|
|
`("PATH" prefix ,(map (lambda (binary)
|
|
|
|
|
(input-path binary "/bin"))
|
|
|
|
|
binaries))))
|
|
|
|
|
#t))
|
|
|
|
|
;; drop strip phase to make maxima build, see
|
|
|
|
|
;; https://www.ma.utexas.edu/pipermail/maxima/2008/009769.html
|
|
|
|
|
(delete 'strip))))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("gmp" ,gmp)
|
|
|
|
|
("readline" ,readline)))
|
|
|
|
|
(native-inputs
|
2018-12-16 02:38:46 -05:00
|
|
|
|
`(("m4" ,m4)
|
2018-11-24 09:43:41 -05:00
|
|
|
|
("texinfo" ,texinfo)))
|
2017-11-22 13:47:33 -05:00
|
|
|
|
(home-page "https://www.gnu.org/software/gcl/")
|
|
|
|
|
(synopsis "A Common Lisp implementation")
|
|
|
|
|
(description "GCL is an implementation of the Common Lisp language. It
|
2014-07-05 08:30:51 -04:00
|
|
|
|
features the ability to compile to native object code and to load native
|
|
|
|
|
object code modules directly into its lisp core. It also features a
|
|
|
|
|
stratified garbage collection strategy, a source-level debugger and a built-in
|
|
|
|
|
interface to the Tk widget system.")
|
2017-11-22 13:47:33 -05:00
|
|
|
|
(license license:lgpl2.0+))))
|
2014-07-05 08:30:51 -04:00
|
|
|
|
|
2015-02-11 18:15:02 -05:00
|
|
|
|
(define-public ecl
|
|
|
|
|
(package
|
|
|
|
|
(name "ecl")
|
2017-03-11 19:10:56 -05:00
|
|
|
|
(version "16.1.3")
|
2015-02-11 18:15:02 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-07-24 21:05:37 -04:00
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://common-lisp.net/project/ecl/static/files/release/"
|
|
|
|
|
name "-" version ".tgz"))
|
2015-02-11 18:15:02 -05:00
|
|
|
|
(sha256
|
2020-01-17 10:44:48 -05:00
|
|
|
|
(base32 "0m0j24w5d5a9dwwqyrg0d35c0nys16ijb4r0nyk87yp82v38b9bn"))))
|
2015-02-11 18:15:02 -05:00
|
|
|
|
(build-system gnu-build-system)
|
2015-02-21 16:28:45 -05:00
|
|
|
|
;; src/configure uses 'which' to confirm the existence of 'gzip'.
|
2020-01-17 10:44:48 -05:00
|
|
|
|
(native-inputs `(("cl-asdf" ,cl-asdf)
|
|
|
|
|
("which" ,which)))
|
2015-02-11 18:15:02 -05:00
|
|
|
|
(inputs `(("gmp" ,gmp)
|
|
|
|
|
("libatomic-ops" ,libatomic-ops)
|
|
|
|
|
("libgc" ,libgc)
|
|
|
|
|
("libffi" ,libffi)))
|
|
|
|
|
(arguments
|
2020-01-17 10:44:48 -05:00
|
|
|
|
`(#:configure-flags '("--without-rt")
|
2019-10-03 05:01:11 -04:00
|
|
|
|
#:tests? #t
|
2016-07-24 21:05:38 -04:00
|
|
|
|
#:parallel-tests? #f
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'check)
|
2020-01-17 10:44:48 -05:00
|
|
|
|
(add-after 'unpack 'replace-asdf
|
|
|
|
|
;; Use system ASDF instead of bundled one.
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let* ((cl-asdf (assoc-ref inputs "cl-asdf"))
|
|
|
|
|
(guix-asdf (string-append
|
|
|
|
|
cl-asdf
|
|
|
|
|
"/share/common-lisp/source/asdf/asdf.lisp"))
|
|
|
|
|
(out (string-append (assoc-ref outputs "out")))
|
|
|
|
|
(contrib-asdf "contrib/asdf/asdf.lisp"))
|
|
|
|
|
(copy-file guix-asdf contrib-asdf)
|
|
|
|
|
;; Add ecl-bundle-systems to 'default-system-source-registry'.
|
|
|
|
|
(substitute* contrib-asdf
|
|
|
|
|
,@(asdf-substitutions name)))
|
|
|
|
|
#t))
|
2016-07-24 21:05:39 -04:00
|
|
|
|
(add-after 'install 'wrap
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let* ((ecl (assoc-ref outputs "out"))
|
|
|
|
|
(input-path (lambda (lib path)
|
|
|
|
|
(string-append
|
|
|
|
|
(assoc-ref inputs lib) path)))
|
|
|
|
|
(libraries '("gmp" "libatomic-ops" "libgc" "libffi" "libc"))
|
|
|
|
|
(binaries '("gcc" "ld-wrapper" "binutils"))
|
|
|
|
|
(library-directories
|
|
|
|
|
(map (lambda (lib) (input-path lib "/lib"))
|
|
|
|
|
libraries)))
|
|
|
|
|
|
|
|
|
|
(wrap-program (string-append ecl "/bin/ecl")
|
|
|
|
|
`("PATH" prefix
|
|
|
|
|
,(map (lambda (binary)
|
|
|
|
|
(input-path binary "/bin"))
|
|
|
|
|
binaries))
|
|
|
|
|
`("CPATH" suffix
|
|
|
|
|
,(map (lambda (lib)
|
|
|
|
|
(input-path lib "/include"))
|
2016-07-31 13:21:07 -04:00
|
|
|
|
`("kernel-headers" ,@libraries)))
|
2016-07-24 21:05:39 -04:00
|
|
|
|
`("LIBRARY_PATH" suffix ,library-directories)
|
|
|
|
|
`("LD_LIBRARY_PATH" suffix ,library-directories)))))
|
2017-03-11 19:10:56 -05:00
|
|
|
|
(add-after 'wrap 'check (assoc-ref %standard-phases 'check))
|
|
|
|
|
(add-before 'check 'fix-path-to-ecl
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "build/tests/Makefile"
|
|
|
|
|
(("\\$\\{exec_prefix\\}/") ""))
|
|
|
|
|
#t)))))
|
2016-10-02 22:41:29 -04:00
|
|
|
|
(native-search-paths
|
|
|
|
|
(list (search-path-specification
|
|
|
|
|
(variable "XDG_DATA_DIRS")
|
|
|
|
|
(files '("share")))))
|
2015-02-11 18:15:02 -05:00
|
|
|
|
(home-page "http://ecls.sourceforge.net/")
|
|
|
|
|
(synopsis "Embeddable Common Lisp")
|
|
|
|
|
(description "ECL is an implementation of the Common Lisp language as
|
|
|
|
|
defined by the ANSI X3J13 specification. Its most relevant features are: a
|
|
|
|
|
bytecode compiler and interpreter, being able to compile Common Lisp with any
|
|
|
|
|
C/C++ compiler, being able to build standalone executables and libraries, and
|
|
|
|
|
supporting ASDF, Sockets, Gray streams, MOP, and other useful components.")
|
|
|
|
|
;; Note that the file "Copyright" points to some files and directories
|
|
|
|
|
;; which aren't under the lgpl2.0+ and instead contain many different,
|
|
|
|
|
;; non-copyleft licenses.
|
|
|
|
|
(license license:lgpl2.0+)))
|
2015-02-12 16:19:52 -05:00
|
|
|
|
|
|
|
|
|
(define-public clisp
|
|
|
|
|
(package
|
|
|
|
|
(name "clisp")
|
2018-10-09 13:27:37 -04:00
|
|
|
|
(version "2.49-92")
|
2015-02-12 16:19:52 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
2018-10-09 13:27:37 -04:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://gitlab.com/gnu-clisp/clisp")
|
|
|
|
|
(commit "clisp-2.49.92-2018-02-18")))
|
|
|
|
|
(file-name (git-file-name name version))
|
2015-02-12 16:19:52 -05:00
|
|
|
|
(sha256
|
2018-10-09 13:27:37 -04:00
|
|
|
|
(base32 "0k2dmgl0miz3767iks4p0mvp6xw0ysyxhjpklyh11j010rmh6hqb"))
|
|
|
|
|
(patches (search-patches "clisp-remove-failing-test.patch"))))
|
2015-02-12 16:19:52 -05:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(inputs `(("libffcall" ,libffcall)
|
2017-10-03 15:46:40 -04:00
|
|
|
|
("ncurses" ,ncurses)
|
|
|
|
|
("readline" ,readline)
|
2015-02-12 16:19:52 -05:00
|
|
|
|
("libsigsegv" ,libsigsegv)))
|
|
|
|
|
(arguments
|
2018-10-09 13:27:37 -04:00
|
|
|
|
`(#:configure-flags '(,@(if (string-prefix? "armhf-linux"
|
|
|
|
|
(or (%current-system)
|
|
|
|
|
(%current-target-system)))
|
|
|
|
|
'("CFLAGS=-falign-functions=4")
|
|
|
|
|
'())
|
|
|
|
|
"--with-dynamic-ffi"
|
|
|
|
|
"--with-dynamic-modules"
|
|
|
|
|
"--with-module=rawsock")
|
2015-07-17 18:33:05 -04:00
|
|
|
|
#:build #f
|
|
|
|
|
#:phases
|
2017-01-01 05:12:29 -05:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'patch-sh-and-pwd
|
|
|
|
|
(lambda _
|
|
|
|
|
;; The package is very messy with its references to "/bin/sh" and
|
|
|
|
|
;; some other absolute paths to traditional tools. These appear in
|
|
|
|
|
;; many places where our automatic patching misses them. Therefore
|
|
|
|
|
;; we do the following, in this early (post-unpack) phase, to solve
|
|
|
|
|
;; the problem from its root.
|
2018-10-09 13:27:37 -04:00
|
|
|
|
(substitute* '("src/clisp-link.in"
|
|
|
|
|
"src/unix.d"
|
|
|
|
|
"src/makemake.in")
|
|
|
|
|
(("/bin/sh") (which "sh")))
|
2017-01-01 05:12:29 -05:00
|
|
|
|
(substitute* (find-files "." "configure|Makefile")
|
|
|
|
|
(("/bin/sh") "sh"))
|
|
|
|
|
(substitute* '("src/clisp-link.in")
|
|
|
|
|
(("/bin/pwd") "pwd"))
|
|
|
|
|
#t)))
|
2015-02-12 16:19:52 -05:00
|
|
|
|
;; Makefiles seem to have race conditions.
|
|
|
|
|
#:parallel-build? #f))
|
2018-10-09 13:27:37 -04:00
|
|
|
|
(home-page "https://clisp.sourceforge.io/")
|
2015-02-24 17:12:16 -05:00
|
|
|
|
(synopsis "A Common Lisp implementation")
|
|
|
|
|
(description
|
|
|
|
|
"GNU CLISP is an implementation of ANSI Common Lisp. Common Lisp is a
|
|
|
|
|
high-level, object-oriented functional programming language. CLISP includes
|
|
|
|
|
an interpreter, a compiler, a debugger, and much more.")
|
2018-03-25 02:37:55 -04:00
|
|
|
|
(license license:gpl2+)))
|
2015-02-14 13:04:12 -05:00
|
|
|
|
|
2020-01-03 09:19:49 -05:00
|
|
|
|
(define-public sbcl
|
2015-02-14 13:04:12 -05:00
|
|
|
|
(package
|
2020-01-03 09:19:49 -05:00
|
|
|
|
(name "sbcl")
|
2020-01-03 09:41:52 -05:00
|
|
|
|
(version "2.0.0")
|
2015-02-14 13:04:12 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://sourceforge/sbcl/sbcl/" version "/sbcl-"
|
|
|
|
|
version "-source.tar.bz2"))
|
|
|
|
|
(sha256
|
2020-01-17 09:28:42 -05:00
|
|
|
|
(base32 "1krgd69cirp4ili2pfsh1a0mfvq722jbknlvmf17qhsxh1b94dlh"))))
|
2015-02-14 13:04:12 -05:00
|
|
|
|
(build-system gnu-build-system)
|
2016-01-10 04:41:23 -05:00
|
|
|
|
(outputs '("out" "doc"))
|
2015-02-14 13:04:12 -05:00
|
|
|
|
(native-inputs
|
2018-11-24 12:34:22 -05:00
|
|
|
|
;; From INSTALL:
|
|
|
|
|
;; Supported build hosts are:
|
|
|
|
|
;; SBCL
|
|
|
|
|
;; CMUCL
|
|
|
|
|
;; CCL (formerly known as OpenMCL)
|
|
|
|
|
;; ABCL (recent versions only)
|
|
|
|
|
;; CLISP (only some versions: 2.44.1 is OK, 2.47 is not)
|
|
|
|
|
;; XCL
|
2019-09-05 05:41:35 -04:00
|
|
|
|
;;
|
|
|
|
|
;; From NEWS:
|
|
|
|
|
;; * build enhancement: new host quirks mechanism, support for building under
|
|
|
|
|
;; ABCL and ECL (as well as CCL, CMUCL, CLISP and SBCL itself)
|
|
|
|
|
;;
|
|
|
|
|
;; CCL is not bootstrappable so it won't do. CLISP 2.49 seems to work.
|
|
|
|
|
;; ECL too. ECL builds SBCL about 20% slower than CLISP. As of
|
2019-12-09 06:20:48 -05:00
|
|
|
|
;; 2019-09-05, ECL was last updated in 2016 while CLISP was last updated
|
2019-09-05 05:41:35 -04:00
|
|
|
|
;; in 2010.
|
|
|
|
|
;;
|
2020-01-03 09:19:49 -05:00
|
|
|
|
;; For now we stick to CLISP for all systems. We keep the `match' here to
|
|
|
|
|
;; make it easier to change the host compiler for various architectures.
|
|
|
|
|
`(,@(match (%current-system)
|
|
|
|
|
((or "x86_64-linux" "i686-linux")
|
|
|
|
|
`(("clisp" ,clisp)))
|
|
|
|
|
(_
|
|
|
|
|
`(("clisp" ,clisp))))
|
2020-01-17 09:28:42 -05:00
|
|
|
|
("cl-asdf" ,cl-asdf)
|
2016-01-10 04:41:23 -05:00
|
|
|
|
("ed" ,ed)
|
2020-01-17 09:28:42 -05:00
|
|
|
|
("inetutils" ,inetutils) ;for hostname(1)
|
2019-08-24 12:25:53 -04:00
|
|
|
|
("texinfo" ,texinfo)
|
2020-01-17 09:28:42 -05:00
|
|
|
|
("texlive" ,(texlive-union (list texlive-tex-texinfo)))
|
|
|
|
|
("which" ,which)
|
2019-08-24 12:25:53 -04:00
|
|
|
|
("zlib" ,zlib)))
|
2015-02-14 13:04:12 -05:00
|
|
|
|
(arguments
|
2018-11-29 04:54:57 -05:00
|
|
|
|
`(#:modules ((guix build gnu-build-system)
|
2017-05-08 15:55:49 -04:00
|
|
|
|
(guix build utils)
|
|
|
|
|
(srfi srfi-1))
|
|
|
|
|
#:phases
|
2015-12-31 12:36:52 -05:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)
|
2020-01-17 09:28:42 -05:00
|
|
|
|
(add-after 'unpack 'replace-asdf
|
|
|
|
|
;; SBCL developers have not committed to keeping ASDF up to date
|
|
|
|
|
;; due to breaking changes [1]. Guix can handle this situation
|
|
|
|
|
;; easily, and it behooves us to have more control over what version
|
|
|
|
|
;; of ASDF we use to build software; therefore, replace the contrib
|
|
|
|
|
;; ASDF with the version packaged into Guix.
|
|
|
|
|
;; [1] - https://bugs.launchpad.net/sbcl/+bug/1823442
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let* ((cl-asdf (assoc-ref inputs "cl-asdf"))
|
|
|
|
|
(guix-asdf (string-append
|
|
|
|
|
cl-asdf
|
|
|
|
|
"/share/common-lisp/source/asdf/asdf.lisp"))
|
|
|
|
|
(out (string-append (assoc-ref outputs "out")))
|
|
|
|
|
(contrib-asdf "contrib/asdf/asdf.lisp"))
|
|
|
|
|
(copy-file guix-asdf contrib-asdf)
|
|
|
|
|
(substitute* contrib-asdf
|
|
|
|
|
,@(asdf-substitutions name)))
|
|
|
|
|
#t))
|
2015-12-31 12:36:52 -05:00
|
|
|
|
(add-before 'build 'patch-unix-tool-paths
|
|
|
|
|
(lambda* (#:key outputs inputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out"))
|
|
|
|
|
(bash (assoc-ref inputs "bash"))
|
|
|
|
|
(coreutils (assoc-ref inputs "coreutils"))
|
|
|
|
|
(ed (assoc-ref inputs "ed")))
|
|
|
|
|
(define (quoted-path input path)
|
|
|
|
|
(string-append "\"" input path "\""))
|
|
|
|
|
;; Patch absolute paths in string literals. Note that this
|
|
|
|
|
;; occurs in some .sh files too (which contain Lisp code). Use
|
|
|
|
|
;; ISO-8859-1 because some of the files are ISO-8859-1 encoded.
|
|
|
|
|
(with-fluids ((%default-port-encoding #f))
|
2016-07-24 09:29:28 -04:00
|
|
|
|
;; The removed file is utf-16-be encoded, which gives substitute*
|
|
|
|
|
;; trouble. It does not contain references to the listed programs.
|
|
|
|
|
(substitute* (delete
|
|
|
|
|
"./tests/data/compile-file-pos-utf16be.lisp"
|
|
|
|
|
(find-files "." "\\.(lisp|sh)$"))
|
2015-12-31 12:36:52 -05:00
|
|
|
|
(("\"/bin/sh\"") (quoted-path bash "/bin/sh"))
|
|
|
|
|
(("\"/usr/bin/env\"") (quoted-path coreutils "/usr/bin/env"))
|
|
|
|
|
(("\"/bin/cat\"") (quoted-path coreutils "/bin/cat"))
|
|
|
|
|
(("\"/bin/ed\"") (quoted-path ed "/bin/ed"))
|
|
|
|
|
(("\"/bin/echo\"") (quoted-path coreutils "/bin/echo"))
|
|
|
|
|
(("\"/bin/uname\"") (quoted-path coreutils "/bin/uname"))))
|
|
|
|
|
;; This one script has a non-string occurrence of /bin/sh.
|
|
|
|
|
(substitute* '("tests/foreign.test.sh")
|
|
|
|
|
;; Leave whitespace so we don't match the shebang.
|
|
|
|
|
((" /bin/sh ") " sh "))
|
|
|
|
|
;; This file contains a module that can create executable files
|
|
|
|
|
;; which depend on the presence of SBCL. It generates shell
|
|
|
|
|
;; scripts doing "exec sbcl ..." to achieve this. We patch both
|
|
|
|
|
;; the shebang and the reference to "sbcl", tying the generated
|
|
|
|
|
;; executables to the exact SBCL package that generated them.
|
|
|
|
|
(substitute* '("contrib/sb-executable/sb-executable.lisp")
|
|
|
|
|
(("/bin/sh") (string-append bash "/bin/sh"))
|
|
|
|
|
(("exec sbcl") (string-append "exec " out "/bin/sbcl")))
|
|
|
|
|
;; Disable some tests that fail in our build environment.
|
|
|
|
|
(substitute* '("contrib/sb-bsd-sockets/tests.lisp")
|
|
|
|
|
;; This requires /etc/protocols.
|
|
|
|
|
(("\\(deftest get-protocol-by-name/error" all)
|
|
|
|
|
(string-append "#+nil ;disabled by Guix\n" all)))
|
|
|
|
|
(substitute* '("contrib/sb-posix/posix-tests.lisp")
|
|
|
|
|
;; These assume some users/groups which we don't have.
|
|
|
|
|
(("\\(deftest pwent\\.[12]" all)
|
|
|
|
|
(string-append "#+nil ;disabled by Guix\n" all))
|
|
|
|
|
(("\\(deftest grent\\.[12]" all)
|
2019-12-09 06:20:48 -05:00
|
|
|
|
(string-append "#+nil ;disabled by Guix\n" all))))
|
|
|
|
|
#t))
|
2018-11-24 12:34:22 -05: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-31 12:36:52 -05:00
|
|
|
|
(replace 'build
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(setenv "CC" "gcc")
|
2020-01-03 09:19:49 -05:00
|
|
|
|
(invoke "sh" "make.sh" ,@(match (%current-system)
|
|
|
|
|
((or "x86_64-linux" "i686-linux")
|
|
|
|
|
`("clisp"))
|
|
|
|
|
(_
|
|
|
|
|
`("clisp")))
|
2018-11-24 12:34:22 -05:00
|
|
|
|
(string-append "--prefix="
|
2019-08-24 12:25:53 -04:00
|
|
|
|
(assoc-ref outputs "out"))
|
|
|
|
|
"--with-sb-core-compression"
|
|
|
|
|
"--with-sb-xref-for-internals")))
|
2015-12-31 12:36:52 -05:00
|
|
|
|
(replace 'install
|
2015-02-14 13:04:12 -05:00
|
|
|
|
(lambda _
|
2018-11-24 12:34:22 -05:00
|
|
|
|
(invoke "sh" "install.sh")))
|
2016-01-10 04:41:23 -05:00
|
|
|
|
(add-after 'build 'build-doc
|
|
|
|
|
(lambda _
|
2019-12-09 06:20:48 -05:00
|
|
|
|
;; TODO: Doc is not deterministic, maybe there is a timespamp?
|
2016-01-10 04:41:23 -05:00
|
|
|
|
(with-directory-excursion "doc/manual"
|
2018-11-24 12:34:22 -05:00
|
|
|
|
(and (invoke "make" "info")
|
|
|
|
|
(invoke "make" "dist")))))
|
2019-08-25 06:28:28 -04:00
|
|
|
|
(add-after 'build 'build-source
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(rc (string-append out "/lib/sbcl/sbclrc"))
|
|
|
|
|
(source-dir (string-append out "/share/sbcl")))
|
|
|
|
|
(for-each (lambda (p)
|
|
|
|
|
(copy-recursively p (string-append source-dir "/" p)))
|
|
|
|
|
'("src" "contrib"))
|
|
|
|
|
(mkdir-p (dirname rc))
|
|
|
|
|
(with-output-to-file rc
|
|
|
|
|
(lambda ()
|
|
|
|
|
(display
|
|
|
|
|
(string-append "(sb-ext:set-sbcl-source-location \""
|
|
|
|
|
source-dir "\")") )))
|
|
|
|
|
#t)))
|
2016-01-10 04:41:23 -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/sbcl-dir (string-append doc "/share/doc/sbcl")))
|
|
|
|
|
(rmdir (string-append old-doc-dir "/sbcl/html"))
|
|
|
|
|
(mkdir-p new-doc/sbcl-dir)
|
|
|
|
|
(copy-recursively (string-append old-doc-dir "/sbcl")
|
|
|
|
|
new-doc/sbcl-dir)
|
|
|
|
|
(delete-file-recursively old-doc-dir)
|
|
|
|
|
#t))))
|
2020-01-17 09:28:42 -05:00
|
|
|
|
;; No 'check' target, though "make.sh" (build phase) runs tests.
|
|
|
|
|
#:tests? #f))
|
2016-10-02 22:41:28 -04:00
|
|
|
|
(native-search-paths
|
|
|
|
|
(list (search-path-specification
|
|
|
|
|
(variable "XDG_DATA_DIRS")
|
|
|
|
|
(files '("share")))))
|
2015-02-14 13:04:12 -05:00
|
|
|
|
(home-page "http://www.sbcl.org/")
|
|
|
|
|
(synopsis "Common Lisp implementation")
|
|
|
|
|
(description "Steel Bank Common Lisp (SBCL) is a high performance Common
|
|
|
|
|
Lisp compiler. In addition to the compiler and runtime system for ANSI Common
|
|
|
|
|
Lisp, it provides an interactive environment including a debugger, a
|
|
|
|
|
statistical profiler, a code coverage tool, and many other extensions.")
|
|
|
|
|
;; Public domain in jurisdictions that allow it, bsd-2 otherwise. MIT
|
|
|
|
|
;; loop macro has its own license. See COPYING file for further notes.
|
|
|
|
|
(license (list license:public-domain license:bsd-2
|
|
|
|
|
(license:x11-style "file://src/code/loop.lisp")))))
|
2015-02-15 18:46:12 -05:00
|
|
|
|
|
|
|
|
|
(define-public ccl
|
2019-09-05 05:41:35 -04:00
|
|
|
|
;; Warning: according to upstream, CCL is not bootstrappable.
|
|
|
|
|
;; See https://github.com/Clozure/ccl/issues/222 from 2019-09-02:
|
|
|
|
|
;;
|
|
|
|
|
;; "As far as I know, there is no way to build CCL without an existing
|
|
|
|
|
;; running CCL image. It was bootstrapped back in 1986 or so as
|
|
|
|
|
;; Macintosh Common Lisp, by Gary Byers, I believe, who is no longer on
|
|
|
|
|
;; the planet to tell us the story. It SHOULD be possible to port the
|
|
|
|
|
;; CCL compiler to portable Common Lisp, so that ANY lisp could build
|
|
|
|
|
;; it, as is the case for SBCL, but I know of no attempt to do so."
|
2015-02-15 18:46:12 -05:00
|
|
|
|
(package
|
|
|
|
|
(name "ccl")
|
2018-02-18 22:08:15 -05:00
|
|
|
|
(version "1.11.5")
|
2015-02-15 18:46:12 -05:00
|
|
|
|
(source #f)
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
;; CCL consists of a "lisp kernel" and "heap image", both of which are
|
|
|
|
|
;; shipped in precompiled form in source tarballs. The former is a C
|
|
|
|
|
;; program which we can rebuild from scratch, but the latter cannot be
|
|
|
|
|
;; generated without an already working copy of CCL, and is platform
|
|
|
|
|
;; dependent, so we need to fetch the correct tarball for the platform.
|
|
|
|
|
(inputs
|
|
|
|
|
`(("ccl"
|
|
|
|
|
,(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
2018-02-18 22:08:15 -05:00
|
|
|
|
"https://github.com/Clozure/ccl/releases/download/v" version
|
2016-02-10 20:00:08 -05:00
|
|
|
|
"/ccl-" version "-"
|
2015-02-15 18:46:12 -05:00
|
|
|
|
(match (%current-system)
|
|
|
|
|
((or "i686-linux" "x86_64-linux") "linuxx86")
|
2015-04-19 09:55:01 -04:00
|
|
|
|
("armhf-linux" "linuxarm")
|
|
|
|
|
;; Prevent errors when querying this package on unsupported
|
|
|
|
|
;; platforms, e.g. when running "guix package --search="
|
|
|
|
|
(_ "UNSUPPORTED"))
|
2015-02-15 18:46:12 -05:00
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
(match (%current-system)
|
|
|
|
|
((or "i686-linux" "x86_64-linux")
|
2018-02-18 22:08:15 -05:00
|
|
|
|
"0hs1f3z7crgzvinpj990kv9gvbsipxvcvwbmk54n51nasvc5025q")
|
2015-04-19 09:55:01 -04:00
|
|
|
|
("armhf-linux"
|
2018-02-18 22:08:15 -05:00
|
|
|
|
"0p0l1dzsygb6i1xxgbipjpxkn46xhq3jm41a34ga1qqp4x8lkr62")
|
2015-04-19 09:55:01 -04:00
|
|
|
|
(_ ""))))))))
|
2015-02-15 18:46:12 -05:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("m4" ,m4)
|
|
|
|
|
("subversion" ,subversion)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ;no 'check' target
|
2017-03-15 22:12:10 -04:00
|
|
|
|
#:modules ((srfi srfi-26)
|
|
|
|
|
(guix build utils)
|
|
|
|
|
(guix build gnu-build-system))
|
2015-02-15 18:46:12 -05:00
|
|
|
|
#: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 11:28:42 -04:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'unpack
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
2019-01-25 06:26:51 -05:00
|
|
|
|
(invoke "tar" "xzvf" (assoc-ref inputs "ccl"))
|
|
|
|
|
(chdir "ccl")
|
|
|
|
|
#t))
|
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 11:28:42 -04:00
|
|
|
|
(delete 'configure)
|
|
|
|
|
(add-before 'build 'pre-build
|
|
|
|
|
;; Enter the source directory for the current platform's lisp
|
|
|
|
|
;; kernel, and run 'make clean' to remove the precompiled one.
|
|
|
|
|
(lambda _
|
2018-02-28 15:10:47 -05:00
|
|
|
|
(substitute* "lisp-kernel/m4macros.m4"
|
|
|
|
|
(("/bin/pwd") (which "pwd")))
|
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 11:28:42 -04:00
|
|
|
|
(chdir (string-append
|
|
|
|
|
"lisp-kernel/"
|
|
|
|
|
,(match (or (%current-target-system) (%current-system))
|
|
|
|
|
("i686-linux" "linuxx8632")
|
|
|
|
|
("x86_64-linux" "linuxx8664")
|
|
|
|
|
("armhf-linux" "linuxarm")
|
|
|
|
|
;; Prevent errors when querying this package
|
|
|
|
|
;; on unsupported platforms, e.g. when running
|
|
|
|
|
;; "guix package --search="
|
|
|
|
|
(_ "UNSUPPORTED"))))
|
|
|
|
|
(substitute* '("Makefile")
|
|
|
|
|
(("/bin/rm") "rm"))
|
|
|
|
|
(setenv "CC" "gcc")
|
2019-01-25 06:26:51 -05:00
|
|
|
|
(invoke "make" "clean")))
|
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 11:28:42 -04:00
|
|
|
|
;; XXX Do we need to recompile the heap image as well for Guix?
|
|
|
|
|
;; For now just use the one we already got in the tarball.
|
|
|
|
|
(replace 'install
|
2015-02-15 18:46:12 -05:00
|
|
|
|
(lambda* (#:key outputs inputs #:allow-other-keys)
|
|
|
|
|
;; The lisp kernel built by running 'make' in lisp-kernel/$system
|
|
|
|
|
;; is put back into the original directory, so go back. The heap
|
|
|
|
|
;; image is there as well.
|
|
|
|
|
(chdir "../..")
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(libdir (string-append out "/lib/"))
|
|
|
|
|
(bindir (string-append out "/bin/"))
|
|
|
|
|
(wrapper (string-append bindir "ccl"))
|
|
|
|
|
(bash (assoc-ref inputs "bash"))
|
|
|
|
|
(kernel
|
|
|
|
|
,(match (or (%current-target-system) (%current-system))
|
2015-04-21 23:25:12 -04:00
|
|
|
|
("i686-linux" "lx86cl")
|
2015-02-15 18:46:12 -05:00
|
|
|
|
("x86_64-linux" "lx86cl64")
|
2015-04-21 23:25:12 -04:00
|
|
|
|
("armhf-linux" "armcl")
|
|
|
|
|
;; Prevent errors when querying this package
|
|
|
|
|
;; on unsupported platforms, e.g. when running
|
|
|
|
|
;; "guix package --search="
|
|
|
|
|
(_ "UNSUPPORTED")))
|
2015-02-15 18:46:12 -05:00
|
|
|
|
(heap (string-append kernel ".image")))
|
2017-03-15 22:12:10 -04:00
|
|
|
|
(install-file kernel libdir)
|
|
|
|
|
(install-file heap libdir)
|
|
|
|
|
|
2018-11-22 05:42:01 -05:00
|
|
|
|
(let ((dirs '("lib" "library" "examples" "tools" "objc-bridge"
|
|
|
|
|
,@(match (%current-system)
|
|
|
|
|
("x86_64-linux"
|
|
|
|
|
'("x86-headers64"))
|
|
|
|
|
("i686-linux"
|
|
|
|
|
'("x86-headers"))
|
|
|
|
|
(_ '())))))
|
2017-03-15 22:12:10 -04:00
|
|
|
|
(for-each copy-recursively
|
|
|
|
|
dirs
|
|
|
|
|
(map (cut string-append libdir <>) dirs)))
|
|
|
|
|
|
2015-02-15 18:46:12 -05:00
|
|
|
|
(mkdir-p bindir)
|
|
|
|
|
(with-output-to-file wrapper
|
|
|
|
|
(lambda ()
|
|
|
|
|
(display
|
|
|
|
|
(string-append
|
|
|
|
|
"#!" bash "/bin/sh\n"
|
2018-11-22 13:39:07 -05:00
|
|
|
|
"export CCL_DEFAULT_DIRECTORY=" libdir "\n"
|
|
|
|
|
"exec -a \"$0\" " libdir kernel " \"$@\"\n"))))
|
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 11:28:42 -04:00
|
|
|
|
(chmod wrapper #o755))
|
|
|
|
|
#t)))))
|
2015-02-15 18:46:12 -05:00
|
|
|
|
(supported-systems '("i686-linux" "x86_64-linux" "armhf-linux"))
|
2018-11-22 05:42:01 -05:00
|
|
|
|
(home-page "https://ccl.clozure.com/")
|
2015-02-15 18:46:12 -05:00
|
|
|
|
(synopsis "Common Lisp implementation")
|
|
|
|
|
(description "Clozure CL (often called CCL for short) is a Common Lisp
|
|
|
|
|
implementation featuring fast compilation speed, native threads, a precise,
|
|
|
|
|
generational, compacting garbage collector, and a convenient foreign-function
|
|
|
|
|
interface.")
|
|
|
|
|
;; See file doc/LICENSE for clarifications it makes regarding how the LGPL
|
|
|
|
|
;; applies to Lisp code according to them.
|
|
|
|
|
(license (list license:lgpl2.1
|
|
|
|
|
license:clarified-artistic)))) ;TRIVIAL-LDAP package
|
2016-02-07 11:50:12 -05:00
|
|
|
|
|
2017-02-14 13:56:44 -05:00
|
|
|
|
(define-public lush2
|
|
|
|
|
(package
|
|
|
|
|
(name "lush2")
|
|
|
|
|
(version "2.0.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://sourceforge/lush/lush2/lush-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
'(begin
|
|
|
|
|
(substitute* "src/unix.c"
|
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 07:47:34 -04:00
|
|
|
|
(("\\{ \"LUSH_DATE\", __DATE__ \\},") "")
|
|
|
|
|
(("\\{ \"LUSH_TIME\", __TIME__ \\},") ""))
|
|
|
|
|
(substitute* "src/main.c"
|
|
|
|
|
(("\" \\(built \" __DATE__ \"\\)\"") ""))
|
|
|
|
|
#t))
|
2017-02-14 13:56:44 -05:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"02pkfn3nqdkm9fm44911dbcz0v3r0l53vygj8xigl6id5g3iwi4k"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(;; We have to add these LIBS so that they are found.
|
|
|
|
|
#:configure-flags (list "LIBS=-lz"
|
|
|
|
|
"X_EXTRA_LIBS=-lfontconfig"
|
|
|
|
|
"--with-x")
|
|
|
|
|
#:tests? #f)) ; No make check.
|
|
|
|
|
(native-inputs `(("intltool" ,intltool)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("alsa-lib" ,alsa-lib)
|
|
|
|
|
("sdl" ,sdl)
|
|
|
|
|
("sdl-image" ,sdl-image)
|
|
|
|
|
("sdl-mixer" ,sdl-mixer)
|
|
|
|
|
("sdl-net" ,sdl-net)
|
|
|
|
|
("sdl-ttf" ,sdl-ttf)
|
|
|
|
|
("lapack" ,lapack)
|
|
|
|
|
("libxft" ,libxft)
|
|
|
|
|
("fontconfig" ,fontconfig)
|
|
|
|
|
("gsl" ,gsl)
|
|
|
|
|
("openblas" ,openblas)
|
|
|
|
|
("glu" ,glu)
|
|
|
|
|
("mesa" ,mesa)
|
|
|
|
|
("mesa-utils" ,mesa-utils)
|
|
|
|
|
("binutils" ,binutils)
|
|
|
|
|
("libiberty" ,libiberty)
|
|
|
|
|
("readline" ,readline)
|
|
|
|
|
("zlib" ,zlib)
|
|
|
|
|
("gettext-minimal" ,gettext-minimal)))
|
|
|
|
|
(synopsis "Lisp Universal Shell")
|
|
|
|
|
(description
|
|
|
|
|
"Lush is an object-oriented Lisp interpreter/compiler with features
|
|
|
|
|
designed to please people who want to prototype large numerical
|
|
|
|
|
applications. Lush includes an extensive library of
|
|
|
|
|
vector/matrix/tensor manipulation, numerous numerical libraries
|
|
|
|
|
(including GSL, LAPACK, and BLAS), a set of graphic functions, a
|
|
|
|
|
simple GUI toolkit, and interfaces to various graphic and multimedia
|
|
|
|
|
libraries such as OpenGL, SDL, Video4Linux, and ALSA (video/audio
|
|
|
|
|
grabbing), and others. Lush is an ideal frontend script language for
|
|
|
|
|
programming projects written in C or other languages. Lush also has
|
|
|
|
|
libraries for Machine Learning, Neural Nets and statistical estimation.")
|
|
|
|
|
(home-page "http://lush.sourceforge.net/")
|
|
|
|
|
(license license:lgpl2.1+)))
|
|
|
|
|
|
2018-09-17 17:18:08 -04:00
|
|
|
|
(define-public confusion-mdl
|
|
|
|
|
(let* ((commit "12a055581fc262225272df43287dae48281900f5"))
|
|
|
|
|
(package
|
|
|
|
|
(name "confusion-mdl")
|
|
|
|
|
(version "0.2")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url (string-append "https://gitlab.com/emacsomancer/" name))
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1zi8kflzvwqg97ha1sa5xjisbjs5z1mvbpa772vfxiv5ksnpxp0d"))
|
|
|
|
|
(file-name (git-file-name name version))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; there are no tests
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)
|
|
|
|
|
(replace 'build
|
|
|
|
|
(lambda* (#:key (make-flags '()) #:allow-other-keys)
|
|
|
|
|
(apply invoke "make" "CC=gcc" make-flags)))
|
|
|
|
|
(replace 'install
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(bin (string-append out "/bin")))
|
|
|
|
|
(install-file "mdli" bin)
|
|
|
|
|
#t))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("perl" ,perl)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("libgc" ,libgc)))
|
|
|
|
|
(synopsis "Interpreter for the MIT Design Language (MDL)")
|
|
|
|
|
(description "MDL (the MIT Design Language) is a descendant of Lisp. It
|
|
|
|
|
was originally developed in 1971 on the PDP-10 computer under the Incompatible
|
|
|
|
|
Timesharing System (ITS) to provide high level language support for the
|
|
|
|
|
Dynamic Modeling Group at MIT's Project MAC. Infocom built the original
|
|
|
|
|
PDP-10 Zork in MDL and their later ZIL (Zork Implementation Language) was
|
|
|
|
|
based on a subset of MDL. Confusion is a MDL interpreter that works just well
|
|
|
|
|
enough to play the original mainframe Zork all the way through.")
|
|
|
|
|
(home-page "http://www.russotto.net/git/mrussotto/confusion/src/master/src/README")
|
|
|
|
|
(license license:gpl3+))))
|
2018-08-21 12:25:50 -04:00
|
|
|
|
|
2019-11-28 15:37:28 -05:00
|
|
|
|
(define-public txr
|
2019-12-05 09:32:37 -05:00
|
|
|
|
(package
|
2019-11-28 15:37:28 -05:00
|
|
|
|
(name "txr")
|
2019-12-29 05:37:59 -05:00
|
|
|
|
(version "230")
|
2019-12-05 09:32:37 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
2019-11-28 15:37:28 -05:00
|
|
|
|
(url "http://www.kylheku.com/git/txr/")
|
|
|
|
|
(commit (string-append "txr-" version))))
|
2019-12-05 09:32:37 -05:00
|
|
|
|
(file-name (git-file-name name version))
|
2019-11-28 15:37:28 -05:00
|
|
|
|
(patches (search-patches "txr-shell.patch"))
|
2019-09-16 09:32:41 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2019-12-29 05:37:59 -05:00
|
|
|
|
"1ma6nbqsnl4f8ndh47zzc8n5vzcny66v0z3ndddgm3g0bqaxzjzm"))))
|
2019-11-28 15:37:28 -05:00
|
|
|
|
(build-system gnu-build-system)
|
2019-12-05 09:32:37 -05:00
|
|
|
|
(arguments
|
2019-11-28 15:37:28 -05:00
|
|
|
|
'(#:configure-flags '("cc=gcc")
|
|
|
|
|
#:phases (modify-phases %standard-phases
|
|
|
|
|
(add-after 'configure 'fix-tests
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "tests/017/realpath.tl"
|
|
|
|
|
(("/usr/bin") "/"))
|
|
|
|
|
(substitute* "tests/017/realpath.expected"
|
|
|
|
|
(("/usr/bin") "/"))
|
|
|
|
|
#t))
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(invoke "make" "tests"))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("bison" ,bison)
|
|
|
|
|
("flex" ,flex)))
|
2019-12-05 09:32:37 -05:00
|
|
|
|
(inputs
|
2019-11-28 15:37:28 -05:00
|
|
|
|
`(("libffi" ,libffi)))
|
|
|
|
|
(synopsis "General-purpose, multi-paradigm programming language")
|
2019-12-05 09:32:37 -05:00
|
|
|
|
(description
|
2019-11-28 15:37:28 -05:00
|
|
|
|
"TXR is a general-purpose, multi-paradigm programming language. It
|
|
|
|
|
comprises two languages integrated into a single tool: a text scanning and
|
|
|
|
|
extraction language referred to as the TXR Pattern Language (sometimes just
|
|
|
|
|
\"TXR\"), and a general-purpose dialect of Lisp called TXR Lisp. TXR can be
|
|
|
|
|
used for everything from \"one liner\" data transformation tasks at the
|
|
|
|
|
command line, to data scanning and extracting scripts, to full application
|
|
|
|
|
development in a wide-range of areas.")
|
|
|
|
|
(home-page "https://nongnu.org/txr/")
|
|
|
|
|
(license license:bsd-2)))
|
2020-01-10 19:23:50 -05:00
|
|
|
|
|
|
|
|
|
(define picolisp32
|
|
|
|
|
(package
|
|
|
|
|
(name "picolisp32")
|
|
|
|
|
(version "19.12")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://software-lab.de/picoLisp-" version ".tgz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "10np0mhihr47r3201617zccrvzpkhdl1jwvz7zimk8kxpriydq2j"))
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet '(begin
|
|
|
|
|
;; Delete the pre-compiled jar file.
|
|
|
|
|
(delete-file "ersatz/picolisp.jar")
|
|
|
|
|
#t))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("openssl" ,openssl)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:system ,(match (%current-system)
|
|
|
|
|
((or "armhf-linux" "aarch64-linux")
|
|
|
|
|
"armhf-linux")
|
|
|
|
|
(_
|
|
|
|
|
"i686-linux"))
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)
|
|
|
|
|
(add-after 'unpack 'fix-paths
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(shebang-line (string-append
|
|
|
|
|
"#!" out "/bin/picolisp "
|
|
|
|
|
out "/lib/picolisp/lib.l")))
|
|
|
|
|
(substitute* '("bin/pil"
|
|
|
|
|
"bin/pilIndent"
|
|
|
|
|
"bin/pilPretty"
|
|
|
|
|
"bin/psh"
|
|
|
|
|
"bin/replica"
|
|
|
|
|
"bin/vip"
|
|
|
|
|
"bin/watchdog"
|
|
|
|
|
"games/xchess"
|
|
|
|
|
"misc/bigtest"
|
|
|
|
|
"misc/calc"
|
|
|
|
|
"misc/chat"
|
|
|
|
|
"misc/mailing"
|
|
|
|
|
"src/mkVers")
|
|
|
|
|
(("#\\!bin/picolisp lib.l")
|
|
|
|
|
shebang-line)
|
|
|
|
|
(("#\\!\\.\\./bin/picolisp \\.\\./lib.l")
|
|
|
|
|
shebang-line)
|
|
|
|
|
(("#\\!/usr/bin/picolisp /usr/lib/picolisp/lib.l")
|
|
|
|
|
shebang-line)))
|
|
|
|
|
#t))
|
|
|
|
|
(add-after 'fix-paths 'make-build-reproducible
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "src64/lib/asm.l"
|
|
|
|
|
(("\\(prinl \"/\\* \" \\(datSym \\(date\\)\\) \" \\*/\\)")
|
|
|
|
|
""))
|
|
|
|
|
#t))
|
|
|
|
|
(add-after 'make-build-reproducible 'fix-permissions
|
|
|
|
|
(lambda _
|
|
|
|
|
(for-each make-file-writable
|
|
|
|
|
'("doc/family.tgz"
|
|
|
|
|
"doc/family64.tgz"
|
|
|
|
|
"lib/map"
|
|
|
|
|
"src64/tags"))
|
|
|
|
|
#t))
|
|
|
|
|
(replace 'build
|
|
|
|
|
(lambda _
|
|
|
|
|
(invoke "make" "-C" "src" "picolisp" "tools" "gate")))
|
|
|
|
|
(add-before 'check 'set-home-for-tests
|
|
|
|
|
(lambda _
|
|
|
|
|
(setenv "HOME" "/tmp")
|
|
|
|
|
#t))
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(invoke "./pil" "test/lib.l" "-bye" "+")))
|
|
|
|
|
(replace 'install
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(bin (string-append out "/bin"))
|
|
|
|
|
(man (string-append out "/share/man"))
|
|
|
|
|
(picolisp (string-append out "/lib/picolisp")))
|
|
|
|
|
(copy-recursively "man" man)
|
|
|
|
|
(copy-recursively "." picolisp)
|
|
|
|
|
(for-each (lambda (name)
|
|
|
|
|
(let ((path (string-append picolisp "/" name)))
|
|
|
|
|
(delete-file-recursively path)))
|
|
|
|
|
'("CHANGES" "COPYING" "CREDITS" "cygwin"
|
|
|
|
|
"INSTALL" "man" "pil" "README" "src" "src64"
|
|
|
|
|
"test"))
|
|
|
|
|
(mkdir-p bin)
|
|
|
|
|
(symlink (string-append picolisp "/bin/picolisp")
|
|
|
|
|
(string-append bin "/picolisp"))
|
|
|
|
|
(symlink (string-append picolisp "/bin/pil")
|
|
|
|
|
(string-append bin "/pil")))
|
|
|
|
|
#t)))))
|
|
|
|
|
(synopsis "Interpreter for the PicoLisp programming language")
|
|
|
|
|
(description
|
|
|
|
|
"PicoLisp is a programming language, or really a programming system,
|
|
|
|
|
including a built-in database engine and a GUI system.")
|
|
|
|
|
(home-page "https://picolisp.com/wiki/?home")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public picolisp
|
|
|
|
|
(match (%current-system)
|
|
|
|
|
((or "aarch64-linux" "x86_64-linux")
|
|
|
|
|
(package
|
|
|
|
|
;; Use the 32-bit picolisp to generate the assembly files required by
|
|
|
|
|
;; the 64-bit picolisp.
|
|
|
|
|
(inherit picolisp32)
|
|
|
|
|
(name "picolisp")
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("picolisp32" ,picolisp32)
|
|
|
|
|
("which" ,which)))
|
|
|
|
|
(arguments
|
|
|
|
|
(substitute-keyword-arguments (package-arguments picolisp32)
|
|
|
|
|
((#:system _ "") (%current-system))
|
|
|
|
|
((#:phases phases)
|
|
|
|
|
`(modify-phases ,phases
|
|
|
|
|
(delete 'fix-paths)
|
|
|
|
|
(add-before 'build 'fix-paths
|
|
|
|
|
;; This must run after the other shebang-patching phases,
|
|
|
|
|
;; or they will override our changes.
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let* ((picolisp32 (assoc-ref inputs "picolisp32"))
|
|
|
|
|
(out (assoc-ref outputs "out"))
|
|
|
|
|
(shebang-line (string-append
|
|
|
|
|
"#!" out "/bin/picolisp "
|
|
|
|
|
out "/lib/picolisp/lib.l")))
|
|
|
|
|
(substitute* '("bin/pil"
|
|
|
|
|
"bin/pilIndent"
|
|
|
|
|
"bin/pilPretty"
|
|
|
|
|
"bin/psh"
|
|
|
|
|
"bin/replica"
|
|
|
|
|
"bin/vip"
|
|
|
|
|
"bin/watchdog"
|
|
|
|
|
"games/xchess"
|
|
|
|
|
"misc/bigtest"
|
|
|
|
|
"misc/calc"
|
|
|
|
|
"misc/chat"
|
|
|
|
|
"misc/mailing"
|
|
|
|
|
"src/mkVers")
|
|
|
|
|
(("#\\!.*picolisp32.*/bin/picolisp .*lib\\.l")
|
|
|
|
|
shebang-line))
|
|
|
|
|
(substitute* "src64/mkAsm"
|
|
|
|
|
(("/usr/bin/")
|
|
|
|
|
(string-append picolisp32 "/bin/"))))
|
|
|
|
|
#t))
|
|
|
|
|
(replace 'build
|
|
|
|
|
(lambda _
|
|
|
|
|
(invoke "make" "-C" "src" "tools" "gate")
|
|
|
|
|
(invoke "make" "-C" "src64" "CC=gcc" "picolisp")))))))))
|
|
|
|
|
(_
|
|
|
|
|
(package
|
|
|
|
|
(inherit picolisp32)
|
|
|
|
|
(name "picolisp")))))
|