2014-07-05 14:30:51 +02:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
|
;;; Copyright © 2014 John Darrington <jmd@gnu.org>
|
2015-02-12 00:15:02 +01:00
|
|
|
|
;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
|
2015-03-08 02:42:01 +01:00
|
|
|
|
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
|
2016-01-10 10:41:23 +01:00
|
|
|
|
;;; Copyright © 2016 Federico Beffa <beffa@fbengineering.ch>
|
2017-02-14 19:56:44 +01:00
|
|
|
|
;;; Copyright © 2016, 2017 ng0 <contact.ng0@cryptolab.net>
|
2016-07-25 03:05:39 +02:00
|
|
|
|
;;; Copyright © 2016 Andy Patterson <ajpatter@uwaterloo.ca>
|
2017-01-01 11:12:29 +01:00
|
|
|
|
;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
|
2014-07-05 14:30:51 +02: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/>.
|
|
|
|
|
|
|
|
|
|
(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 22:44:22 +02:00
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2014-07-05 14:30:51 +02:00
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (gnu packages readline)
|
|
|
|
|
#:use-module (gnu packages texinfo)
|
2016-05-24 21:18:53 +02:00
|
|
|
|
#:use-module (gnu packages tex)
|
2014-07-05 14:30:51 +02:00
|
|
|
|
#:use-module (gnu packages m4)
|
|
|
|
|
#:use-module (guix download)
|
2016-02-07 17:50:12 +01:00
|
|
|
|
#:use-module (guix git-download)
|
2014-07-05 14:30:51 +02:00
|
|
|
|
#:use-module (guix utils)
|
2015-02-12 00:15:02 +01:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2016-10-03 04:41:30 +02:00
|
|
|
|
#:use-module (guix build-system asdf)
|
2016-10-07 10:07:49 +02:00
|
|
|
|
#:use-module (guix build-system trivial)
|
gnu: Move 'which' to (gnu packages base).
* gnu/packages/which.scm: Remove.
* gnu-system.am (GNU_SYSTEM_MODULES): Remove it.
* gnu/packages/base.scm (which): New variable.
* gnu/packages/aspell.scm, gnu/packages/audio.scm,
gnu/packages/autogen.scm, gnu/packages/cdrom.scm,
gnu/packages/compression.scm, gnu/packages/datamash.scm,
gnu/packages/games.scm, gnu/packages/glib.scm,
gnu/packages/gnu-pw-mgr.scm, gnu/packages/gnutls.scm,
gnu/packages/gps.scm, gnu/packages/guile.scm,
gnu/packages/java.scm, gnu/packages/libevent.scm,
gnu/packages/linux.scm, gnu/packages/lisp.scm,
gnu/packages/node.scm, gnu/packages/ntp.scm,
gnu/packages/orpheus.scm, gnu/packages/pciutils.scm,
gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/sawfish.scm,
gnu/packages/scheme.scm, gnu/packages/ssh.scm,
gnu/packages/statistics.scm, gnu/packages/texlive.scm,
gnu/packages/wdiff.scm: Adjust accordingly.
2015-03-04 17:21:21 +01:00
|
|
|
|
#:use-module (gnu packages base)
|
2017-02-14 19:56:44 +01:00
|
|
|
|
#:use-module (gnu packages compression)
|
|
|
|
|
#:use-module (gnu packages fontutils)
|
|
|
|
|
#:use-module (gnu packages maths)
|
2015-02-12 00:15:02 +01:00
|
|
|
|
#:use-module (gnu packages multiprecision)
|
|
|
|
|
#:use-module (gnu packages bdw-gc)
|
2015-02-12 22:19:52 +01:00
|
|
|
|
#:use-module (gnu packages libffi)
|
|
|
|
|
#:use-module (gnu packages libffcall)
|
|
|
|
|
#:use-module (gnu packages readline)
|
2017-02-14 19:56:44 +01:00
|
|
|
|
#:use-module (gnu packages sdl)
|
2015-02-14 19:04:12 +01:00
|
|
|
|
#:use-module (gnu packages libsigsegv)
|
2017-02-14 19:56:44 +01:00
|
|
|
|
#:use-module (gnu packages linux)
|
2015-02-14 19:04:12 +01:00
|
|
|
|
#:use-module (gnu packages admin)
|
2015-02-16 00:46:12 +01:00
|
|
|
|
#:use-module (gnu packages ed)
|
2017-02-14 19:56:44 +01:00
|
|
|
|
#:use-module (gnu packages gl)
|
|
|
|
|
#:use-module (gnu packages gcc)
|
|
|
|
|
#:use-module (gnu packages glib)
|
|
|
|
|
#:use-module (gnu packages gettext)
|
2015-02-16 00:46:12 +01:00
|
|
|
|
#:use-module (gnu packages m4)
|
2017-02-14 19:56:44 +01:00
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2015-02-16 00:46:12 +01:00
|
|
|
|
#:use-module (gnu packages version-control)
|
2017-02-14 19:56:44 +01:00
|
|
|
|
#:use-module (gnu packages xorg)
|
2016-09-22 11:08:03 +02:00
|
|
|
|
#:use-module (ice-9 match)
|
|
|
|
|
#:use-module (srfi srfi-1))
|
2014-07-05 14:30:51 +02:00
|
|
|
|
|
2016-10-03 04:41:28 +02: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))))
|
|
|
|
|
|
2014-07-05 14:30:51 +02:00
|
|
|
|
(define-public gcl
|
|
|
|
|
(package
|
|
|
|
|
(name "gcl")
|
2014-11-23 22:02:20 +01:00
|
|
|
|
(version "2.6.12")
|
2014-07-05 14:30:51 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://gnu/" name "/" name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
2014-11-23 22:02:20 +01:00
|
|
|
|
(base32 "1s4hs2qbjqmn9h88l4xvsifq5c3dlc5s74lyb61rdi5grhdlkf4f"))))
|
2014-07-05 14:30:51 +02:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:parallel-build? #f ; The build system seems not to be thread safe.
|
|
|
|
|
#:tests? #f ; There does not seem to be make check or anything similar.
|
|
|
|
|
#:configure-flags '("--enable-ansi") ; required for use by the maxima package
|
|
|
|
|
#:phases (alist-cons-before
|
|
|
|
|
'configure 'pre-conf
|
gnu: Adjust formatting as recommended by 'guix lint'.
* gnu/packages/aidc.scm (barcode, qrencode),
gnu/packages/bash.scm (bash, bash-completion),
gnu/packages/busybox.scm (busybox),
gnu/packages/cdrom.scm (cdparanoia),
gnu/packages/cmake.scm (cmake),
gnu/packages/conkeror.scm (conkeror),
gnu/packages/cook.scm (cook),
gnu/packages/curl.scm (curl),
gnu/packages/docbook.scm (docbook-xsl),
gnu/packages/enlightenment.scm (enlightenment),
gnu/packages/games.scm (abbaye),
gnu/packages/geeqie.scm (exiv2),
gnu/packages/gimp.scm (gegl),
gnu/packages/gl.scm (glu, freeglut, ftgl),
gnu/packages/glib.scm (glib),
gnu/packages/gnome.scm (orbit2, gconf, geocode-glib),
gnu/packages/gstreamer.scm (gstreamer, gst-plugins-base),
gnu/packages/linux.scm (util-linux),
gnu/packages/lisp.scm (gcl, ecl),
gnu/packages/maths.scm (gnuplot, hdf5),
gnu/packages/ssh.scm (dropbear),
gnu/packages/web.scm (json-c): Remove tabulations and trailing
white spaces or reformat to fit within 80 columns.
* gnu/packages/audio.scm (aubio),
gnu/packages/emacs.scm (emacs-s),
gnu/packages/engineering.scm (geda-gaf),
gnu/packages/games.scm (dosbox),
gnu/packages/gnome.scm (gusb),
gnu/packages/gtk.scm (gtk+),
gnu/packages/guile.scm (guile-wisp),
gnu/packages/hurd.scm (hurd-headers),
gnu/packages/wm.scm (i3-wm): Adjust synopsis or description.
2015-11-13 15:50:36 +01:00
|
|
|
|
(lambda _
|
2014-07-05 14:30:51 +02:00
|
|
|
|
;; Patch bug when building readline support. This bug was
|
|
|
|
|
;; also observed by Debian
|
|
|
|
|
;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741819
|
|
|
|
|
(substitute* "o/gcl_readline.d"
|
gnu: Adjust formatting as recommended by 'guix lint'.
* gnu/packages/aidc.scm (barcode, qrencode),
gnu/packages/bash.scm (bash, bash-completion),
gnu/packages/busybox.scm (busybox),
gnu/packages/cdrom.scm (cdparanoia),
gnu/packages/cmake.scm (cmake),
gnu/packages/conkeror.scm (conkeror),
gnu/packages/cook.scm (cook),
gnu/packages/curl.scm (curl),
gnu/packages/docbook.scm (docbook-xsl),
gnu/packages/enlightenment.scm (enlightenment),
gnu/packages/games.scm (abbaye),
gnu/packages/geeqie.scm (exiv2),
gnu/packages/gimp.scm (gegl),
gnu/packages/gl.scm (glu, freeglut, ftgl),
gnu/packages/glib.scm (glib),
gnu/packages/gnome.scm (orbit2, gconf, geocode-glib),
gnu/packages/gstreamer.scm (gstreamer, gst-plugins-base),
gnu/packages/linux.scm (util-linux),
gnu/packages/lisp.scm (gcl, ecl),
gnu/packages/maths.scm (gnuplot, hdf5),
gnu/packages/ssh.scm (dropbear),
gnu/packages/web.scm (json-c): Remove tabulations and trailing
white spaces or reformat to fit within 80 columns.
* gnu/packages/audio.scm (aubio),
gnu/packages/emacs.scm (emacs-s),
gnu/packages/engineering.scm (geda-gaf),
gnu/packages/games.scm (dosbox),
gnu/packages/gnome.scm (gusb),
gnu/packages/gtk.scm (gtk+),
gnu/packages/guile.scm (guile-wisp),
gnu/packages/hurd.scm (hurd-headers),
gnu/packages/wm.scm (i3-wm): Adjust synopsis or description.
2015-11-13 15:50:36 +01:00
|
|
|
|
(("rl_attempted_completion_function = \
|
|
|
|
|
\\(CPPFunction \\*\\)rl_completion;")
|
2014-07-05 14:30:51 +02:00
|
|
|
|
"rl_attempted_completion_function = rl_completion;"))
|
gnu: Adjust formatting as recommended by 'guix lint'.
* gnu/packages/aidc.scm (barcode, qrencode),
gnu/packages/bash.scm (bash, bash-completion),
gnu/packages/busybox.scm (busybox),
gnu/packages/cdrom.scm (cdparanoia),
gnu/packages/cmake.scm (cmake),
gnu/packages/conkeror.scm (conkeror),
gnu/packages/cook.scm (cook),
gnu/packages/curl.scm (curl),
gnu/packages/docbook.scm (docbook-xsl),
gnu/packages/enlightenment.scm (enlightenment),
gnu/packages/games.scm (abbaye),
gnu/packages/geeqie.scm (exiv2),
gnu/packages/gimp.scm (gegl),
gnu/packages/gl.scm (glu, freeglut, ftgl),
gnu/packages/glib.scm (glib),
gnu/packages/gnome.scm (orbit2, gconf, geocode-glib),
gnu/packages/gstreamer.scm (gstreamer, gst-plugins-base),
gnu/packages/linux.scm (util-linux),
gnu/packages/lisp.scm (gcl, ecl),
gnu/packages/maths.scm (gnuplot, hdf5),
gnu/packages/ssh.scm (dropbear),
gnu/packages/web.scm (json-c): Remove tabulations and trailing
white spaces or reformat to fit within 80 columns.
* gnu/packages/audio.scm (aubio),
gnu/packages/emacs.scm (emacs-s),
gnu/packages/engineering.scm (geda-gaf),
gnu/packages/games.scm (dosbox),
gnu/packages/gnome.scm (gusb),
gnu/packages/gtk.scm (gtk+),
gnu/packages/guile.scm (guile-wisp),
gnu/packages/hurd.scm (hurd-headers),
gnu/packages/wm.scm (i3-wm): Adjust synopsis or description.
2015-11-13 15:50:36 +01:00
|
|
|
|
(substitute*
|
|
|
|
|
(append
|
2014-07-05 14:30:51 +02:00
|
|
|
|
'("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/(ba)?sh")
|
|
|
|
|
(string-append "SHELL=" (which "bash")))))
|
2014-11-27 23:34:46 +01:00
|
|
|
|
;; drop strip phase to make maxima build, see
|
|
|
|
|
;; https://www.ma.utexas.edu/pipermail/maxima/2008/009769.html
|
|
|
|
|
(alist-delete 'strip
|
|
|
|
|
%standard-phases))))
|
2014-07-05 14:30:51 +02:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("m4" ,m4)
|
|
|
|
|
("readline" ,readline)
|
|
|
|
|
("texinfo" ,texinfo)
|
|
|
|
|
("texlive" ,texlive)))
|
2017-03-30 00:48:16 +02:00
|
|
|
|
(home-page "https://www.gnu.org/software/gcl/")
|
2014-11-09 17:56:02 +01:00
|
|
|
|
(synopsis "A Common Lisp implementation")
|
2014-07-05 14:30:51 +02:00
|
|
|
|
(description "GCL is an implementation of the Common Lisp language. It
|
|
|
|
|
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.")
|
|
|
|
|
(license license:lgpl2.0+)))
|
|
|
|
|
|
2015-02-12 00:15:02 +01:00
|
|
|
|
(define-public ecl
|
|
|
|
|
(package
|
|
|
|
|
(name "ecl")
|
2017-03-12 01:10:56 +01:00
|
|
|
|
(version "16.1.3")
|
2015-02-12 00:15:02 +01:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-07-25 03:05:37 +02:00
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://common-lisp.net/project/ecl/static/files/release/"
|
|
|
|
|
name "-" version ".tgz"))
|
2015-02-12 00:15:02 +01:00
|
|
|
|
(sha256
|
2017-03-12 01:10:56 +01:00
|
|
|
|
(base32 "0m0j24w5d5a9dwwqyrg0d35c0nys16ijb4r0nyk87yp82v38b9bn"))
|
2016-10-03 04:41:29 +02:00
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
;; Add ecl-bundle-systems to 'default-system-source-registry'.
|
|
|
|
|
`(substitute* "contrib/asdf/asdf.lisp"
|
|
|
|
|
,@(asdf-substitutions name)))))
|
2015-02-12 00:15:02 +01:00
|
|
|
|
(build-system gnu-build-system)
|
2015-02-21 22:28:45 +01:00
|
|
|
|
;; src/configure uses 'which' to confirm the existence of 'gzip'.
|
2015-02-12 00:15:02 +01:00
|
|
|
|
(native-inputs `(("which" ,which)))
|
|
|
|
|
(inputs `(("gmp" ,gmp)
|
|
|
|
|
("libatomic-ops" ,libatomic-ops)
|
|
|
|
|
("libgc" ,libgc)
|
|
|
|
|
("libffi" ,libffi)))
|
|
|
|
|
(arguments
|
2016-07-25 03:05:38 +02:00
|
|
|
|
'(#:tests? #t
|
|
|
|
|
#:parallel-tests? #f
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'check)
|
2016-07-25 03:05:39 +02: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 19:21:07 +02:00
|
|
|
|
`("kernel-headers" ,@libraries)))
|
2016-07-25 03:05:39 +02:00
|
|
|
|
`("LIBRARY_PATH" suffix ,library-directories)
|
|
|
|
|
`("LD_LIBRARY_PATH" suffix ,library-directories)))))
|
2017-03-12 01:10:56 +01: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-03 04:41:29 +02:00
|
|
|
|
(native-search-paths
|
|
|
|
|
(list (search-path-specification
|
|
|
|
|
(variable "XDG_DATA_DIRS")
|
|
|
|
|
(files '("share")))))
|
2015-02-12 00:15:02 +01: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 22:19:52 +01:00
|
|
|
|
|
|
|
|
|
(define-public clisp
|
|
|
|
|
(package
|
|
|
|
|
(name "clisp")
|
|
|
|
|
(version "2.49")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://gnu/clisp/release/" version
|
|
|
|
|
"/clisp-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0rp82nqp5362isl9i34rwgg04cidz7izljd9d85pqcw1qr964bxx"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(inputs `(("libffcall" ,libffcall)
|
2016-11-13 01:52:22 +01:00
|
|
|
|
("readline" ,readline-6.2)
|
2015-02-12 22:19:52 +01:00
|
|
|
|
("libsigsegv" ,libsigsegv)))
|
|
|
|
|
(arguments
|
2015-07-18 00:33:05 +02:00
|
|
|
|
'(;; XXX The custom configure script does not cope well when passed
|
|
|
|
|
;; --build=<triplet>.
|
|
|
|
|
#:build #f
|
|
|
|
|
#:phases
|
2017-01-01 11:12:29 +01: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.
|
|
|
|
|
(substitute* (find-files "." "configure|Makefile")
|
|
|
|
|
(("/bin/sh") "sh"))
|
|
|
|
|
(substitute* '("src/clisp-link.in")
|
|
|
|
|
(("/bin/pwd") "pwd"))
|
|
|
|
|
#t))
|
2017-01-01 12:56:10 +01:00
|
|
|
|
(add-after 'unpack 'remove-timestamps
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "src/constobj.d"
|
|
|
|
|
(("__DATE__ __TIME__") "\"1\""))
|
|
|
|
|
#t))
|
2017-01-01 11:12:29 +01:00
|
|
|
|
(add-before 'build 'chdir-to-source
|
|
|
|
|
(lambda _
|
|
|
|
|
;; We are supposed to call make under the src sub-directory.
|
|
|
|
|
(chdir "src")
|
|
|
|
|
#t)))
|
2015-02-12 22:19:52 +01:00
|
|
|
|
;; Makefiles seem to have race conditions.
|
|
|
|
|
#:parallel-build? #f))
|
|
|
|
|
(home-page "http://www.clisp.org/")
|
2015-02-24 23:12:16 +01: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.")
|
2015-02-12 22:19:52 +01:00
|
|
|
|
;; Website says gpl2+, COPYRIGHT file says gpl2; actual source files have
|
|
|
|
|
;; a lot of gpl3+. (Also some parts are under non-copyleft licenses, such
|
|
|
|
|
;; as CLX by Texas Instruments.) In that case gpl3+ wins out.
|
|
|
|
|
(license license:gpl3+)))
|
2015-02-14 19:04:12 +01:00
|
|
|
|
|
|
|
|
|
(define-public sbcl
|
|
|
|
|
(package
|
|
|
|
|
(name "sbcl")
|
2016-07-24 15:29:28 +02:00
|
|
|
|
(version "1.3.7")
|
2015-02-14 19:04:12 +01:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://sourceforge/sbcl/sbcl/" version "/sbcl-"
|
|
|
|
|
version "-source.tar.bz2"))
|
|
|
|
|
(sha256
|
2016-10-03 04:41:28 +02:00
|
|
|
|
(base32 "0fjdqnb2rsm2vi9794ywp27jr239ddvzc4xfr0dk49jd4v7p2kc5"))
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
;; Add sbcl-bundle-systems to 'default-system-source-registry'.
|
|
|
|
|
`(substitute* "contrib/asdf/asdf.lisp"
|
|
|
|
|
,@(asdf-substitutions name)))))
|
2015-02-14 19:04:12 +01:00
|
|
|
|
(build-system gnu-build-system)
|
2016-01-10 10:41:23 +01:00
|
|
|
|
(outputs '("out" "doc"))
|
2015-02-14 19:04:12 +01:00
|
|
|
|
;; Bootstrap with CLISP.
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("clisp" ,clisp)
|
|
|
|
|
("which" ,which)
|
|
|
|
|
("inetutils" ,inetutils) ;for hostname(1)
|
2016-01-10 10:41:23 +01:00
|
|
|
|
("ed" ,ed)
|
|
|
|
|
("texlive" ,texlive)
|
|
|
|
|
("texinfo" ,texinfo)))
|
2015-02-14 19:04:12 +01:00
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
2015-12-31 18:36:52 +01:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)
|
|
|
|
|
(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 15:29:28 +02: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 18:36:52 +01: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)
|
|
|
|
|
(string-append "#+nil ;disabled by Guix\n" all))))))
|
|
|
|
|
(replace 'build
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(setenv "CC" "gcc")
|
|
|
|
|
(zero? (system* "sh" "make.sh" "clisp"
|
|
|
|
|
(string-append "--prefix="
|
|
|
|
|
(assoc-ref outputs "out"))))))
|
|
|
|
|
(replace 'install
|
2015-02-14 19:04:12 +01:00
|
|
|
|
(lambda _
|
2016-01-10 10:41:23 +01:00
|
|
|
|
(zero? (system* "sh" "install.sh"))))
|
|
|
|
|
(add-after 'build 'build-doc
|
|
|
|
|
(lambda _
|
|
|
|
|
(with-directory-excursion "doc/manual"
|
|
|
|
|
(and (zero? (system* "make" "info"))
|
|
|
|
|
(zero? (system* "make" "dist"))))))
|
|
|
|
|
(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))))
|
2015-12-31 18:36:52 +01:00
|
|
|
|
;; No 'check' target, though "make.sh" (build phase) runs tests.
|
|
|
|
|
#:tests? #f))
|
2016-10-03 04:41:28 +02:00
|
|
|
|
(native-search-paths
|
|
|
|
|
(list (search-path-specification
|
|
|
|
|
(variable "XDG_DATA_DIRS")
|
|
|
|
|
(files '("share")))))
|
2015-02-14 19:04:12 +01: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-16 00:46:12 +01:00
|
|
|
|
|
|
|
|
|
(define-public ccl
|
|
|
|
|
(package
|
|
|
|
|
(name "ccl")
|
2016-02-11 02:00:08 +01:00
|
|
|
|
(version "1.11")
|
2015-02-16 00:46:12 +01: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
|
2016-02-11 02:00:08 +01:00
|
|
|
|
"ftp://ftp.clozure.com/pub/release/" version
|
|
|
|
|
"/ccl-" version "-"
|
2015-02-16 00:46:12 +01:00
|
|
|
|
(match (%current-system)
|
|
|
|
|
((or "i686-linux" "x86_64-linux") "linuxx86")
|
2015-04-19 15:55:01 +02:00
|
|
|
|
("armhf-linux" "linuxarm")
|
|
|
|
|
;; Prevent errors when querying this package on unsupported
|
|
|
|
|
;; platforms, e.g. when running "guix package --search="
|
|
|
|
|
(_ "UNSUPPORTED"))
|
2015-02-16 00:46:12 +01:00
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
(match (%current-system)
|
|
|
|
|
((or "i686-linux" "x86_64-linux")
|
2016-02-11 02:00:08 +01:00
|
|
|
|
"0w3dmj7q9kqyra3yrf1lxclnjz151yvf5s5q8ayllvmvqbl8bs08")
|
2015-04-19 15:55:01 +02:00
|
|
|
|
("armhf-linux"
|
2016-02-11 02:00:08 +01:00
|
|
|
|
"1x487aaz2rqcb6k301sy2p39a1m4qdhg6z9p9fb76ssipqgr38b4")
|
2015-04-19 15:55:01 +02:00
|
|
|
|
(_ ""))))))))
|
2015-02-16 00:46:12 +01:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("m4" ,m4)
|
|
|
|
|
("subversion" ,subversion)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ;no 'check' target
|
2017-03-16 03:12:10 +01:00
|
|
|
|
#:modules ((srfi srfi-26)
|
|
|
|
|
(guix build utils)
|
|
|
|
|
(guix build gnu-build-system))
|
2015-02-16 00:46:12 +01:00
|
|
|
|
#:phases
|
|
|
|
|
(alist-replace
|
|
|
|
|
'unpack
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(and (zero? (system* "tar" "xzvf" (assoc-ref inputs "ccl")))
|
|
|
|
|
(begin (chdir "ccl") #t)))
|
|
|
|
|
(alist-delete
|
|
|
|
|
'configure
|
|
|
|
|
(alist-cons-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 _
|
|
|
|
|
(chdir (string-append
|
|
|
|
|
"lisp-kernel/"
|
|
|
|
|
,(match (or (%current-target-system) (%current-system))
|
2015-04-22 05:25:12 +02:00
|
|
|
|
("i686-linux" "linuxx8632")
|
2015-02-16 00:46:12 +01:00
|
|
|
|
("x86_64-linux" "linuxx8664")
|
2015-04-22 05:25:12 +02:00
|
|
|
|
("armhf-linux" "linuxarm")
|
|
|
|
|
;; Prevent errors when querying this package
|
|
|
|
|
;; on unsupported platforms, e.g. when running
|
|
|
|
|
;; "guix package --search="
|
|
|
|
|
(_ "UNSUPPORTED"))))
|
2015-02-16 00:46:12 +01:00
|
|
|
|
(substitute* '("Makefile")
|
|
|
|
|
(("/bin/rm") "rm"))
|
|
|
|
|
(setenv "CC" "gcc")
|
|
|
|
|
(zero? (system* "make" "clean")))
|
|
|
|
|
;; 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.
|
|
|
|
|
(alist-replace
|
|
|
|
|
'install
|
|
|
|
|
(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-22 05:25:12 +02:00
|
|
|
|
("i686-linux" "lx86cl")
|
2015-02-16 00:46:12 +01:00
|
|
|
|
("x86_64-linux" "lx86cl64")
|
2015-04-22 05:25:12 +02:00
|
|
|
|
("armhf-linux" "armcl")
|
|
|
|
|
;; Prevent errors when querying this package
|
|
|
|
|
;; on unsupported platforms, e.g. when running
|
|
|
|
|
;; "guix package --search="
|
|
|
|
|
(_ "UNSUPPORTED")))
|
2015-02-16 00:46:12 +01:00
|
|
|
|
(heap (string-append kernel ".image")))
|
2017-03-16 03:12:10 +01:00
|
|
|
|
(install-file kernel libdir)
|
|
|
|
|
(install-file heap libdir)
|
|
|
|
|
|
|
|
|
|
(let ((dirs '("lib" "library" "examples" "contrib"
|
|
|
|
|
"tools" "objc-bridge")))
|
|
|
|
|
(for-each copy-recursively
|
|
|
|
|
dirs
|
|
|
|
|
(map (cut string-append libdir <>) dirs)))
|
|
|
|
|
|
2015-02-16 00:46:12 +01:00
|
|
|
|
(mkdir-p bindir)
|
|
|
|
|
(with-output-to-file wrapper
|
|
|
|
|
(lambda ()
|
|
|
|
|
(display
|
|
|
|
|
(string-append
|
|
|
|
|
"#!" bash "/bin/sh\n"
|
2017-03-16 03:12:11 +01:00
|
|
|
|
"CCL_DEFAULT_DIRECTORY=" libdir "\n"
|
2015-02-16 00:46:12 +01:00
|
|
|
|
"export CCL_DEFAULT_DIRECTORY\n"
|
|
|
|
|
"exec " libdir kernel "\n"))))
|
|
|
|
|
(chmod wrapper #o755)))
|
|
|
|
|
%standard-phases))))))
|
|
|
|
|
(supported-systems '("i686-linux" "x86_64-linux" "armhf-linux"))
|
|
|
|
|
(home-page "http://ccl.clozure.com/")
|
|
|
|
|
(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 17:50:12 +01:00
|
|
|
|
|
2016-09-13 21:04:15 +02:00
|
|
|
|
(define-public femtolisp
|
|
|
|
|
(let ((commit "68c5b1225572ecf2c52baf62f928063e5a30511b")
|
|
|
|
|
(revision "1"))
|
|
|
|
|
(package
|
|
|
|
|
(name "femtolisp")
|
|
|
|
|
(version (string-append "0.0.0-" revision "." (string-take commit 7)))
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/JeffBezanson/femtolisp.git")
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(file-name (string-append name "-" version "-checkout"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"04rnwllxnl86zw8c6pwxznn49bvkvh0f1lfliy085vjzvlq3rgja"))))
|
2016-09-22 11:08:03 +02: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")))
|
2016-09-13 21:04:15 +02:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2016-09-13 22:19:57 +02:00
|
|
|
|
`(#:make-flags '("CC=gcc" "release")
|
|
|
|
|
#:test-target "test"
|
2016-09-13 21:04:15 +02:00
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure) ; No configure script
|
|
|
|
|
(replace 'install ; Makefile has no 'install phase
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(bin (string-append out "/bin")))
|
|
|
|
|
(install-file "flisp" bin)
|
|
|
|
|
#t)))
|
|
|
|
|
;; The flisp binary is now available, run bootstrap to
|
|
|
|
|
;; generate flisp.boot and afterwards runs make test.
|
|
|
|
|
(add-after 'install 'bootstrap-gen-and-test
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(bin (string-append out "/bin")))
|
|
|
|
|
(and
|
|
|
|
|
(zero? (system* "./bootstrap.sh"))
|
|
|
|
|
(install-file "flisp.boot" bin))))))))
|
|
|
|
|
(synopsis "Scheme-like lisp implementation")
|
|
|
|
|
(description
|
|
|
|
|
"@code{femtolisp} is a scheme-like lisp implementation with a
|
|
|
|
|
simple, elegant Scheme dialect. It is a lisp-1 with lexical scope.
|
|
|
|
|
The core is 12 builtin special forms and 33 builtin functions.")
|
|
|
|
|
(home-page "https://github.com/JeffBezanson/femtolisp")
|
|
|
|
|
(license license:bsd-3))))
|
2016-10-03 04:41:30 +02:00
|
|
|
|
|
2017-02-14 19:56:44 +01: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"
|
|
|
|
|
(("\\{ \"LUSH_DATE\", __DATE__ \\},") "")
|
|
|
|
|
(("\\{ \"LUSH_TIME\", __TIME__ \\},") ""))
|
|
|
|
|
(substitute* "src/main.c"
|
|
|
|
|
(("\" \\(built \" __DATE__ \"\\)\"") ""))))
|
|
|
|
|
(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+)))
|
|
|
|
|
|
2016-10-03 04:41:30 +02:00
|
|
|
|
(define-public sbcl-alexandria
|
|
|
|
|
(let ((revision "1")
|
|
|
|
|
(commit "926a066611b7b11cb71e26c827a271e500888c30"))
|
|
|
|
|
(package
|
|
|
|
|
(name "sbcl-alexandria")
|
|
|
|
|
(version (string-append "0.0.0-" revision "." (string-take commit 7)))
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://gitlab.common-lisp.net/alexandria/alexandria.git")
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"18yncicdkh294j05rhgm23gzi36y9qy6vrfba8vg69jrxjp1hx8l"))
|
|
|
|
|
(file-name (string-append "alexandria-" version "-checkout"))))
|
|
|
|
|
(build-system asdf-build-system/sbcl)
|
|
|
|
|
(synopsis "Collection of portable utilities for Common Lisp")
|
|
|
|
|
(description
|
|
|
|
|
"Alexandria is a collection of portable utilities. It does not contain
|
|
|
|
|
conceptual extensions to Common Lisp. It is conservative in scope, and
|
|
|
|
|
portable between implementations.")
|
|
|
|
|
(home-page "https://common-lisp.net/project/alexandria/")
|
|
|
|
|
(license license:public-domain))))
|
|
|
|
|
|
|
|
|
|
(define-public cl-alexandria
|
|
|
|
|
(sbcl-package->cl-source-package sbcl-alexandria))
|
|
|
|
|
|
|
|
|
|
(define-public ecl-alexandria
|
|
|
|
|
(sbcl-package->ecl-package sbcl-alexandria))
|
2016-10-03 04:41:31 +02:00
|
|
|
|
|
|
|
|
|
(define-public sbcl-fiveam
|
|
|
|
|
(package
|
|
|
|
|
(name "sbcl-fiveam")
|
|
|
|
|
(version "1.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://github.com/sionescu/fiveam/archive/v"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0f48pcbhqs3wwwzjl5nk57d4hcbib4l9xblxc66b8c2fhvhmhxnv"))
|
|
|
|
|
(file-name (string-append "fiveam-" version ".tar.gz"))))
|
|
|
|
|
(inputs `(("sbcl-alexandria" ,sbcl-alexandria)))
|
|
|
|
|
(build-system asdf-build-system/sbcl)
|
|
|
|
|
(synopsis "Common Lisp testing framework")
|
|
|
|
|
(description "FiveAM is a simple (as far as writing and running tests
|
|
|
|
|
goes) regression testing framework. It has been designed with Common Lisp's
|
|
|
|
|
interactive development model in mind.")
|
|
|
|
|
(home-page "https://common-lisp.net/project/fiveam/")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public cl-fiveam
|
|
|
|
|
(sbcl-package->cl-source-package sbcl-fiveam))
|
|
|
|
|
|
|
|
|
|
(define-public ecl-fiveam
|
|
|
|
|
(sbcl-package->ecl-package sbcl-fiveam))
|
2016-10-03 04:41:32 +02:00
|
|
|
|
|
|
|
|
|
(define-public sbcl-bordeaux-threads
|
|
|
|
|
(package
|
|
|
|
|
(name "sbcl-bordeaux-threads")
|
|
|
|
|
(version "0.8.5")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://github.com/sionescu/bordeaux-threads/archive/v"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "10ryrcx832fwqdawb6jmknymi7wpdzhi30qzx7cbrk0cpnka71w2"))
|
|
|
|
|
(file-name
|
|
|
|
|
(string-append "bordeaux-threads-" version ".tar.gz"))))
|
|
|
|
|
(inputs `(("sbcl-alexandria" ,sbcl-alexandria)))
|
|
|
|
|
(native-inputs `(("tests:cl-fiveam" ,sbcl-fiveam)))
|
|
|
|
|
(build-system asdf-build-system/sbcl)
|
|
|
|
|
(synopsis "Portable shared-state concurrency library for Common Lisp")
|
|
|
|
|
(description "BORDEAUX-THREADS is a proposed standard for a minimal
|
|
|
|
|
MP/Threading interface. It is similar to the CLIM-SYS threading and lock
|
|
|
|
|
support.")
|
|
|
|
|
(home-page "https://common-lisp.net/project/bordeaux-threads/")
|
|
|
|
|
(license license:x11)))
|
|
|
|
|
|
|
|
|
|
(define-public cl-bordeaux-threads
|
|
|
|
|
(sbcl-package->cl-source-package sbcl-bordeaux-threads))
|
|
|
|
|
|
|
|
|
|
(define-public ecl-bordeaux-threads
|
|
|
|
|
(sbcl-package->ecl-package sbcl-bordeaux-threads))
|
2016-10-03 04:41:33 +02:00
|
|
|
|
|
|
|
|
|
(define-public sbcl-trivial-gray-streams
|
|
|
|
|
(let ((revision "1")
|
|
|
|
|
(commit "0483ade330508b4b2edeabdb47d16ec9437ee1cb"))
|
|
|
|
|
(package
|
|
|
|
|
(name "sbcl-trivial-gray-streams")
|
|
|
|
|
(version (string-append "0.0.0-" revision "." (string-take commit 7)))
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri
|
|
|
|
|
(git-reference
|
|
|
|
|
(url "https://github.com/trivial-gray-streams/trivial-gray-streams.git")
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0m3rpf2x0zmdk3nf1qfa01j6a55vj7gkwhyw78qslcgbjlgh8p4d"))
|
|
|
|
|
(file-name
|
|
|
|
|
(string-append "trivial-gray-streams-" version "-checkout"))))
|
|
|
|
|
(build-system asdf-build-system/sbcl)
|
|
|
|
|
(synopsis "Compatibility layer for Gray streams implementations")
|
|
|
|
|
(description "Gray streams is an interface proposed for inclusion with
|
|
|
|
|
ANSI CL by David N. Gray. The proposal did not make it into ANSI CL, but most
|
|
|
|
|
popular CL implementations implement it. This package provides an extremely
|
|
|
|
|
thin compatibility layer for gray streams.")
|
|
|
|
|
(home-page "http://www.cliki.net/trivial-gray-streams")
|
|
|
|
|
(license license:x11))))
|
|
|
|
|
|
|
|
|
|
(define-public cl-trivial-gray-streams
|
|
|
|
|
(sbcl-package->cl-source-package sbcl-trivial-gray-streams))
|
|
|
|
|
|
|
|
|
|
(define-public ecl-trivial-gray-streams
|
|
|
|
|
(sbcl-package->ecl-package sbcl-trivial-gray-streams))
|
2016-10-03 04:41:34 +02:00
|
|
|
|
|
|
|
|
|
(define-public sbcl-flexi-streams
|
|
|
|
|
(package
|
|
|
|
|
(name "sbcl-flexi-streams")
|
|
|
|
|
(version "1.0.12")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://github.com/edicl/flexi-streams/archive/v"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "16grnxvs7vqm5s6myf8a5s7vwblzq1kgwj8i7ahz8vwvihm9gzfi"))
|
|
|
|
|
(file-name (string-append "flexi-streams-" version ".tar.gz"))))
|
|
|
|
|
(build-system asdf-build-system/sbcl)
|
|
|
|
|
(inputs `(("sbcl-trivial-gray-streams" ,sbcl-trivial-gray-streams)))
|
|
|
|
|
(synopsis "Implementation of virtual bivalent streams for Common Lisp")
|
|
|
|
|
(description "Flexi-streams is an implementation of \"virtual\" bivalent
|
|
|
|
|
streams that can be layered atop real binary or bivalent streams and that can
|
|
|
|
|
be used to read and write character data in various single- or multi-octet
|
|
|
|
|
encodings which can be changed on the fly. It also supplies in-memory binary
|
|
|
|
|
streams which are similar to string streams.")
|
|
|
|
|
(home-page "http://weitz.de/flexi-streams/")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public cl-flexi-streams
|
|
|
|
|
(sbcl-package->cl-source-package sbcl-flexi-streams))
|
|
|
|
|
|
|
|
|
|
(define-public ecl-flexi-streams
|
|
|
|
|
(sbcl-package->ecl-package sbcl-flexi-streams))
|
2016-10-03 04:41:35 +02:00
|
|
|
|
|
|
|
|
|
(define-public sbcl-cl-ppcre
|
|
|
|
|
(package
|
|
|
|
|
(name "sbcl-cl-ppcre")
|
|
|
|
|
(version "2.0.11")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://github.com/edicl/cl-ppcre/archive/v"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "1i7daxf0wnydb0pgwiym7qh2wy70n14lxd6dyv28sy0naa8p31gd"))
|
|
|
|
|
(file-name (string-append "cl-ppcre-" version ".tar.gz"))))
|
|
|
|
|
(build-system asdf-build-system/sbcl)
|
|
|
|
|
(native-inputs `(("tests:cl-flexi-streams" ,sbcl-flexi-streams)))
|
|
|
|
|
(synopsis "Portable regular expression library for Common Lisp")
|
|
|
|
|
(description "CL-PPCRE is a portable regular expression library for Common
|
|
|
|
|
Lisp, which is compatible with perl. It is pretty fast, thread-safe, and
|
|
|
|
|
compatible with ANSI-compliant Common Lisp implementations.")
|
|
|
|
|
(home-page "http://weitz.de/cl-ppcre/")
|
|
|
|
|
(license license:bsd-2)))
|
|
|
|
|
|
|
|
|
|
(define-public cl-ppcre
|
|
|
|
|
(sbcl-package->cl-source-package sbcl-cl-ppcre))
|
|
|
|
|
|
|
|
|
|
(define-public ecl-cl-ppcre
|
|
|
|
|
(sbcl-package->ecl-package sbcl-cl-ppcre))
|
2016-10-03 04:41:36 +02:00
|
|
|
|
|
|
|
|
|
(define-public sbcl-clx
|
|
|
|
|
(let ((revision "1")
|
|
|
|
|
(commit "1c62774b03c1cf3fe6e5cb532df8b14b44c96b95"))
|
|
|
|
|
(package
|
|
|
|
|
(name "sbcl-clx")
|
|
|
|
|
(version (string-append "0.0.0-" revision "." (string-take commit 7)))
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri
|
|
|
|
|
(git-reference
|
|
|
|
|
(url "https://github.com/sharplispers/clx.git")
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0qffag03ns52kwq9xjns2qg1yr0bf3ba507iwq5cmx5xz0b0rmjm"))
|
|
|
|
|
(file-name (string-append "clx-" version "-checkout"))
|
|
|
|
|
(patches
|
|
|
|
|
(list
|
|
|
|
|
(search-patch "clx-remove-demo.patch")))
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
'(begin
|
|
|
|
|
;; These removed files cause the compiled system to crash when
|
|
|
|
|
;; loading.
|
|
|
|
|
(delete-file-recursively "demo")
|
|
|
|
|
(delete-file "test/trapezoid.lisp")
|
|
|
|
|
(substitute* "clx.asd"
|
|
|
|
|
(("\\(:file \"trapezoid\"\\)") ""))))))
|
|
|
|
|
(build-system asdf-build-system/sbcl)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:special-dependencies '("sb-bsd-sockets")))
|
|
|
|
|
(home-page "http://www.cliki.net/portable-clx")
|
|
|
|
|
(synopsis "X11 client library for Common Lisp")
|
|
|
|
|
(description "CLX is an X11 client library for Common Lisp. The code was
|
|
|
|
|
originally taken from a CMUCL distribution, was modified somewhat in order to
|
|
|
|
|
make it compile and run under SBCL, then a selection of patches were added
|
|
|
|
|
from other CLXes around the net.")
|
|
|
|
|
(license license:x11))))
|
|
|
|
|
|
|
|
|
|
(define-public cl-clx
|
|
|
|
|
(sbcl-package->cl-source-package sbcl-clx))
|
|
|
|
|
|
|
|
|
|
(define-public ecl-clx
|
|
|
|
|
(sbcl-package->ecl-package sbcl-clx))
|
2016-10-07 10:07:41 +02:00
|
|
|
|
|
|
|
|
|
(define-public sbcl-stumpwm
|
|
|
|
|
(package
|
|
|
|
|
(name "sbcl-stumpwm")
|
2017-01-14 19:01:02 +01:00
|
|
|
|
(version "1.0.0")
|
2016-10-07 10:07:41 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://github.com/stumpwm/stumpwm/archive/"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
2017-01-14 19:01:02 +01:00
|
|
|
|
(base32 "1maxp98gh64az3d9vz9br6zdd6rc9fmj2imvax4by85g6kxvdz1i"))
|
2016-10-07 10:07:41 +02:00
|
|
|
|
(file-name (string-append "stumpwm-" version ".tar.gz"))))
|
|
|
|
|
(build-system asdf-build-system/sbcl)
|
|
|
|
|
(inputs `(("sbcl-cl-ppcre" ,sbcl-cl-ppcre)
|
|
|
|
|
("sbcl-clx" ,sbcl-clx)))
|
|
|
|
|
(outputs '("out" "bin"))
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:special-dependencies '("sb-posix")
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'create-symlinks 'build-program
|
|
|
|
|
(lambda* (#:key lisp outputs inputs #:allow-other-keys)
|
|
|
|
|
(build-program
|
|
|
|
|
lisp
|
|
|
|
|
(string-append (assoc-ref outputs "bin") "/bin/stumpwm")
|
|
|
|
|
#:inputs inputs
|
|
|
|
|
#:entry-program '((stumpwm:stumpwm) 0))))
|
|
|
|
|
(add-after 'build-program 'create-desktop-file
|
|
|
|
|
(lambda* (#:key outputs lisp binary? #:allow-other-keys)
|
|
|
|
|
(let ((output (or (assoc-ref outputs "bin")
|
|
|
|
|
(assoc-ref outputs "out")))
|
|
|
|
|
(xsessions "/share/xsessions"))
|
|
|
|
|
(mkdir-p (string-append output xsessions))
|
|
|
|
|
(with-output-to-file
|
|
|
|
|
(string-append output xsessions
|
|
|
|
|
"/stumpwm.desktop")
|
|
|
|
|
(lambda _
|
|
|
|
|
(format #t
|
|
|
|
|
"[Desktop Entry]~@
|
|
|
|
|
Name=stumpwm~@
|
|
|
|
|
Comment=The Stump Window Manager~@
|
|
|
|
|
Exec=~a/bin/stumpwm~@
|
|
|
|
|
TryExec=~@*~a/bin/stumpwm~@
|
|
|
|
|
Icon=~@
|
|
|
|
|
Type=Application~%"
|
|
|
|
|
output)))
|
|
|
|
|
#t))))))
|
|
|
|
|
(synopsis "Window manager written in Common Lisp")
|
|
|
|
|
(description "Stumpwm is a window manager written entirely in Common Lisp.
|
|
|
|
|
It attempts to be highly customizable while relying entirely on the keyboard
|
|
|
|
|
for input. These design decisions reflect the growing popularity of
|
|
|
|
|
productive, customizable lisp based systems.")
|
gnu: Use HTTPS URLs for GitHub home-pages.
* gnu/packages/bioinformatics.scm, gnu/packages/emacs.scm,
gnu/packages/haskell.scm, gnu/packages/libffi.scm, gnu/packages/lisp.scm,
gnu/packages/ocaml.scm, gnu/packages/openstack.scm, gnu/packages/python.scm,
gnu/packages/ruby.scm, gnu/packages/shells.scm, gnu/packages/statistics.scm,
gnu/packages/xdisorg.scm: Use HTTPS URLs for all packages with a home-page on
GitHub.
2017-03-21 22:34:40 +01:00
|
|
|
|
(home-page "https://github.com/stumpwm/stumpwm")
|
2016-10-07 10:07:41 +02:00
|
|
|
|
(license license:gpl2+)
|
|
|
|
|
(properties `((ecl-variant . ,(delay ecl-stumpwm))))))
|
|
|
|
|
|
|
|
|
|
(define-public cl-stumpwm
|
|
|
|
|
(sbcl-package->cl-source-package sbcl-stumpwm))
|
|
|
|
|
|
|
|
|
|
(define-public ecl-stumpwm
|
|
|
|
|
(let ((base (sbcl-package->ecl-package sbcl-stumpwm)))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(outputs '("out"))
|
|
|
|
|
(arguments '()))))
|
2016-10-07 10:07:49 +02:00
|
|
|
|
|
|
|
|
|
(define sbcl-slynk-boot0
|
|
|
|
|
(let ((revision "1")
|
|
|
|
|
(commit "5706cd45d484a4f25795abe8e643509d31968aa2"))
|
|
|
|
|
(package
|
|
|
|
|
(name "sbcl-slynk")
|
|
|
|
|
(version (string-append "1.0.0-beta-" revision "." (string-take commit 7)))
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri
|
|
|
|
|
(git-reference
|
|
|
|
|
(url "https://github.com/joaotavora/sly.git")
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0h4gg3sndl2bf6jdnx9nrf14p9hhi43hagrl0f4v4l11hczl8w81"))
|
|
|
|
|
(file-name (string-append "slynk-" version "-checkout"))
|
|
|
|
|
(modules '((guix build utils)
|
|
|
|
|
(ice-9 ftw)))
|
|
|
|
|
(snippet
|
|
|
|
|
'(begin
|
|
|
|
|
;; Move the contribs into the main source directory for easier
|
|
|
|
|
;; access
|
|
|
|
|
(substitute* "slynk/slynk.asd"
|
|
|
|
|
(("\\.\\./contrib")
|
|
|
|
|
"contrib")
|
|
|
|
|
(("\\(defsystem :slynk-util")
|
|
|
|
|
"(defsystem :slynk-util :depends-on (:slynk)"))
|
|
|
|
|
(substitute* "contrib/slynk-trace-dialog.lisp"
|
|
|
|
|
(("\\(slynk::reset-inspector\\)") ; Causes problems on load
|
|
|
|
|
"nil"))
|
|
|
|
|
(substitute* "contrib/slynk-profiler.lisp"
|
|
|
|
|
(("slynk:to-line")
|
|
|
|
|
"slynk-pprint-to-line"))
|
|
|
|
|
(rename-file "contrib" "slynk/contrib")
|
|
|
|
|
;; Move slynk's contents into the base directory for easier
|
|
|
|
|
;; access
|
|
|
|
|
(for-each
|
|
|
|
|
(lambda (file)
|
|
|
|
|
(unless (string-prefix? "." file)
|
|
|
|
|
(rename-file (string-append "slynk/" file)
|
|
|
|
|
(string-append "./" (basename file)))))
|
|
|
|
|
(scandir "slynk"))))))
|
|
|
|
|
(build-system asdf-build-system/sbcl)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f)) ; No test suite
|
|
|
|
|
(synopsis "Common Lisp IDE for Emacs")
|
|
|
|
|
(description "SLY is a fork of SLIME. It also features a completely
|
|
|
|
|
redesigned REPL based on Emacs's own full-featured comint.el, live code
|
|
|
|
|
annotations, and a consistent interactive button interface. Everything can be
|
|
|
|
|
copied to the REPL. One can create multiple inspectors with independent
|
|
|
|
|
history.")
|
|
|
|
|
(home-page "https://github.com/joaotavora/sly")
|
|
|
|
|
(license license:public-domain)
|
|
|
|
|
(properties `((cl-source-variant . ,(delay cl-slynk)))))))
|
|
|
|
|
|
|
|
|
|
(define-public cl-slynk
|
|
|
|
|
(sbcl-package->cl-source-package sbcl-slynk-boot0))
|
|
|
|
|
|
|
|
|
|
(define ecl-slynk-boot0
|
|
|
|
|
(sbcl-package->ecl-package sbcl-slynk-boot0))
|
|
|
|
|
|
|
|
|
|
(define sbcl-slynk-arglists
|
|
|
|
|
(package
|
|
|
|
|
(inherit sbcl-slynk-boot0)
|
|
|
|
|
(name "sbcl-slynk-arglists")
|
|
|
|
|
(inputs `(("sbcl-slynk" ,sbcl-slynk-boot0)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:asd-file "slynk.asd"
|
|
|
|
|
,@(package-arguments sbcl-slynk-boot0)))))
|
|
|
|
|
|
|
|
|
|
(define ecl-slynk-arglists
|
|
|
|
|
(sbcl-package->ecl-package sbcl-slynk-arglists))
|
|
|
|
|
|
|
|
|
|
(define sbcl-slynk-util
|
|
|
|
|
(package
|
|
|
|
|
(inherit sbcl-slynk-arglists)
|
|
|
|
|
(name "sbcl-slynk-util")))
|
|
|
|
|
|
|
|
|
|
(define ecl-slynk-util
|
|
|
|
|
(sbcl-package->ecl-package sbcl-slynk-util))
|
|
|
|
|
|
|
|
|
|
(define sbcl-slynk-fancy-inspector
|
|
|
|
|
(package
|
|
|
|
|
(inherit sbcl-slynk-arglists)
|
|
|
|
|
(name "sbcl-slynk-fancy-inspector")
|
|
|
|
|
(inputs `(("sbcl-slynk-util" ,sbcl-slynk-util)
|
|
|
|
|
,@(package-inputs sbcl-slynk-arglists)))))
|
|
|
|
|
|
|
|
|
|
(define ecl-slynk-fancy-inspector
|
|
|
|
|
(sbcl-package->ecl-package sbcl-slynk-fancy-inspector))
|
|
|
|
|
|
|
|
|
|
(define sbcl-slynk-package-fu
|
|
|
|
|
(package
|
|
|
|
|
(inherit sbcl-slynk-arglists)
|
|
|
|
|
(name "sbcl-slynk-package-fu")))
|
|
|
|
|
|
|
|
|
|
(define ecl-slynk-package-fu
|
|
|
|
|
(sbcl-package->ecl-package sbcl-slynk-package-fu))
|
|
|
|
|
|
|
|
|
|
(define sbcl-slynk-mrepl
|
|
|
|
|
(package
|
|
|
|
|
(inherit sbcl-slynk-arglists)
|
|
|
|
|
(name "sbcl-slynk-mrepl")))
|
|
|
|
|
|
|
|
|
|
(define ecl-slynk-mrepl
|
|
|
|
|
(sbcl-package->ecl-package sbcl-slynk-mrepl))
|
|
|
|
|
|
|
|
|
|
(define sbcl-slynk-trace-dialog
|
|
|
|
|
(package
|
|
|
|
|
(inherit sbcl-slynk-arglists)
|
|
|
|
|
(name "sbcl-slynk-trace-dialog")))
|
|
|
|
|
|
|
|
|
|
(define ecl-slynk-trace-dialog
|
|
|
|
|
(sbcl-package->ecl-package sbcl-slynk-trace-dialog))
|
|
|
|
|
|
|
|
|
|
(define sbcl-slynk-profiler
|
|
|
|
|
(package
|
|
|
|
|
(inherit sbcl-slynk-arglists)
|
|
|
|
|
(name "sbcl-slynk-profiler")))
|
|
|
|
|
|
|
|
|
|
(define ecl-slynk-profiler
|
|
|
|
|
(sbcl-package->ecl-package sbcl-slynk-profiler))
|
|
|
|
|
|
|
|
|
|
(define sbcl-slynk-stickers
|
|
|
|
|
(package
|
|
|
|
|
(inherit sbcl-slynk-arglists)
|
|
|
|
|
(name "sbcl-slynk-stickers")))
|
|
|
|
|
|
|
|
|
|
(define ecl-slynk-stickers
|
|
|
|
|
(sbcl-package->ecl-package sbcl-slynk-stickers))
|
|
|
|
|
|
|
|
|
|
(define sbcl-slynk-indentation
|
|
|
|
|
(package
|
|
|
|
|
(inherit sbcl-slynk-arglists)
|
|
|
|
|
(name "sbcl-slynk-indentation")))
|
|
|
|
|
|
|
|
|
|
(define ecl-slynk-indentation
|
|
|
|
|
(sbcl-package->ecl-package sbcl-slynk-indentation))
|
|
|
|
|
|
|
|
|
|
(define sbcl-slynk-retro
|
|
|
|
|
(package
|
|
|
|
|
(inherit sbcl-slynk-arglists)
|
|
|
|
|
(name "sbcl-slynk-retro")))
|
|
|
|
|
|
|
|
|
|
(define ecl-slynk-retro
|
|
|
|
|
(sbcl-package->ecl-package sbcl-slynk-retro))
|
|
|
|
|
|
|
|
|
|
(define slynk-systems
|
|
|
|
|
'("slynk"
|
|
|
|
|
"slynk-util"
|
|
|
|
|
"slynk-arglists"
|
|
|
|
|
"slynk-fancy-inspector"
|
|
|
|
|
"slynk-package-fu"
|
|
|
|
|
"slynk-mrepl"
|
|
|
|
|
"slynk-profiler"
|
|
|
|
|
"slynk-trace-dialog"
|
|
|
|
|
"slynk-stickers"
|
|
|
|
|
"slynk-indentation"
|
|
|
|
|
"slynk-retro"))
|
|
|
|
|
|
|
|
|
|
(define-public sbcl-slynk
|
|
|
|
|
(package
|
|
|
|
|
(inherit sbcl-slynk-boot0)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("slynk" ,sbcl-slynk-boot0)
|
|
|
|
|
("slynk-util" ,sbcl-slynk-util)
|
|
|
|
|
("slynk-arglists" ,sbcl-slynk-arglists)
|
|
|
|
|
("slynk-fancy-inspector" ,sbcl-slynk-fancy-inspector)
|
|
|
|
|
("slynk-package-fu" ,sbcl-slynk-package-fu)
|
|
|
|
|
("slynk-mrepl" ,sbcl-slynk-mrepl)
|
|
|
|
|
("slynk-profiler" ,sbcl-slynk-profiler)
|
|
|
|
|
("slynk-trace-dialog" ,sbcl-slynk-trace-dialog)
|
|
|
|
|
("slynk-stickers" ,sbcl-slynk-stickers)
|
|
|
|
|
("slynk-indentation" ,sbcl-slynk-indentation)
|
|
|
|
|
("slynk-retro" ,sbcl-slynk-retro)))
|
|
|
|
|
(native-inputs `(("sbcl" ,sbcl)))
|
|
|
|
|
(build-system trivial-build-system)
|
|
|
|
|
(source #f)
|
|
|
|
|
(outputs '("out" "image"))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:modules ((guix build union)
|
|
|
|
|
(guix build utils)
|
|
|
|
|
(guix build lisp-utils))
|
|
|
|
|
#:builder
|
|
|
|
|
(begin
|
|
|
|
|
(use-modules (ice-9 match)
|
|
|
|
|
(srfi srfi-1)
|
|
|
|
|
(guix build union)
|
|
|
|
|
(guix build lisp-utils))
|
|
|
|
|
|
|
|
|
|
(union-build
|
|
|
|
|
(assoc-ref %outputs "out")
|
|
|
|
|
(filter-map
|
|
|
|
|
(match-lambda
|
|
|
|
|
((name . path)
|
|
|
|
|
(if (string-prefix? "slynk" name) path #f)))
|
|
|
|
|
%build-inputs))
|
|
|
|
|
|
|
|
|
|
(prepend-to-source-registry
|
|
|
|
|
(string-append (assoc-ref %outputs "out") "//"))
|
|
|
|
|
(build-image "sbcl"
|
|
|
|
|
(string-append
|
|
|
|
|
(assoc-ref %outputs "image")
|
|
|
|
|
"/bin/slynk")
|
|
|
|
|
#:inputs %build-inputs
|
|
|
|
|
#:dependencies ',slynk-systems))))))
|
|
|
|
|
|
|
|
|
|
(define-public ecl-slynk
|
|
|
|
|
(package
|
|
|
|
|
(inherit sbcl-slynk)
|
|
|
|
|
(name "ecl-slynk")
|
|
|
|
|
(inputs
|
|
|
|
|
(map (match-lambda
|
|
|
|
|
((name pkg . _)
|
|
|
|
|
(list name (sbcl-package->ecl-package pkg))))
|
|
|
|
|
(package-inputs sbcl-slynk)))
|
|
|
|
|
(native-inputs '())
|
|
|
|
|
(outputs '("out"))
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:modules ((guix build union))
|
|
|
|
|
#:builder
|
|
|
|
|
(begin
|
|
|
|
|
(use-modules (ice-9 match)
|
|
|
|
|
(guix build union))
|
|
|
|
|
(match %build-inputs
|
|
|
|
|
(((names . paths) ...)
|
|
|
|
|
(union-build (assoc-ref %outputs "out")
|
|
|
|
|
paths))))))))
|
2016-10-07 10:07:57 +02:00
|
|
|
|
|
|
|
|
|
(define-public sbcl-stumpwm+slynk
|
|
|
|
|
(package
|
|
|
|
|
(inherit sbcl-stumpwm)
|
|
|
|
|
(name "sbcl-stumpwm-with-slynk")
|
|
|
|
|
(outputs '("out"))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("stumpwm" ,sbcl-stumpwm)
|
|
|
|
|
("slynk" ,sbcl-slynk)))
|
|
|
|
|
(arguments
|
|
|
|
|
(substitute-keyword-arguments (package-arguments sbcl-stumpwm)
|
|
|
|
|
((#:phases phases)
|
|
|
|
|
`(modify-phases ,phases
|
|
|
|
|
(replace 'build-program
|
|
|
|
|
(lambda* (#:key lisp inputs outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(program (string-append out "/bin/stumpwm")))
|
|
|
|
|
(build-program lisp program
|
|
|
|
|
#:inputs inputs
|
|
|
|
|
#:entry-program '((stumpwm:stumpwm) 0)
|
|
|
|
|
#:dependencies '("stumpwm"
|
|
|
|
|
,@slynk-systems))
|
|
|
|
|
;; Remove unneeded file.
|
|
|
|
|
(delete-file (string-append out "/bin/stumpwm-exec.fasl"))
|
|
|
|
|
#t)))
|
|
|
|
|
(delete 'copy-source)
|
|
|
|
|
(delete 'build)
|
|
|
|
|
(delete 'check)
|
|
|
|
|
(delete 'link-dependencies)
|
|
|
|
|
(delete 'cleanup)
|
|
|
|
|
(delete 'create-symlinks)))))))
|