2021-04-16 17:08:22 -04:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2022-06-13 05:49:15 -04:00
|
|
|
;;; Copyright © 2013-2016, 2018, 2020-2022 Ludovic Courtès <ludo@gnu.org>
|
2021-04-16 17:08:22 -04:00
|
|
|
;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
|
|
|
|
;;; Copyright © 2020 Pierre Neidhardt <mail@ambrevar.xyz>
|
gnu: racket: Update to 8.8.
* gnu/packages/patches/racket-backport-8.7-pkg-strip.patch: Remove file.
* gnu/local.mk (dist_patch_DATA): Delete it.
* gnu/packages/racket.scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.8.
(%zuo-version): Update to 1.6.
(racket)[inputs]<algol60, cext-lib, deinprogramm, draw, drracket>
<expeditor, gui, htdp, math, pict, r5rs, redex, sasl, scribble>
<typed-racket, string-constants, syntax-color>: Update checksums.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.14.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2023-02-10 19:49:34 -05:00
|
|
|
;;; Copyright © 2021, 2022, 2023 Philip McGrath <philip@philipmcgrath.com>
|
2021-11-19 06:06:40 -05:00
|
|
|
;;; Copyright © 2021 jgart <jgart@dismail.de>
|
2021-04-16 17:08:22 -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/>.
|
|
|
|
|
|
|
|
(define-module (gnu packages racket)
|
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
|
|
|
#:use-module (guix git-download)
|
|
|
|
#:use-module (guix utils)
|
|
|
|
#:use-module (guix gexp)
|
|
|
|
#:use-module (guix build-system gnu)
|
2022-06-13 05:49:15 -04:00
|
|
|
#:use-module (guix diagnostics)
|
|
|
|
#:use-module (guix i18n)
|
2023-08-23 20:08:05 -04:00
|
|
|
#:use-module ((guix search-paths) #:select ($SSL_CERT_DIR $SSL_CERT_FILE))
|
2021-04-16 17:08:22 -04:00
|
|
|
#:use-module (srfi srfi-1)
|
2022-02-27 16:28:59 -05:00
|
|
|
#:use-module (srfi srfi-26)
|
2022-06-13 05:49:15 -04:00
|
|
|
#:use-module (srfi srfi-34)
|
2021-04-16 17:08:22 -04:00
|
|
|
#:use-module (ice-9 match)
|
|
|
|
#:use-module (gnu packages)
|
gnu: racket-minimal: Bootstrap from C.
This commit bootstraps the Racket compiler and runtime system from source,
including Racket CS as well as both variants of Racket BC. (One remaining
limitation is discussed in comments added to gnu/packages/racket.scm.)
In the process, it moves to building minimal Racket from the Git repository,
rather than the packaged source tarballs. The Git repository is slightly
better as the ``corresponding source'':
1. A few packages especially closely tied to the Racket core implementation
(like "compiler-lib", "base", and "racket-doc") are developed in the
same Git repository. Having them use the same Guix origin, too, will
help to keep them in sync.
2. The top-level Makefile in the Git repository is an important
``script[] used to control compilation and installation.''
In particular, it cooperates with the "distro-build" package to
create the source tarballs and installers for a Racket distribution.
(Racket supports a notion of custom distributions.)
3. It is ``the preferred form ... for making modifications'' to the core
Racket implementation.
Racket releases are tagged in the Git repository (e.g. "v8.1"). At the
beginning of each release cycle, a branch is created to stabilizer a version
for extra testing. Active development happens on the "master" branch.
* gnu/packages/racket-minimal-sh-via-rktio.patch: Adjust for extra directory
layer.
* gnu/local/racket.scm (cfg-flag:sh-for-rktio, cfg-flag:enable-lt,
cfg-flag:enable-racket, unpack-nanopass+stex,
%main-repo-main-distribution-pkgs): New private variables.
* gnu/local/racket.scm (racket-minimal)[source]: Use Git.
[source](snippet): Unbundle nanopass, stex, and libffi.
[native-inputs]: Use racket-bootstrap-chez-bootfiles, plus its
dependencies (for Chez, plus a Racket for bootstrap pig).
[arguments]: Revise extensively.
* gnu/local/racket.scm (racket-minimal-bc-3m, racket-minimal-bc-cgc): New
packages, hidden at least for now.
(racket-bootstrap-chez-bootfiles): Another new package, but this one is
especially likely to stay hidden.
* gnu/local/racket.scm (racket)[origin](snippet): Unbundle packages
developed in the main Git repository, but leave their links.rktd and
pkgs.rktd entries in place.
[native-inputs]: Add the main Racket Git repository.
[arguments](#:phases): Adjust 'unpack-packages to also unpack package
sources from the main Racket Git repository.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-07-19 02:31:43 -04:00
|
|
|
#:use-module (gnu packages autotools)
|
|
|
|
#:use-module (gnu packages chez)
|
2021-04-16 17:08:22 -04:00
|
|
|
#:use-module (gnu packages compression)
|
|
|
|
#:use-module (gnu packages databases)
|
|
|
|
#:use-module (gnu packages fontutils)
|
|
|
|
#:use-module (gnu packages gl)
|
|
|
|
#:use-module (gnu packages glib)
|
|
|
|
#:use-module (gnu packages gtk)
|
|
|
|
#:use-module (gnu packages image)
|
|
|
|
#:use-module (gnu packages libedit)
|
gnu: racket-minimal: Bootstrap from C.
This commit bootstraps the Racket compiler and runtime system from source,
including Racket CS as well as both variants of Racket BC. (One remaining
limitation is discussed in comments added to gnu/packages/racket.scm.)
In the process, it moves to building minimal Racket from the Git repository,
rather than the packaged source tarballs. The Git repository is slightly
better as the ``corresponding source'':
1. A few packages especially closely tied to the Racket core implementation
(like "compiler-lib", "base", and "racket-doc") are developed in the
same Git repository. Having them use the same Guix origin, too, will
help to keep them in sync.
2. The top-level Makefile in the Git repository is an important
``script[] used to control compilation and installation.''
In particular, it cooperates with the "distro-build" package to
create the source tarballs and installers for a Racket distribution.
(Racket supports a notion of custom distributions.)
3. It is ``the preferred form ... for making modifications'' to the core
Racket implementation.
Racket releases are tagged in the Git repository (e.g. "v8.1"). At the
beginning of each release cycle, a branch is created to stabilizer a version
for extra testing. Active development happens on the "master" branch.
* gnu/packages/racket-minimal-sh-via-rktio.patch: Adjust for extra directory
layer.
* gnu/local/racket.scm (cfg-flag:sh-for-rktio, cfg-flag:enable-lt,
cfg-flag:enable-racket, unpack-nanopass+stex,
%main-repo-main-distribution-pkgs): New private variables.
* gnu/local/racket.scm (racket-minimal)[source]: Use Git.
[source](snippet): Unbundle nanopass, stex, and libffi.
[native-inputs]: Use racket-bootstrap-chez-bootfiles, plus its
dependencies (for Chez, plus a Racket for bootstrap pig).
[arguments]: Revise extensively.
* gnu/local/racket.scm (racket-minimal-bc-3m, racket-minimal-bc-cgc): New
packages, hidden at least for now.
(racket-bootstrap-chez-bootfiles): Another new package, but this one is
especially likely to stay hidden.
* gnu/local/racket.scm (racket)[origin](snippet): Unbundle packages
developed in the main Git repository, but leave their links.rktd and
pkgs.rktd entries in place.
[native-inputs]: Add the main Racket Git repository.
[arguments](#:phases): Adjust 'unpack-packages to also unpack package
sources from the main Racket Git repository.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-07-19 02:31:43 -04:00
|
|
|
#:use-module (gnu packages libffi)
|
2021-04-16 17:08:22 -04:00
|
|
|
#:use-module (gnu packages multiprecision)
|
2022-02-27 16:28:58 -05:00
|
|
|
#:use-module (gnu packages ncurses)
|
2021-04-16 17:08:22 -04:00
|
|
|
#:use-module (gnu packages sqlite)
|
|
|
|
#:use-module (gnu packages tls)
|
2022-02-27 16:28:57 -05:00
|
|
|
#:use-module (gnu packages xorg)
|
|
|
|
#:use-module ((guix licenses) #:prefix license:))
|
2021-04-16 17:08:22 -04:00
|
|
|
|
gnu: racket: Update to 8.6.
Also, update 'chez-scheme-for-racket' to 9.5.9.2.
* gnu/packages/patches/racket-chez-scheme-bin-sh.patch: Refresh patch.
* gnu/packages/patches/racket-backport-8.6-cross-install.patch,
gnu/packages/patches/racket-backport-8.6-docindex-write.patch,
gnu/packages/patches/racket-backport-8.6-hurd.patch: New patches.
* gnu/local.mk (dist_patch_DATA): Add them.
* gnu/packages/racket.scm (%racket-origin)[patches]: Use them and the
patches for Zuo.
(%racket-version): Update to 8.6.
(zuo)[version]: Refer to '%racket-version'.
[origin]: Use '%racket-origin'.
(racket-vm-cgc)[native-inputs]: Add 'zuo'.
[arguments]<#:make-flags>: Use 'zuo' from 'native-inputs'.
(racket)[inputs]<data, db, deinprogramm, draw, drracket, errortrace,
gui, htdp, math, option-contract, parser-tools, pict, rackunit, realm,
redex, scribble, typed-racket, string-constants, swindle, syntax-color,
web-server>: Update checksums.
* gnu/packages/chez.scm (target-chez-os): Handle Hurd and QNX.
(%chez-features-table): Likewise.
(chez-scheme-for-racket): Update to 9.5.9.2.
[native-inputs]: Add 'zuo'.
[arguments]<#:out-of-source?>: Use out-of-source build.
<#:tests?>: Skip them due to ongoing problems.
<#:configure-flags>: Add '--install-csug=' and '--installreleasenotes='.
<#:make-flags>: Use 'zuo' from 'native-inputs'. Supply 'STEXLIB=' here,
rather than in a phase.
<#:phases>: Replace 'install-docs' using new 'make' target.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-08-27 14:55:48 -04:00
|
|
|
;; COMMENTARY:
|
gnu: racket-minimal: Bootstrap from C.
This commit bootstraps the Racket compiler and runtime system from source,
including Racket CS as well as both variants of Racket BC. (One remaining
limitation is discussed in comments added to gnu/packages/racket.scm.)
In the process, it moves to building minimal Racket from the Git repository,
rather than the packaged source tarballs. The Git repository is slightly
better as the ``corresponding source'':
1. A few packages especially closely tied to the Racket core implementation
(like "compiler-lib", "base", and "racket-doc") are developed in the
same Git repository. Having them use the same Guix origin, too, will
help to keep them in sync.
2. The top-level Makefile in the Git repository is an important
``script[] used to control compilation and installation.''
In particular, it cooperates with the "distro-build" package to
create the source tarballs and installers for a Racket distribution.
(Racket supports a notion of custom distributions.)
3. It is ``the preferred form ... for making modifications'' to the core
Racket implementation.
Racket releases are tagged in the Git repository (e.g. "v8.1"). At the
beginning of each release cycle, a branch is created to stabilizer a version
for extra testing. Active development happens on the "master" branch.
* gnu/packages/racket-minimal-sh-via-rktio.patch: Adjust for extra directory
layer.
* gnu/local/racket.scm (cfg-flag:sh-for-rktio, cfg-flag:enable-lt,
cfg-flag:enable-racket, unpack-nanopass+stex,
%main-repo-main-distribution-pkgs): New private variables.
* gnu/local/racket.scm (racket-minimal)[source]: Use Git.
[source](snippet): Unbundle nanopass, stex, and libffi.
[native-inputs]: Use racket-bootstrap-chez-bootfiles, plus its
dependencies (for Chez, plus a Racket for bootstrap pig).
[arguments]: Revise extensively.
* gnu/local/racket.scm (racket-minimal-bc-3m, racket-minimal-bc-cgc): New
packages, hidden at least for now.
(racket-bootstrap-chez-bootfiles): Another new package, but this one is
especially likely to stay hidden.
* gnu/local/racket.scm (racket)[origin](snippet): Unbundle packages
developed in the main Git repository, but leave their links.rktd and
pkgs.rktd entries in place.
[native-inputs]: Add the main Racket Git repository.
[arguments](#:phases): Adjust 'unpack-packages to also unpack package
sources from the main Racket Git repository.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-07-19 02:31:43 -04:00
|
|
|
;;
|
2022-02-27 16:29:06 -05:00
|
|
|
;; Anatomy of Racket:
|
|
|
|
;; ------------------
|
|
|
|
;;
|
|
|
|
;; The main Racket Git repository (<https://github.com/racket/racket>) is
|
|
|
|
;; organized broadly like this:
|
|
|
|
;;
|
|
|
|
;; .
|
|
|
|
;; ├── Makefile
|
|
|
|
;; ├── pkgs/
|
|
|
|
;; └── racket/
|
|
|
|
;; ├── collects/
|
|
|
|
;; └── src/
|
|
|
|
;; ├── configure
|
|
|
|
;; ├── Makefile.in
|
|
|
|
;; ├── bc/
|
|
|
|
;; ├── cs/
|
|
|
|
;; ├── ChezScheme/
|
gnu: racket: Update to 8.6.
Also, update 'chez-scheme-for-racket' to 9.5.9.2.
* gnu/packages/patches/racket-chez-scheme-bin-sh.patch: Refresh patch.
* gnu/packages/patches/racket-backport-8.6-cross-install.patch,
gnu/packages/patches/racket-backport-8.6-docindex-write.patch,
gnu/packages/patches/racket-backport-8.6-hurd.patch: New patches.
* gnu/local.mk (dist_patch_DATA): Add them.
* gnu/packages/racket.scm (%racket-origin)[patches]: Use them and the
patches for Zuo.
(%racket-version): Update to 8.6.
(zuo)[version]: Refer to '%racket-version'.
[origin]: Use '%racket-origin'.
(racket-vm-cgc)[native-inputs]: Add 'zuo'.
[arguments]<#:make-flags>: Use 'zuo' from 'native-inputs'.
(racket)[inputs]<data, db, deinprogramm, draw, drracket, errortrace,
gui, htdp, math, option-contract, parser-tools, pict, rackunit, realm,
redex, scribble, typed-racket, string-constants, swindle, syntax-color,
web-server>: Update checksums.
* gnu/packages/chez.scm (target-chez-os): Handle Hurd and QNX.
(%chez-features-table): Likewise.
(chez-scheme-for-racket): Update to 9.5.9.2.
[native-inputs]: Add 'zuo'.
[arguments]<#:out-of-source?>: Use out-of-source build.
<#:tests?>: Skip them due to ongoing problems.
<#:configure-flags>: Add '--install-csug=' and '--installreleasenotes='.
<#:make-flags>: Use 'zuo' from 'native-inputs'. Supply 'STEXLIB=' here,
rather than in a phase.
<#:phases>: Replace 'install-docs' using new 'make' target.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-08-27 14:55:48 -04:00
|
|
|
;; ├── zuo/
|
2022-02-27 16:29:06 -05:00
|
|
|
;; └── ...
|
|
|
|
;;
|
|
|
|
;; The 'racket/src/' directory contains the source of the runtime system, core
|
|
|
|
;; compiler, and primitives for the major Racket implementations: this layer
|
gnu: racket: Update to 8.6.
Also, update 'chez-scheme-for-racket' to 9.5.9.2.
* gnu/packages/patches/racket-chez-scheme-bin-sh.patch: Refresh patch.
* gnu/packages/patches/racket-backport-8.6-cross-install.patch,
gnu/packages/patches/racket-backport-8.6-docindex-write.patch,
gnu/packages/patches/racket-backport-8.6-hurd.patch: New patches.
* gnu/local.mk (dist_patch_DATA): Add them.
* gnu/packages/racket.scm (%racket-origin)[patches]: Use them and the
patches for Zuo.
(%racket-version): Update to 8.6.
(zuo)[version]: Refer to '%racket-version'.
[origin]: Use '%racket-origin'.
(racket-vm-cgc)[native-inputs]: Add 'zuo'.
[arguments]<#:make-flags>: Use 'zuo' from 'native-inputs'.
(racket)[inputs]<data, db, deinprogramm, draw, drracket, errortrace,
gui, htdp, math, option-contract, parser-tools, pict, rackunit, realm,
redex, scribble, typed-racket, string-constants, swindle, syntax-color,
web-server>: Update checksums.
* gnu/packages/chez.scm (target-chez-os): Handle Hurd and QNX.
(%chez-features-table): Likewise.
(chez-scheme-for-racket): Update to 9.5.9.2.
[native-inputs]: Add 'zuo'.
[arguments]<#:out-of-source?>: Use out-of-source build.
<#:tests?>: Skip them due to ongoing problems.
<#:configure-flags>: Add '--install-csug=' and '--installreleasenotes='.
<#:make-flags>: Use 'zuo' from 'native-inputs'. Supply 'STEXLIB=' here,
rather than in a phase.
<#:phases>: Replace 'install-docs' using new 'make' target.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-08-27 14:55:48 -04:00
|
|
|
;; is called the ``Racket VM''. It is basically a normal Autoconf project,
|
|
|
|
;; except that the makefiles just run Zuo to do the real work. (Even when
|
|
|
|
;; Racket VM implementations use components implemented in Racket, they are
|
|
|
|
;; compiled in special modes to produce VM primitives.) (There are or have
|
|
|
|
;; been experimental Racket VM implementations elsewhere,
|
2022-02-27 16:29:06 -05:00
|
|
|
;; e.g. <https://github.com/pycket/pycket>.)
|
|
|
|
;;
|
|
|
|
;; The 'racket/collects/' directory contains ``built in'' Racket libraries
|
|
|
|
;; that are not part of any package, including the implementation of
|
|
|
|
;; 'racket/base': in particular, it must contain enough to implement `raco pkg
|
|
|
|
;; install'. It is theoretically possible to use the Racket VM layer without
|
|
|
|
;; the main collections, but it is not stable or useful.
|
|
|
|
;;
|
|
|
|
;; The 'pkgs/' directory contains Racket packages that are especially closely
|
|
|
|
;; tied to the implementation of the Racket VM, including 'compiler-lib',
|
|
|
|
;; 'racket-doc', and 'racket-test'. Some of these packages depend on Racket
|
|
|
|
;; packages that are developed in other Git repositories, predominantly but
|
|
|
|
;; not exclusively under the 'racket' GitHub organization. Conversely, not all
|
|
|
|
;; of the packages developed in the main Git repository are part of the main
|
|
|
|
;; Racket distribution. (Additionally, components of the Racket VM that are
|
|
|
|
;; implemented in Racket can be installed as packages, mostly for ease of
|
|
|
|
;; development.)
|
|
|
|
;;
|
|
|
|
;; The top-level 'Makefile' is more like a directory of scripts: it has
|
|
|
|
;; convienience targets for developing Racket, and it cooperates with the
|
gnu: racket: Update to 8.6.
Also, update 'chez-scheme-for-racket' to 9.5.9.2.
* gnu/packages/patches/racket-chez-scheme-bin-sh.patch: Refresh patch.
* gnu/packages/patches/racket-backport-8.6-cross-install.patch,
gnu/packages/patches/racket-backport-8.6-docindex-write.patch,
gnu/packages/patches/racket-backport-8.6-hurd.patch: New patches.
* gnu/local.mk (dist_patch_DATA): Add them.
* gnu/packages/racket.scm (%racket-origin)[patches]: Use them and the
patches for Zuo.
(%racket-version): Update to 8.6.
(zuo)[version]: Refer to '%racket-version'.
[origin]: Use '%racket-origin'.
(racket-vm-cgc)[native-inputs]: Add 'zuo'.
[arguments]<#:make-flags>: Use 'zuo' from 'native-inputs'.
(racket)[inputs]<data, db, deinprogramm, draw, drracket, errortrace,
gui, htdp, math, option-contract, parser-tools, pict, rackunit, realm,
redex, scribble, typed-racket, string-constants, swindle, syntax-color,
web-server>: Update checksums.
* gnu/packages/chez.scm (target-chez-os): Handle Hurd and QNX.
(%chez-features-table): Likewise.
(chez-scheme-for-racket): Update to 9.5.9.2.
[native-inputs]: Add 'zuo'.
[arguments]<#:out-of-source?>: Use out-of-source build.
<#:tests?>: Skip them due to ongoing problems.
<#:configure-flags>: Add '--install-csug=' and '--installreleasenotes='.
<#:make-flags>: Use 'zuo' from 'native-inputs'. Supply 'STEXLIB=' here,
rather than in a phase.
<#:phases>: Replace 'install-docs' using new 'make' target.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-08-27 14:55:48 -04:00
|
|
|
;; 'distro-build' package to assemble custom Racket distributions. (Again,
|
|
|
|
;; the makefile just delegates to Zuo.) It is not part of Racket source
|
|
|
|
;; distributions: the root of a source distribution is basically 'racket/src'
|
|
|
|
;; with some extra package sources and configuration added.
|
2022-02-27 16:29:06 -05:00
|
|
|
;;
|
|
|
|
;; A ''minimal Racket'' installation includes two packages: 'base', which is a
|
|
|
|
;; sort of bridge between the current ``built-in'' collections and the package
|
|
|
|
;; system's model of dependencies, and 'racket-lib', which, for installations
|
|
|
|
;; that can not rely on a system package manager, pulls in the SQLite and
|
|
|
|
;; OpenSSL shared libraries as platform-specific dependencies for use by the
|
|
|
|
;; ``built-in'' collections.
|
|
|
|
;;
|
|
|
|
;; The main Racket distribution consists of installing the 'main-distribution'
|
|
|
|
;; package and all of its dependencies.
|
|
|
|
;;
|
|
|
|
;; The default mode when building Racket (or installing it with the released
|
|
|
|
;; installers) is an ``in-place build'', which produces a self-contained,
|
|
|
|
;; relocatable, roughly FHS-like directory. (Racket also supports
|
|
|
|
;; ``Unix-style'' installations, which rearrange the parts of an in-place
|
|
|
|
;; build into Racket-specific subdirectories and generally tries to work for
|
|
|
|
;; installation into an FHS-based system.) Certain tools, e.g. 'distro-build'
|
|
|
|
;; and 'raco cross', are able to work with an in-place Racket build.
|
|
|
|
;;
|
|
|
|
;; This file defines the packages 'racket-vm-cgc', 'racket-vm-bc', and
|
|
|
|
;; 'racket-vm-cs'. All three are in-place builds of 'racket/src/' and
|
|
|
|
;; 'racket/collects/' and are installed to 'opt/racket-vm/' in the store
|
2022-08-27 14:55:54 -04:00
|
|
|
;; output.
|
2022-02-27 16:29:06 -05:00
|
|
|
;;
|
2022-08-27 14:55:54 -04:00
|
|
|
;; Using 'racket-vm-cs', we then define the packages 'racket-minimal' and
|
gnu: racket: Update to 8.6.
Also, update 'chez-scheme-for-racket' to 9.5.9.2.
* gnu/packages/patches/racket-chez-scheme-bin-sh.patch: Refresh patch.
* gnu/packages/patches/racket-backport-8.6-cross-install.patch,
gnu/packages/patches/racket-backport-8.6-docindex-write.patch,
gnu/packages/patches/racket-backport-8.6-hurd.patch: New patches.
* gnu/local.mk (dist_patch_DATA): Add them.
* gnu/packages/racket.scm (%racket-origin)[patches]: Use them and the
patches for Zuo.
(%racket-version): Update to 8.6.
(zuo)[version]: Refer to '%racket-version'.
[origin]: Use '%racket-origin'.
(racket-vm-cgc)[native-inputs]: Add 'zuo'.
[arguments]<#:make-flags>: Use 'zuo' from 'native-inputs'.
(racket)[inputs]<data, db, deinprogramm, draw, drracket, errortrace,
gui, htdp, math, option-contract, parser-tools, pict, rackunit, realm,
redex, scribble, typed-racket, string-constants, swindle, syntax-color,
web-server>: Update checksums.
* gnu/packages/chez.scm (target-chez-os): Handle Hurd and QNX.
(%chez-features-table): Likewise.
(chez-scheme-for-racket): Update to 9.5.9.2.
[native-inputs]: Add 'zuo'.
[arguments]<#:out-of-source?>: Use out-of-source build.
<#:tests?>: Skip them due to ongoing problems.
<#:configure-flags>: Add '--install-csug=' and '--installreleasenotes='.
<#:make-flags>: Use 'zuo' from 'native-inputs'. Supply 'STEXLIB=' here,
rather than in a phase.
<#:phases>: Replace 'install-docs' using new 'make' target.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-08-27 14:55:48 -04:00
|
|
|
;; 'racket'. These use Racket's support for ``layered installations'', which
|
|
|
|
;; allow an immutable base layer to be extended with additional packages.
|
|
|
|
;; They use the layer configuration directly provide ready-to-install FHS-like
|
|
|
|
;; trees, rather than relying on the built in ``Unix-style install''
|
|
|
|
;; mechanism.
|
2022-02-27 16:29:06 -05:00
|
|
|
;;
|
|
|
|
;; Bootstrapping Racket:
|
|
|
|
;; ---------------------
|
|
|
|
;;
|
|
|
|
;; Here's how bootstrapping Racket works:
|
gnu: racket-minimal: Bootstrap from C.
This commit bootstraps the Racket compiler and runtime system from source,
including Racket CS as well as both variants of Racket BC. (One remaining
limitation is discussed in comments added to gnu/packages/racket.scm.)
In the process, it moves to building minimal Racket from the Git repository,
rather than the packaged source tarballs. The Git repository is slightly
better as the ``corresponding source'':
1. A few packages especially closely tied to the Racket core implementation
(like "compiler-lib", "base", and "racket-doc") are developed in the
same Git repository. Having them use the same Guix origin, too, will
help to keep them in sync.
2. The top-level Makefile in the Git repository is an important
``script[] used to control compilation and installation.''
In particular, it cooperates with the "distro-build" package to
create the source tarballs and installers for a Racket distribution.
(Racket supports a notion of custom distributions.)
3. It is ``the preferred form ... for making modifications'' to the core
Racket implementation.
Racket releases are tagged in the Git repository (e.g. "v8.1"). At the
beginning of each release cycle, a branch is created to stabilizer a version
for extra testing. Active development happens on the "master" branch.
* gnu/packages/racket-minimal-sh-via-rktio.patch: Adjust for extra directory
layer.
* gnu/local/racket.scm (cfg-flag:sh-for-rktio, cfg-flag:enable-lt,
cfg-flag:enable-racket, unpack-nanopass+stex,
%main-repo-main-distribution-pkgs): New private variables.
* gnu/local/racket.scm (racket-minimal)[source]: Use Git.
[source](snippet): Unbundle nanopass, stex, and libffi.
[native-inputs]: Use racket-bootstrap-chez-bootfiles, plus its
dependencies (for Chez, plus a Racket for bootstrap pig).
[arguments]: Revise extensively.
* gnu/local/racket.scm (racket-minimal-bc-3m, racket-minimal-bc-cgc): New
packages, hidden at least for now.
(racket-bootstrap-chez-bootfiles): Another new package, but this one is
especially likely to stay hidden.
* gnu/local/racket.scm (racket)[origin](snippet): Unbundle packages
developed in the main Git repository, but leave their links.rktd and
pkgs.rktd entries in place.
[native-inputs]: Add the main Racket Git repository.
[arguments](#:phases): Adjust 'unpack-packages to also unpack package
sources from the main Racket Git repository.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-07-19 02:31:43 -04:00
|
|
|
;;
|
|
|
|
;; - Racket BC [CGC] can be built with only a C compiler (except for
|
|
|
|
;; one caveat discussed below).
|
|
|
|
;; - Racket BC [3M] needs an existing Racket to run "xform",
|
|
|
|
;; which transforms its own C source code to add additional annotations
|
|
|
|
;; for the precise garbage collector.
|
|
|
|
;; - Racket CS needs (bootfiles for) Racket's fork of Chez Scheme.
|
|
|
|
;; It also needs an existing Racket to compile Racket-implemented
|
|
|
|
;; parts of the runtime system to R6RS libraries.
|
|
|
|
;; - Chez Scheme also needs bootfiles for itself, but Racket can simulate
|
|
|
|
;; enough of Chez Scheme to load Racket's fork of the Chez Scheme compiler
|
|
|
|
;; purely from source into Racket and apply the compiler to itself,
|
|
|
|
;; producing the needed bootfiles (albeit very slowly).
|
|
|
|
;; Any variant of Racket since version 7.1 can run the simulation.
|
|
|
|
;;
|
|
|
|
;; So, we build CGC to build 3M to build bootfiles and CS.
|
|
|
|
;;
|
2022-02-27 16:29:06 -05:00
|
|
|
;; (Note: since the CGC variant is basically only for bootstrapping, we
|
|
|
|
;; often use "BC" to mean "3M", consistent with `(banner)` and the
|
|
|
|
;; suffixes used on executables when more than one variant co-exists.)
|
|
|
|
;;
|
gnu: racket-minimal: Bootstrap from C.
This commit bootstraps the Racket compiler and runtime system from source,
including Racket CS as well as both variants of Racket BC. (One remaining
limitation is discussed in comments added to gnu/packages/racket.scm.)
In the process, it moves to building minimal Racket from the Git repository,
rather than the packaged source tarballs. The Git repository is slightly
better as the ``corresponding source'':
1. A few packages especially closely tied to the Racket core implementation
(like "compiler-lib", "base", and "racket-doc") are developed in the
same Git repository. Having them use the same Guix origin, too, will
help to keep them in sync.
2. The top-level Makefile in the Git repository is an important
``script[] used to control compilation and installation.''
In particular, it cooperates with the "distro-build" package to
create the source tarballs and installers for a Racket distribution.
(Racket supports a notion of custom distributions.)
3. It is ``the preferred form ... for making modifications'' to the core
Racket implementation.
Racket releases are tagged in the Git repository (e.g. "v8.1"). At the
beginning of each release cycle, a branch is created to stabilizer a version
for extra testing. Active development happens on the "master" branch.
* gnu/packages/racket-minimal-sh-via-rktio.patch: Adjust for extra directory
layer.
* gnu/local/racket.scm (cfg-flag:sh-for-rktio, cfg-flag:enable-lt,
cfg-flag:enable-racket, unpack-nanopass+stex,
%main-repo-main-distribution-pkgs): New private variables.
* gnu/local/racket.scm (racket-minimal)[source]: Use Git.
[source](snippet): Unbundle nanopass, stex, and libffi.
[native-inputs]: Use racket-bootstrap-chez-bootfiles, plus its
dependencies (for Chez, plus a Racket for bootstrap pig).
[arguments]: Revise extensively.
* gnu/local/racket.scm (racket-minimal-bc-3m, racket-minimal-bc-cgc): New
packages, hidden at least for now.
(racket-bootstrap-chez-bootfiles): Another new package, but this one is
especially likely to stay hidden.
* gnu/local/racket.scm (racket)[origin](snippet): Unbundle packages
developed in the main Git repository, but leave their links.rktd and
pkgs.rktd entries in place.
[native-inputs]: Add the main Racket Git repository.
[arguments](#:phases): Adjust 'unpack-packages to also unpack package
sources from the main Racket Git repository.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-07-19 02:31:43 -04:00
|
|
|
;; One remaining bootstrapping limitation is that Racket's reader, module
|
|
|
|
;; system, and macro expander are implemented in Racket. For Racket CS,
|
|
|
|
;; they are compiled to R6RS libraries as discussed above. This note from the
|
|
|
|
;; README file applies to all such subsystems:
|
|
|
|
;;
|
|
|
|
;; The Racket version must be practically the same as the current Racket
|
|
|
|
;; verson, although it can be the Racket BC implementation (instead of
|
|
|
|
;; the Racket CS implementation).
|
|
|
|
;;
|
|
|
|
;; Unlike Chez Scheme boot files, the files generated in "schemified"
|
|
|
|
;; are human-readable and -editable Scheme code. That provides a way
|
|
|
|
;; out of bootstrapping black holes, even without BC.
|
|
|
|
;;
|
|
|
|
;; However, other Racket subsystems implemented in Racket for Racket CS
|
|
|
|
;; use older C implementations for Racket BC, whereas the reader, expander,
|
|
|
|
;; and module system were completely replaced with the Racket implementation
|
gnu: racket: Update to 8.6.
Also, update 'chez-scheme-for-racket' to 9.5.9.2.
* gnu/packages/patches/racket-chez-scheme-bin-sh.patch: Refresh patch.
* gnu/packages/patches/racket-backport-8.6-cross-install.patch,
gnu/packages/patches/racket-backport-8.6-docindex-write.patch,
gnu/packages/patches/racket-backport-8.6-hurd.patch: New patches.
* gnu/local.mk (dist_patch_DATA): Add them.
* gnu/packages/racket.scm (%racket-origin)[patches]: Use them and the
patches for Zuo.
(%racket-version): Update to 8.6.
(zuo)[version]: Refer to '%racket-version'.
[origin]: Use '%racket-origin'.
(racket-vm-cgc)[native-inputs]: Add 'zuo'.
[arguments]<#:make-flags>: Use 'zuo' from 'native-inputs'.
(racket)[inputs]<data, db, deinprogramm, draw, drracket, errortrace,
gui, htdp, math, option-contract, parser-tools, pict, rackunit, realm,
redex, scribble, typed-racket, string-constants, swindle, syntax-color,
web-server>: Update checksums.
* gnu/packages/chez.scm (target-chez-os): Handle Hurd and QNX.
(%chez-features-table): Likewise.
(chez-scheme-for-racket): Update to 9.5.9.2.
[native-inputs]: Add 'zuo'.
[arguments]<#:out-of-source?>: Use out-of-source build.
<#:tests?>: Skip them due to ongoing problems.
<#:configure-flags>: Add '--install-csug=' and '--installreleasenotes='.
<#:make-flags>: Use 'zuo' from 'native-inputs'. Supply 'STEXLIB=' here,
rather than in a phase.
<#:phases>: Replace 'install-docs' using new 'make' target.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-08-27 14:55:48 -04:00
|
|
|
;; as of Racket 7.0. See also <https://racket.discourse.group/t/951/4>.
|
gnu: racket-minimal: Bootstrap from C.
This commit bootstraps the Racket compiler and runtime system from source,
including Racket CS as well as both variants of Racket BC. (One remaining
limitation is discussed in comments added to gnu/packages/racket.scm.)
In the process, it moves to building minimal Racket from the Git repository,
rather than the packaged source tarballs. The Git repository is slightly
better as the ``corresponding source'':
1. A few packages especially closely tied to the Racket core implementation
(like "compiler-lib", "base", and "racket-doc") are developed in the
same Git repository. Having them use the same Guix origin, too, will
help to keep them in sync.
2. The top-level Makefile in the Git repository is an important
``script[] used to control compilation and installation.''
In particular, it cooperates with the "distro-build" package to
create the source tarballs and installers for a Racket distribution.
(Racket supports a notion of custom distributions.)
3. It is ``the preferred form ... for making modifications'' to the core
Racket implementation.
Racket releases are tagged in the Git repository (e.g. "v8.1"). At the
beginning of each release cycle, a branch is created to stabilizer a version
for extra testing. Active development happens on the "master" branch.
* gnu/packages/racket-minimal-sh-via-rktio.patch: Adjust for extra directory
layer.
* gnu/local/racket.scm (cfg-flag:sh-for-rktio, cfg-flag:enable-lt,
cfg-flag:enable-racket, unpack-nanopass+stex,
%main-repo-main-distribution-pkgs): New private variables.
* gnu/local/racket.scm (racket-minimal)[source]: Use Git.
[source](snippet): Unbundle nanopass, stex, and libffi.
[native-inputs]: Use racket-bootstrap-chez-bootfiles, plus its
dependencies (for Chez, plus a Racket for bootstrap pig).
[arguments]: Revise extensively.
* gnu/local/racket.scm (racket-minimal-bc-3m, racket-minimal-bc-cgc): New
packages, hidden at least for now.
(racket-bootstrap-chez-bootfiles): Another new package, but this one is
especially likely to stay hidden.
* gnu/local/racket.scm (racket)[origin](snippet): Unbundle packages
developed in the main Git repository, but leave their links.rktd and
pkgs.rktd entries in place.
[native-inputs]: Add the main Racket Git repository.
[arguments](#:phases): Adjust 'unpack-packages to also unpack package
sources from the main Racket Git repository.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-07-19 02:31:43 -04:00
|
|
|
;;
|
|
|
|
;; For Racket BC, the compiled "linklet" s-expressions (primitive modules)
|
|
|
|
;; are embeded in C as a static string constant. Eventually, they are further
|
|
|
|
;; compiled by the C-implemented Racket BC bytecode and JIT compilers.
|
|
|
|
;;
|
gnu: racket: Update to 8.6.
Also, update 'chez-scheme-for-racket' to 9.5.9.2.
* gnu/packages/patches/racket-chez-scheme-bin-sh.patch: Refresh patch.
* gnu/packages/patches/racket-backport-8.6-cross-install.patch,
gnu/packages/patches/racket-backport-8.6-docindex-write.patch,
gnu/packages/patches/racket-backport-8.6-hurd.patch: New patches.
* gnu/local.mk (dist_patch_DATA): Add them.
* gnu/packages/racket.scm (%racket-origin)[patches]: Use them and the
patches for Zuo.
(%racket-version): Update to 8.6.
(zuo)[version]: Refer to '%racket-version'.
[origin]: Use '%racket-origin'.
(racket-vm-cgc)[native-inputs]: Add 'zuo'.
[arguments]<#:make-flags>: Use 'zuo' from 'native-inputs'.
(racket)[inputs]<data, db, deinprogramm, draw, drracket, errortrace,
gui, htdp, math, option-contract, parser-tools, pict, rackunit, realm,
redex, scribble, typed-racket, string-constants, swindle, syntax-color,
web-server>: Update checksums.
* gnu/packages/chez.scm (target-chez-os): Handle Hurd and QNX.
(%chez-features-table): Likewise.
(chez-scheme-for-racket): Update to 9.5.9.2.
[native-inputs]: Add 'zuo'.
[arguments]<#:out-of-source?>: Use out-of-source build.
<#:tests?>: Skip them due to ongoing problems.
<#:configure-flags>: Add '--install-csug=' and '--installreleasenotes='.
<#:make-flags>: Use 'zuo' from 'native-inputs'. Supply 'STEXLIB=' here,
rather than in a phase.
<#:phases>: Replace 'install-docs' using new 'make' target.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-08-27 14:55:48 -04:00
|
|
|
;; Zuo is notably *not* a problem for bootstrapping. The implementation is a
|
|
|
|
;; single hand-written C file designed to build with just `cc -o zuo zuo.c`,
|
|
|
|
;; even with very old or limited compilers. (We use the Autoconf support for
|
|
|
|
;; convienience.)
|
|
|
|
;;
|
|
|
|
;; CODE:
|
2021-04-16 17:11:39 -04:00
|
|
|
|
gnu: racket: Update to 8.11.1.
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: Delete file.
* gnu/packages/patches/racket-backport-8.11-layered-docs.patch: New file.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.11.1.
(%zuo-version): Update to 1.7.
(racket)[inputs]<deinprogramm, draw, drracket, games, gui, htdp>
<parser-tools, plot, rackunit, redex, scribble, slideshow, typed-racket>
<srfi, string-constants, syntax-color, web-server, xrepl>: Update hashes.
<quickscript>: Likewise, and add snippet.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.18.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-12-01 10:35:38 -05:00
|
|
|
(define %racket-version "8.11.1") ; Remember to update chez-scheme-for-racket!
|
|
|
|
(define %zuo-version "1.7") ; defined in racket/src/zuo/zuo.c
|
2022-02-27 16:28:58 -05:00
|
|
|
(define %racket-commit
|
|
|
|
(string-append "v" %racket-version))
|
|
|
|
(define %racket-origin
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/racket/racket")
|
|
|
|
(commit %racket-commit)))
|
|
|
|
(sha256
|
gnu: racket: Update to 8.11.1.
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: Delete file.
* gnu/packages/patches/racket-backport-8.11-layered-docs.patch: New file.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.11.1.
(%zuo-version): Update to 1.7.
(racket)[inputs]<deinprogramm, draw, drracket, games, gui, htdp>
<parser-tools, plot, rackunit, redex, scribble, slideshow, typed-racket>
<srfi, string-constants, syntax-color, web-server, xrepl>: Update hashes.
<quickscript>: Likewise, and add snippet.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.18.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-12-01 10:35:38 -05:00
|
|
|
(base32 "1iny1mn1lw07lj6h704ch5g2q1nsf0h88dgwqrlxhf8pwj4i76gl"))
|
2022-02-27 16:28:58 -05:00
|
|
|
(file-name (git-file-name "racket" %racket-version))
|
gnu: racket: Update to 8.8.
* gnu/packages/patches/racket-backport-8.7-pkg-strip.patch: Remove file.
* gnu/local.mk (dist_patch_DATA): Delete it.
* gnu/packages/racket.scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.8.
(%zuo-version): Update to 1.6.
(racket)[inputs]<algol60, cext-lib, deinprogramm, draw, drracket>
<expeditor, gui, htdp, math, pict, r5rs, redex, sasl, scribble>
<typed-racket, string-constants, syntax-color>: Update checksums.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.14.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2023-02-10 19:49:34 -05:00
|
|
|
(patches (search-patches "racket-chez-scheme-bin-sh.patch"
|
gnu: racket: Update to 8.11.1.
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: Delete file.
* gnu/packages/patches/racket-backport-8.11-layered-docs.patch: New file.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.11.1.
(%zuo-version): Update to 1.7.
(racket)[inputs]<deinprogramm, draw, drracket, games, gui, htdp>
<parser-tools, plot, rackunit, redex, scribble, slideshow, typed-racket>
<srfi, string-constants, syntax-color, web-server, xrepl>: Update hashes.
<quickscript>: Likewise, and add snippet.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.18.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-12-01 10:35:38 -05:00
|
|
|
"racket-backport-8.11-layered-docs.patch"
|
gnu: racket: Update to 8.6.
Also, update 'chez-scheme-for-racket' to 9.5.9.2.
* gnu/packages/patches/racket-chez-scheme-bin-sh.patch: Refresh patch.
* gnu/packages/patches/racket-backport-8.6-cross-install.patch,
gnu/packages/patches/racket-backport-8.6-docindex-write.patch,
gnu/packages/patches/racket-backport-8.6-hurd.patch: New patches.
* gnu/local.mk (dist_patch_DATA): Add them.
* gnu/packages/racket.scm (%racket-origin)[patches]: Use them and the
patches for Zuo.
(%racket-version): Update to 8.6.
(zuo)[version]: Refer to '%racket-version'.
[origin]: Use '%racket-origin'.
(racket-vm-cgc)[native-inputs]: Add 'zuo'.
[arguments]<#:make-flags>: Use 'zuo' from 'native-inputs'.
(racket)[inputs]<data, db, deinprogramm, draw, drracket, errortrace,
gui, htdp, math, option-contract, parser-tools, pict, rackunit, realm,
redex, scribble, typed-racket, string-constants, swindle, syntax-color,
web-server>: Update checksums.
* gnu/packages/chez.scm (target-chez-os): Handle Hurd and QNX.
(%chez-features-table): Likewise.
(chez-scheme-for-racket): Update to 9.5.9.2.
[native-inputs]: Add 'zuo'.
[arguments]<#:out-of-source?>: Use out-of-source build.
<#:tests?>: Skip them due to ongoing problems.
<#:configure-flags>: Add '--install-csug=' and '--installreleasenotes='.
<#:make-flags>: Use 'zuo' from 'native-inputs'. Supply 'STEXLIB=' here,
rather than in a phase.
<#:phases>: Replace 'install-docs' using new 'make' target.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-08-27 14:55:48 -04:00
|
|
|
"racket-rktio-bin-sh.patch"
|
|
|
|
"racket-zuo-bin-sh.patch"))
|
2022-02-27 16:28:58 -05:00
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
|
|
|
#~(begin
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
;; Unbundle Chez submodules.
|
|
|
|
(with-directory-excursion "racket/src/ChezScheme"
|
|
|
|
;; TODO: consider putting this in a (guix ...) or (guix build ...)
|
|
|
|
;; module so it can be shared with the upstream Chez Scheme origin
|
|
|
|
;; without cyclic issues.
|
|
|
|
(for-each (lambda (dir)
|
|
|
|
(when (directory-exists? dir)
|
|
|
|
(delete-file-recursively dir)))
|
|
|
|
'("stex"
|
|
|
|
"nanopass"
|
|
|
|
"lz4"
|
|
|
|
"zlib")))
|
|
|
|
;; Unbundle libffi.
|
|
|
|
(delete-file-recursively "racket/src/bc/foreign/libffi")))))
|
|
|
|
|
2022-08-27 14:55:47 -04:00
|
|
|
|
|
|
|
(define-public zuo
|
|
|
|
(let ((revision #f))
|
|
|
|
(package
|
|
|
|
(name "zuo")
|
|
|
|
(version (string-append %zuo-version
|
|
|
|
"-racket"
|
gnu: racket: Update to 8.6.
Also, update 'chez-scheme-for-racket' to 9.5.9.2.
* gnu/packages/patches/racket-chez-scheme-bin-sh.patch: Refresh patch.
* gnu/packages/patches/racket-backport-8.6-cross-install.patch,
gnu/packages/patches/racket-backport-8.6-docindex-write.patch,
gnu/packages/patches/racket-backport-8.6-hurd.patch: New patches.
* gnu/local.mk (dist_patch_DATA): Add them.
* gnu/packages/racket.scm (%racket-origin)[patches]: Use them and the
patches for Zuo.
(%racket-version): Update to 8.6.
(zuo)[version]: Refer to '%racket-version'.
[origin]: Use '%racket-origin'.
(racket-vm-cgc)[native-inputs]: Add 'zuo'.
[arguments]<#:make-flags>: Use 'zuo' from 'native-inputs'.
(racket)[inputs]<data, db, deinprogramm, draw, drracket, errortrace,
gui, htdp, math, option-contract, parser-tools, pict, rackunit, realm,
redex, scribble, typed-racket, string-constants, swindle, syntax-color,
web-server>: Update checksums.
* gnu/packages/chez.scm (target-chez-os): Handle Hurd and QNX.
(%chez-features-table): Likewise.
(chez-scheme-for-racket): Update to 9.5.9.2.
[native-inputs]: Add 'zuo'.
[arguments]<#:out-of-source?>: Use out-of-source build.
<#:tests?>: Skip them due to ongoing problems.
<#:configure-flags>: Add '--install-csug=' and '--installreleasenotes='.
<#:make-flags>: Use 'zuo' from 'native-inputs'. Supply 'STEXLIB=' here,
rather than in a phase.
<#:phases>: Replace 'install-docs' using new 'make' target.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-08-27 14:55:48 -04:00
|
|
|
%racket-version
|
2022-08-27 14:55:47 -04:00
|
|
|
(if revision "-guix" "")
|
|
|
|
(or revision "")))
|
gnu: racket: Update to 8.6.
Also, update 'chez-scheme-for-racket' to 9.5.9.2.
* gnu/packages/patches/racket-chez-scheme-bin-sh.patch: Refresh patch.
* gnu/packages/patches/racket-backport-8.6-cross-install.patch,
gnu/packages/patches/racket-backport-8.6-docindex-write.patch,
gnu/packages/patches/racket-backport-8.6-hurd.patch: New patches.
* gnu/local.mk (dist_patch_DATA): Add them.
* gnu/packages/racket.scm (%racket-origin)[patches]: Use them and the
patches for Zuo.
(%racket-version): Update to 8.6.
(zuo)[version]: Refer to '%racket-version'.
[origin]: Use '%racket-origin'.
(racket-vm-cgc)[native-inputs]: Add 'zuo'.
[arguments]<#:make-flags>: Use 'zuo' from 'native-inputs'.
(racket)[inputs]<data, db, deinprogramm, draw, drracket, errortrace,
gui, htdp, math, option-contract, parser-tools, pict, rackunit, realm,
redex, scribble, typed-racket, string-constants, swindle, syntax-color,
web-server>: Update checksums.
* gnu/packages/chez.scm (target-chez-os): Handle Hurd and QNX.
(%chez-features-table): Likewise.
(chez-scheme-for-racket): Update to 9.5.9.2.
[native-inputs]: Add 'zuo'.
[arguments]<#:out-of-source?>: Use out-of-source build.
<#:tests?>: Skip them due to ongoing problems.
<#:configure-flags>: Add '--install-csug=' and '--installreleasenotes='.
<#:make-flags>: Use 'zuo' from 'native-inputs'. Supply 'STEXLIB=' here,
rather than in a phase.
<#:phases>: Replace 'install-docs' using new 'make' target.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-08-27 14:55:48 -04:00
|
|
|
(source %racket-origin)
|
2022-08-27 14:55:47 -04:00
|
|
|
(outputs '("out" "debug"))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
(list
|
|
|
|
#:out-of-source? #t
|
|
|
|
#:phases
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'chdir
|
|
|
|
(lambda args
|
|
|
|
(chdir "racket/src/zuo"))))))
|
|
|
|
(home-page "https://github.com/racket/zuo")
|
|
|
|
;; ^ This is downstream of https://github.com/racket/racket,
|
|
|
|
;; but it's designed to be a friendly landing place
|
|
|
|
(synopsis "Tiny Racket for build scripts")
|
2022-09-08 06:04:44 -04:00
|
|
|
(description "Zuo is a tiny Racket with primitives for dealing
|
2022-08-27 14:55:47 -04:00
|
|
|
with files and running processes. It comes with a @command{make}-like
|
|
|
|
embedded DSL, which is used to build Racket itself.
|
|
|
|
|
|
|
|
Zuo is a Racket variant in the sense that program files start with
|
|
|
|
@code{#lang}, and the module path after @code{#lang} determines the parsing
|
|
|
|
and expansion of the file content. That's how the @command{make}-like DSL is
|
|
|
|
defined, and even the base Zuo language is defined by layers of @code{#lang}s.
|
|
|
|
One of the early layers implements macros.")
|
|
|
|
(license (list license:asl2.0 license:expat)))))
|
|
|
|
|
|
|
|
|
2022-08-27 14:55:45 -04:00
|
|
|
(define racket-vm-common-configure-flags
|
2022-02-27 16:29:00 -05:00
|
|
|
#~`(,@(cond
|
|
|
|
((false-if-exception
|
|
|
|
(search-input-file %build-inputs "/bin/libtool"))
|
|
|
|
=> (lambda (libtool)
|
|
|
|
(list (string-append "--enable-lt=" libtool))))
|
|
|
|
(else
|
|
|
|
'()))
|
|
|
|
,@(cond
|
|
|
|
((false-if-exception
|
2022-02-27 16:29:06 -05:00
|
|
|
(search-input-file %build-inputs "/opt/racket-vm/bin/racket"))
|
2022-02-27 16:29:00 -05:00
|
|
|
=> (lambda (racket)
|
|
|
|
(list (string-append "--enable-racket=" racket))))
|
|
|
|
(else
|
|
|
|
'()))
|
2022-02-27 16:29:06 -05:00
|
|
|
"--disable-strip"
|
gnu: racket: Update to 8.5.
* gnu/packages/patches/racket-gui-tethered-launcher-backport.patch,
gnu/packages/patches/racket-enable-scheme-backport.patch: Delete files.
* gnu/local.mk (dist_patch_DATA): Remove them.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to 9.5.7.6.
* gnu/packages/racket.scm (%racket-version): Update to 8.5.
(%racket-origin)[patches]: Remove obsolete patches.
(racket-vm-common-configure-flags): Correct comment.
(racket)[inputs]<2d, datalog, deinprogramm, draw, drracket, expeditor,
htdp, pict, plot, quickscript, racklog, rackunit, redex, scribble,
typed-racket, string-constants, syntax-color, web-server, xrepl>: Update
checksums.
<gui, srfi>: Likewise, and remove obsolete backports.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-05-11 23:59:05 -04:00
|
|
|
;; Using --enable-origtree lets us distinguish the VM from subsequent
|
|
|
|
;; layers and produces a build with the shape expected by tools such as
|
|
|
|
;; "distro-build" and "raco-cross". Removing these flags would require
|
|
|
|
;; changes, especially to 'configure-layer.rkt' (defined below).
|
2022-02-27 16:29:06 -05:00
|
|
|
"--enable-origtree"
|
|
|
|
,(string-append "--prefix=" #$output "/opt/racket-vm")))
|
gnu: racket-minimal: Bootstrap from C.
This commit bootstraps the Racket compiler and runtime system from source,
including Racket CS as well as both variants of Racket BC. (One remaining
limitation is discussed in comments added to gnu/packages/racket.scm.)
In the process, it moves to building minimal Racket from the Git repository,
rather than the packaged source tarballs. The Git repository is slightly
better as the ``corresponding source'':
1. A few packages especially closely tied to the Racket core implementation
(like "compiler-lib", "base", and "racket-doc") are developed in the
same Git repository. Having them use the same Guix origin, too, will
help to keep them in sync.
2. The top-level Makefile in the Git repository is an important
``script[] used to control compilation and installation.''
In particular, it cooperates with the "distro-build" package to
create the source tarballs and installers for a Racket distribution.
(Racket supports a notion of custom distributions.)
3. It is ``the preferred form ... for making modifications'' to the core
Racket implementation.
Racket releases are tagged in the Git repository (e.g. "v8.1"). At the
beginning of each release cycle, a branch is created to stabilizer a version
for extra testing. Active development happens on the "master" branch.
* gnu/packages/racket-minimal-sh-via-rktio.patch: Adjust for extra directory
layer.
* gnu/local/racket.scm (cfg-flag:sh-for-rktio, cfg-flag:enable-lt,
cfg-flag:enable-racket, unpack-nanopass+stex,
%main-repo-main-distribution-pkgs): New private variables.
* gnu/local/racket.scm (racket-minimal)[source]: Use Git.
[source](snippet): Unbundle nanopass, stex, and libffi.
[native-inputs]: Use racket-bootstrap-chez-bootfiles, plus its
dependencies (for Chez, plus a Racket for bootstrap pig).
[arguments]: Revise extensively.
* gnu/local/racket.scm (racket-minimal-bc-3m, racket-minimal-bc-cgc): New
packages, hidden at least for now.
(racket-bootstrap-chez-bootfiles): Another new package, but this one is
especially likely to stay hidden.
* gnu/local/racket.scm (racket)[origin](snippet): Unbundle packages
developed in the main Git repository, but leave their links.rktd and
pkgs.rktd entries in place.
[native-inputs]: Add the main Racket Git repository.
[arguments](#:phases): Adjust 'unpack-packages to also unpack package
sources from the main Racket Git repository.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-07-19 02:31:43 -04:00
|
|
|
|
2022-02-27 16:29:06 -05:00
|
|
|
(define-public racket-vm-cgc
|
2022-02-27 16:29:03 -05:00
|
|
|
;; Eventually, it may make sense for some vm packages to not be hidden,
|
|
|
|
;; but this one is especially likely to remain hidden.
|
|
|
|
(hidden-package
|
|
|
|
(package
|
2022-02-27 16:29:06 -05:00
|
|
|
(name "racket-vm-cgc")
|
2022-02-27 16:29:03 -05:00
|
|
|
(version %racket-version)
|
|
|
|
(source %racket-origin)
|
2022-02-27 16:29:06 -05:00
|
|
|
(inputs (list ncurses ;; <- common to all variants (for #%terminal)
|
2022-08-27 14:55:52 -04:00
|
|
|
libffi)) ;; <- for BC and non-native CS variants
|
2022-08-27 14:55:51 -04:00
|
|
|
(native-inputs (cons* zuo ;; <- for all variants
|
|
|
|
libtool ;; <- only for BC variants
|
|
|
|
(if (%current-target-system)
|
|
|
|
(list this-package)
|
|
|
|
'())))
|
2022-02-27 16:29:04 -05:00
|
|
|
(outputs '("out" "debug"))
|
2022-02-27 16:29:03 -05:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
(list
|
|
|
|
#:configure-flags
|
2022-02-27 16:29:06 -05:00
|
|
|
#~(cons "--enable-cgcdefault"
|
2022-08-27 14:55:45 -04:00
|
|
|
#$racket-vm-common-configure-flags)
|
gnu: racket: Update to 8.6.
Also, update 'chez-scheme-for-racket' to 9.5.9.2.
* gnu/packages/patches/racket-chez-scheme-bin-sh.patch: Refresh patch.
* gnu/packages/patches/racket-backport-8.6-cross-install.patch,
gnu/packages/patches/racket-backport-8.6-docindex-write.patch,
gnu/packages/patches/racket-backport-8.6-hurd.patch: New patches.
* gnu/local.mk (dist_patch_DATA): Add them.
* gnu/packages/racket.scm (%racket-origin)[patches]: Use them and the
patches for Zuo.
(%racket-version): Update to 8.6.
(zuo)[version]: Refer to '%racket-version'.
[origin]: Use '%racket-origin'.
(racket-vm-cgc)[native-inputs]: Add 'zuo'.
[arguments]<#:make-flags>: Use 'zuo' from 'native-inputs'.
(racket)[inputs]<data, db, deinprogramm, draw, drracket, errortrace,
gui, htdp, math, option-contract, parser-tools, pict, rackunit, realm,
redex, scribble, typed-racket, string-constants, swindle, syntax-color,
web-server>: Update checksums.
* gnu/packages/chez.scm (target-chez-os): Handle Hurd and QNX.
(%chez-features-table): Likewise.
(chez-scheme-for-racket): Update to 9.5.9.2.
[native-inputs]: Add 'zuo'.
[arguments]<#:out-of-source?>: Use out-of-source build.
<#:tests?>: Skip them due to ongoing problems.
<#:configure-flags>: Add '--install-csug=' and '--installreleasenotes='.
<#:make-flags>: Use 'zuo' from 'native-inputs'. Supply 'STEXLIB=' here,
rather than in a phase.
<#:phases>: Replace 'install-docs' using new 'make' target.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-08-27 14:55:48 -04:00
|
|
|
#:make-flags
|
|
|
|
#~(list (string-append "ZUO="
|
|
|
|
#+(this-package-native-input "zuo")
|
|
|
|
"/bin/zuo"))
|
2022-02-27 16:29:03 -05:00
|
|
|
;; Tests are in packages like racket-test-core and
|
|
|
|
;; main-distribution-test that aren't part of the main
|
|
|
|
;; distribution.
|
|
|
|
#:tests? #f
|
2022-05-09 02:02:43 -04:00
|
|
|
;; Upstream recommends #:out-of-source?, and it
|
|
|
|
;; helps a lot with debugging.
|
|
|
|
#:out-of-source? #t
|
2022-02-27 16:29:03 -05:00
|
|
|
#:modules '((ice-9 match)
|
|
|
|
(ice-9 regex)
|
|
|
|
(guix build gnu-build-system)
|
|
|
|
(guix build utils))
|
2022-02-27 16:29:06 -05:00
|
|
|
#:strip-directories #~'("opt/racket-vm/bin"
|
|
|
|
"opt/racket-vm/lib")
|
2022-02-27 16:29:03 -05:00
|
|
|
#:phases
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
(add-before 'configure 'initialize-config.rktd
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(define (write-racket-hash alist)
|
|
|
|
;; inside must use dotted pair notation
|
|
|
|
(display "#hash(")
|
|
|
|
(for-each (match-lambda
|
|
|
|
((k . v)
|
|
|
|
(format #t "(~s . ~s)" k v)))
|
|
|
|
alist)
|
|
|
|
(display ")\n"))
|
|
|
|
(define maybe-release-catalog
|
|
|
|
(let ((v #$(package-version this-package)))
|
|
|
|
(if (string-match "^[0-9]+\\.[0-9]+($|\\.[0-8][0-9]*$)"
|
|
|
|
v)
|
|
|
|
`(,(string-append
|
|
|
|
"https://download.racket-lang.org/releases/"
|
|
|
|
v
|
|
|
|
"/catalog/"))
|
|
|
|
'())))
|
|
|
|
(mkdir-p "racket/etc")
|
|
|
|
(with-output-to-file "racket/etc/config.rktd"
|
|
|
|
(lambda ()
|
|
|
|
(write-racket-hash
|
2022-02-27 16:29:06 -05:00
|
|
|
`((build-stamp . "")
|
2022-02-27 16:29:03 -05:00
|
|
|
(catalogs ,@maybe-release-catalog
|
|
|
|
#f)))))))
|
|
|
|
(add-before 'configure 'chdir
|
|
|
|
(lambda _
|
2022-05-09 02:02:43 -04:00
|
|
|
(chdir "racket/src")))
|
|
|
|
(replace 'install-license-files
|
|
|
|
;; The #:out-of-source? mode for install-license-files fails
|
|
|
|
;; to find the srcdir: as a workaround, navigate there ourselves.
|
|
|
|
(let ((install-license-files
|
|
|
|
(assoc-ref %standard-phases 'install-license-files)))
|
|
|
|
(lambda args
|
|
|
|
(with-directory-excursion "../src"
|
|
|
|
(apply install-license-files
|
|
|
|
`(,@args
|
|
|
|
;; if there are duplicate keywords, last is used
|
|
|
|
#:out-of-source? #f)))))))))
|
2022-02-27 16:29:03 -05:00
|
|
|
(home-page "https://racket-lang.org")
|
|
|
|
(synopsis "Old Racket implementation used for bootstrapping")
|
|
|
|
(description "This variant of the Racket BC (``before Chez'' or
|
gnu: racket-minimal: Change inheritance to follow bootstrapping.
Having the package inheritance chain go in the same direction as the
bootstrapping chain, rather than the opposite, is less confusing. In
some cases, it can also help to avoid unnecessary rebuilds.
* gnu/packages/racket.scm (racket-minimal-bc-cgc): Change to be the root
of the package inheritance chain.
[version, source, inputs, native-inputs, build-system, arguments]
[home-page, license]: Inline formerly inherited values.
(racket-minimal-bc-3m): Inherit from 'racket-minimal-bc-cgc' rather than
'racket-minimal'.
[inputs, native-inputs, arguments, license]: Adjust accordingly.
(racket-minimal): Inherit from 'racket-minimal-bc-3m'.
[inputs, native-inputs, arguments, license]: Adjust accordingly.
[properties]: Override effect of 'hidden-package'.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-02-27 16:29:02 -05:00
|
|
|
``bytecode'') implementation is not recommended for general use. It uses
|
|
|
|
CGC (a ``Conservative Garbage Collector''), which was succeeded as default in
|
|
|
|
PLT Scheme version 370 (which translates to 3.7 in the current versioning
|
|
|
|
scheme) by the 3M variant, which in turn was succeeded in version 8.0 by the
|
|
|
|
Racket CS implementation.
|
2021-04-16 17:11:38 -04:00
|
|
|
|
2022-02-27 16:29:06 -05:00
|
|
|
Racket CGC is primarily used for bootstrapping Racket BC [3M]. It may
|
gnu: racket-minimal: Change inheritance to follow bootstrapping.
Having the package inheritance chain go in the same direction as the
bootstrapping chain, rather than the opposite, is less confusing. In
some cases, it can also help to avoid unnecessary rebuilds.
* gnu/packages/racket.scm (racket-minimal-bc-cgc): Change to be the root
of the package inheritance chain.
[version, source, inputs, native-inputs, build-system, arguments]
[home-page, license]: Inline formerly inherited values.
(racket-minimal-bc-3m): Inherit from 'racket-minimal-bc-cgc' rather than
'racket-minimal'.
[inputs, native-inputs, arguments, license]: Adjust accordingly.
(racket-minimal): Inherit from 'racket-minimal-bc-3m'.
[inputs, native-inputs, arguments, license]: Adjust accordingly.
[properties]: Override effect of 'hidden-package'.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-02-27 16:29:02 -05:00
|
|
|
also be used for embedding applications without the annotations needed in C
|
|
|
|
code to use the 3M garbage collector.")
|
2022-02-27 16:29:03 -05:00
|
|
|
;; https://download.racket-lang.org/license.html
|
|
|
|
;; The LGPL components are only used by Racket BC.
|
|
|
|
(license (list license:lgpl3+ license:asl2.0 license:expat)))))
|
gnu: racket-minimal: Bootstrap from C.
This commit bootstraps the Racket compiler and runtime system from source,
including Racket CS as well as both variants of Racket BC. (One remaining
limitation is discussed in comments added to gnu/packages/racket.scm.)
In the process, it moves to building minimal Racket from the Git repository,
rather than the packaged source tarballs. The Git repository is slightly
better as the ``corresponding source'':
1. A few packages especially closely tied to the Racket core implementation
(like "compiler-lib", "base", and "racket-doc") are developed in the
same Git repository. Having them use the same Guix origin, too, will
help to keep them in sync.
2. The top-level Makefile in the Git repository is an important
``script[] used to control compilation and installation.''
In particular, it cooperates with the "distro-build" package to
create the source tarballs and installers for a Racket distribution.
(Racket supports a notion of custom distributions.)
3. It is ``the preferred form ... for making modifications'' to the core
Racket implementation.
Racket releases are tagged in the Git repository (e.g. "v8.1"). At the
beginning of each release cycle, a branch is created to stabilizer a version
for extra testing. Active development happens on the "master" branch.
* gnu/packages/racket-minimal-sh-via-rktio.patch: Adjust for extra directory
layer.
* gnu/local/racket.scm (cfg-flag:sh-for-rktio, cfg-flag:enable-lt,
cfg-flag:enable-racket, unpack-nanopass+stex,
%main-repo-main-distribution-pkgs): New private variables.
* gnu/local/racket.scm (racket-minimal)[source]: Use Git.
[source](snippet): Unbundle nanopass, stex, and libffi.
[native-inputs]: Use racket-bootstrap-chez-bootfiles, plus its
dependencies (for Chez, plus a Racket for bootstrap pig).
[arguments]: Revise extensively.
* gnu/local/racket.scm (racket-minimal-bc-3m, racket-minimal-bc-cgc): New
packages, hidden at least for now.
(racket-bootstrap-chez-bootfiles): Another new package, but this one is
especially likely to stay hidden.
* gnu/local/racket.scm (racket)[origin](snippet): Unbundle packages
developed in the main Git repository, but leave their links.rktd and
pkgs.rktd entries in place.
[native-inputs]: Add the main Racket Git repository.
[arguments](#:phases): Adjust 'unpack-packages to also unpack package
sources from the main Racket Git repository.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-07-19 02:31:43 -04:00
|
|
|
|
2022-02-27 16:29:06 -05:00
|
|
|
(define-public racket-vm-bc
|
2022-02-27 16:29:03 -05:00
|
|
|
(package
|
2022-02-27 16:29:06 -05:00
|
|
|
(inherit racket-vm-cgc)
|
|
|
|
(name "racket-vm-bc")
|
2022-02-27 16:29:03 -05:00
|
|
|
(native-inputs
|
2022-08-27 14:55:51 -04:00
|
|
|
(if (%current-target-system)
|
|
|
|
(package-native-inputs racket-vm-cgc)
|
|
|
|
(modify-inputs (package-native-inputs racket-vm-cgc)
|
|
|
|
(prepend racket-vm-cgc))))
|
2022-02-27 16:29:03 -05:00
|
|
|
(arguments
|
2022-02-27 16:29:06 -05:00
|
|
|
(substitute-keyword-arguments (package-arguments racket-vm-cgc)
|
2022-02-27 16:29:03 -05:00
|
|
|
((#:configure-flags _ '())
|
|
|
|
#~(cons "--enable-bconly"
|
2022-08-27 14:55:53 -04:00
|
|
|
#$(cond
|
|
|
|
((target-ppc64le?)
|
|
|
|
;; Attempt to avoid a problem bootstrapping Chez Scheme:
|
|
|
|
;; see <https://issues.guix.gnu.org/57050#19>
|
|
|
|
;; and <https://racket.discourse.group/t/950/30>.
|
|
|
|
#~(map
|
|
|
|
(lambda (flag)
|
|
|
|
(if (string-prefix? "CPPFLAGS=" flag)
|
|
|
|
(string-append flag
|
|
|
|
" -DSTACK_SAFETY_MARGIN=2000000")
|
|
|
|
flag))
|
|
|
|
#$racket-vm-common-configure-flags))
|
|
|
|
(else
|
|
|
|
racket-vm-common-configure-flags))))))
|
2022-02-27 16:29:06 -05:00
|
|
|
(synopsis "Racket BC [3M] implementation")
|
2022-02-27 16:29:03 -05:00
|
|
|
(description "The Racket BC (``before Chez'' or ``bytecode'')
|
gnu: racket-minimal: Bootstrap from C.
This commit bootstraps the Racket compiler and runtime system from source,
including Racket CS as well as both variants of Racket BC. (One remaining
limitation is discussed in comments added to gnu/packages/racket.scm.)
In the process, it moves to building minimal Racket from the Git repository,
rather than the packaged source tarballs. The Git repository is slightly
better as the ``corresponding source'':
1. A few packages especially closely tied to the Racket core implementation
(like "compiler-lib", "base", and "racket-doc") are developed in the
same Git repository. Having them use the same Guix origin, too, will
help to keep them in sync.
2. The top-level Makefile in the Git repository is an important
``script[] used to control compilation and installation.''
In particular, it cooperates with the "distro-build" package to
create the source tarballs and installers for a Racket distribution.
(Racket supports a notion of custom distributions.)
3. It is ``the preferred form ... for making modifications'' to the core
Racket implementation.
Racket releases are tagged in the Git repository (e.g. "v8.1"). At the
beginning of each release cycle, a branch is created to stabilizer a version
for extra testing. Active development happens on the "master" branch.
* gnu/packages/racket-minimal-sh-via-rktio.patch: Adjust for extra directory
layer.
* gnu/local/racket.scm (cfg-flag:sh-for-rktio, cfg-flag:enable-lt,
cfg-flag:enable-racket, unpack-nanopass+stex,
%main-repo-main-distribution-pkgs): New private variables.
* gnu/local/racket.scm (racket-minimal)[source]: Use Git.
[source](snippet): Unbundle nanopass, stex, and libffi.
[native-inputs]: Use racket-bootstrap-chez-bootfiles, plus its
dependencies (for Chez, plus a Racket for bootstrap pig).
[arguments]: Revise extensively.
* gnu/local/racket.scm (racket-minimal-bc-3m, racket-minimal-bc-cgc): New
packages, hidden at least for now.
(racket-bootstrap-chez-bootfiles): Another new package, but this one is
especially likely to stay hidden.
* gnu/local/racket.scm (racket)[origin](snippet): Unbundle packages
developed in the main Git repository, but leave their links.rktd and
pkgs.rktd entries in place.
[native-inputs]: Add the main Racket Git repository.
[arguments](#:phases): Adjust 'unpack-packages to also unpack package
sources from the main Racket Git repository.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-07-19 02:31:43 -04:00
|
|
|
implementation was the default before Racket 8.0. It uses a compiler written
|
|
|
|
in C targeting architecture-independent bytecode, plus a JIT compiler on most
|
2022-08-27 14:55:52 -04:00
|
|
|
platforms. Racket BC has a different C API than the current default runtime
|
|
|
|
system, Racket CS (based on ``Chez Scheme'').
|
gnu: racket-minimal: Bootstrap from C.
This commit bootstraps the Racket compiler and runtime system from source,
including Racket CS as well as both variants of Racket BC. (One remaining
limitation is discussed in comments added to gnu/packages/racket.scm.)
In the process, it moves to building minimal Racket from the Git repository,
rather than the packaged source tarballs. The Git repository is slightly
better as the ``corresponding source'':
1. A few packages especially closely tied to the Racket core implementation
(like "compiler-lib", "base", and "racket-doc") are developed in the
same Git repository. Having them use the same Guix origin, too, will
help to keep them in sync.
2. The top-level Makefile in the Git repository is an important
``script[] used to control compilation and installation.''
In particular, it cooperates with the "distro-build" package to
create the source tarballs and installers for a Racket distribution.
(Racket supports a notion of custom distributions.)
3. It is ``the preferred form ... for making modifications'' to the core
Racket implementation.
Racket releases are tagged in the Git repository (e.g. "v8.1"). At the
beginning of each release cycle, a branch is created to stabilizer a version
for extra testing. Active development happens on the "master" branch.
* gnu/packages/racket-minimal-sh-via-rktio.patch: Adjust for extra directory
layer.
* gnu/local/racket.scm (cfg-flag:sh-for-rktio, cfg-flag:enable-lt,
cfg-flag:enable-racket, unpack-nanopass+stex,
%main-repo-main-distribution-pkgs): New private variables.
* gnu/local/racket.scm (racket-minimal)[source]: Use Git.
[source](snippet): Unbundle nanopass, stex, and libffi.
[native-inputs]: Use racket-bootstrap-chez-bootfiles, plus its
dependencies (for Chez, plus a Racket for bootstrap pig).
[arguments]: Revise extensively.
* gnu/local/racket.scm (racket-minimal-bc-3m, racket-minimal-bc-cgc): New
packages, hidden at least for now.
(racket-bootstrap-chez-bootfiles): Another new package, but this one is
especially likely to stay hidden.
* gnu/local/racket.scm (racket)[origin](snippet): Unbundle packages
developed in the main Git repository, but leave their links.rktd and
pkgs.rktd entries in place.
[native-inputs]: Add the main Racket Git repository.
[arguments](#:phases): Adjust 'unpack-packages to also unpack package
sources from the main Racket Git repository.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-07-19 02:31:43 -04:00
|
|
|
|
|
|
|
This package is the normal implementation of Racket BC with a precise garbage
|
|
|
|
collector, 3M (``Moving Memory Manager'').")
|
2022-02-27 16:29:03 -05:00
|
|
|
;; https://download.racket-lang.org/license.html
|
|
|
|
;; The LGPL components are only used by Racket BC.
|
|
|
|
(license (list license:lgpl3+ license:asl2.0 license:expat))))
|
gnu: racket-minimal: Bootstrap from C.
This commit bootstraps the Racket compiler and runtime system from source,
including Racket CS as well as both variants of Racket BC. (One remaining
limitation is discussed in comments added to gnu/packages/racket.scm.)
In the process, it moves to building minimal Racket from the Git repository,
rather than the packaged source tarballs. The Git repository is slightly
better as the ``corresponding source'':
1. A few packages especially closely tied to the Racket core implementation
(like "compiler-lib", "base", and "racket-doc") are developed in the
same Git repository. Having them use the same Guix origin, too, will
help to keep them in sync.
2. The top-level Makefile in the Git repository is an important
``script[] used to control compilation and installation.''
In particular, it cooperates with the "distro-build" package to
create the source tarballs and installers for a Racket distribution.
(Racket supports a notion of custom distributions.)
3. It is ``the preferred form ... for making modifications'' to the core
Racket implementation.
Racket releases are tagged in the Git repository (e.g. "v8.1"). At the
beginning of each release cycle, a branch is created to stabilizer a version
for extra testing. Active development happens on the "master" branch.
* gnu/packages/racket-minimal-sh-via-rktio.patch: Adjust for extra directory
layer.
* gnu/local/racket.scm (cfg-flag:sh-for-rktio, cfg-flag:enable-lt,
cfg-flag:enable-racket, unpack-nanopass+stex,
%main-repo-main-distribution-pkgs): New private variables.
* gnu/local/racket.scm (racket-minimal)[source]: Use Git.
[source](snippet): Unbundle nanopass, stex, and libffi.
[native-inputs]: Use racket-bootstrap-chez-bootfiles, plus its
dependencies (for Chez, plus a Racket for bootstrap pig).
[arguments]: Revise extensively.
* gnu/local/racket.scm (racket-minimal-bc-3m, racket-minimal-bc-cgc): New
packages, hidden at least for now.
(racket-bootstrap-chez-bootfiles): Another new package, but this one is
especially likely to stay hidden.
* gnu/local/racket.scm (racket)[origin](snippet): Unbundle packages
developed in the main Git repository, but leave their links.rktd and
pkgs.rktd entries in place.
[native-inputs]: Add the main Racket Git repository.
[arguments](#:phases): Adjust 'unpack-packages to also unpack package
sources from the main Racket Git repository.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-07-19 02:31:43 -04:00
|
|
|
|
2022-02-27 16:29:06 -05:00
|
|
|
(define-public racket-vm-cs
|
gnu: racket-minimal: Bootstrap from C.
This commit bootstraps the Racket compiler and runtime system from source,
including Racket CS as well as both variants of Racket BC. (One remaining
limitation is discussed in comments added to gnu/packages/racket.scm.)
In the process, it moves to building minimal Racket from the Git repository,
rather than the packaged source tarballs. The Git repository is slightly
better as the ``corresponding source'':
1. A few packages especially closely tied to the Racket core implementation
(like "compiler-lib", "base", and "racket-doc") are developed in the
same Git repository. Having them use the same Guix origin, too, will
help to keep them in sync.
2. The top-level Makefile in the Git repository is an important
``script[] used to control compilation and installation.''
In particular, it cooperates with the "distro-build" package to
create the source tarballs and installers for a Racket distribution.
(Racket supports a notion of custom distributions.)
3. It is ``the preferred form ... for making modifications'' to the core
Racket implementation.
Racket releases are tagged in the Git repository (e.g. "v8.1"). At the
beginning of each release cycle, a branch is created to stabilizer a version
for extra testing. Active development happens on the "master" branch.
* gnu/packages/racket-minimal-sh-via-rktio.patch: Adjust for extra directory
layer.
* gnu/local/racket.scm (cfg-flag:sh-for-rktio, cfg-flag:enable-lt,
cfg-flag:enable-racket, unpack-nanopass+stex,
%main-repo-main-distribution-pkgs): New private variables.
* gnu/local/racket.scm (racket-minimal)[source]: Use Git.
[source](snippet): Unbundle nanopass, stex, and libffi.
[native-inputs]: Use racket-bootstrap-chez-bootfiles, plus its
dependencies (for Chez, plus a Racket for bootstrap pig).
[arguments]: Revise extensively.
* gnu/local/racket.scm (racket-minimal-bc-3m, racket-minimal-bc-cgc): New
packages, hidden at least for now.
(racket-bootstrap-chez-bootfiles): Another new package, but this one is
especially likely to stay hidden.
* gnu/local/racket.scm (racket)[origin](snippet): Unbundle packages
developed in the main Git repository, but leave their links.rktd and
pkgs.rktd entries in place.
[native-inputs]: Add the main Racket Git repository.
[arguments](#:phases): Adjust 'unpack-packages to also unpack package
sources from the main Racket Git repository.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-07-19 02:31:43 -04:00
|
|
|
(package
|
2022-02-27 16:29:06 -05:00
|
|
|
(inherit racket-vm-bc)
|
|
|
|
(name "racket-vm-cs")
|
gnu: racket-minimal: Change inheritance to follow bootstrapping.
Having the package inheritance chain go in the same direction as the
bootstrapping chain, rather than the opposite, is less confusing. In
some cases, it can also help to avoid unnecessary rebuilds.
* gnu/packages/racket.scm (racket-minimal-bc-cgc): Change to be the root
of the package inheritance chain.
[version, source, inputs, native-inputs, build-system, arguments]
[home-page, license]: Inline formerly inherited values.
(racket-minimal-bc-3m): Inherit from 'racket-minimal-bc-cgc' rather than
'racket-minimal'.
[inputs, native-inputs, arguments, license]: Adjust accordingly.
(racket-minimal): Inherit from 'racket-minimal-bc-3m'.
[inputs, native-inputs, arguments, license]: Adjust accordingly.
[properties]: Override effect of 'hidden-package'.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-02-27 16:29:02 -05:00
|
|
|
(inputs
|
2022-08-27 14:55:52 -04:00
|
|
|
(let ((inputs (modify-inputs (package-inputs racket-vm-cgc)
|
|
|
|
(prepend zlib lz4))))
|
|
|
|
(if (racket-cs-native-supported-system?)
|
|
|
|
(modify-inputs inputs
|
|
|
|
(delete "libffi"))
|
|
|
|
inputs)))
|
gnu: racket-minimal: Change inheritance to follow bootstrapping.
Having the package inheritance chain go in the same direction as the
bootstrapping chain, rather than the opposite, is less confusing. In
some cases, it can also help to avoid unnecessary rebuilds.
* gnu/packages/racket.scm (racket-minimal-bc-cgc): Change to be the root
of the package inheritance chain.
[version, source, inputs, native-inputs, build-system, arguments]
[home-page, license]: Inline formerly inherited values.
(racket-minimal-bc-3m): Inherit from 'racket-minimal-bc-cgc' rather than
'racket-minimal'.
[inputs, native-inputs, arguments, license]: Adjust accordingly.
(racket-minimal): Inherit from 'racket-minimal-bc-3m'.
[inputs, native-inputs, arguments, license]: Adjust accordingly.
[properties]: Override effect of 'hidden-package'.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-02-27 16:29:02 -05:00
|
|
|
(native-inputs
|
2022-08-27 14:55:51 -04:00
|
|
|
(let ((native-inputs (package-native-inputs racket-vm-cgc)))
|
|
|
|
(modify-inputs (if (%current-target-system)
|
|
|
|
(modify-inputs native-inputs
|
2022-11-17 19:45:32 -05:00
|
|
|
(prepend this-package)
|
2022-08-27 14:55:51 -04:00
|
|
|
(delete "racket-vm-cgc"))
|
|
|
|
native-inputs)
|
|
|
|
(delete "libtool")
|
|
|
|
(prepend chez-scheme-for-racket
|
2022-11-17 19:45:32 -05:00
|
|
|
chez-nanopass-bootstrap))))
|
gnu: racket-minimal: Bootstrap from C.
This commit bootstraps the Racket compiler and runtime system from source,
including Racket CS as well as both variants of Racket BC. (One remaining
limitation is discussed in comments added to gnu/packages/racket.scm.)
In the process, it moves to building minimal Racket from the Git repository,
rather than the packaged source tarballs. The Git repository is slightly
better as the ``corresponding source'':
1. A few packages especially closely tied to the Racket core implementation
(like "compiler-lib", "base", and "racket-doc") are developed in the
same Git repository. Having them use the same Guix origin, too, will
help to keep them in sync.
2. The top-level Makefile in the Git repository is an important
``script[] used to control compilation and installation.''
In particular, it cooperates with the "distro-build" package to
create the source tarballs and installers for a Racket distribution.
(Racket supports a notion of custom distributions.)
3. It is ``the preferred form ... for making modifications'' to the core
Racket implementation.
Racket releases are tagged in the Git repository (e.g. "v8.1"). At the
beginning of each release cycle, a branch is created to stabilizer a version
for extra testing. Active development happens on the "master" branch.
* gnu/packages/racket-minimal-sh-via-rktio.patch: Adjust for extra directory
layer.
* gnu/local/racket.scm (cfg-flag:sh-for-rktio, cfg-flag:enable-lt,
cfg-flag:enable-racket, unpack-nanopass+stex,
%main-repo-main-distribution-pkgs): New private variables.
* gnu/local/racket.scm (racket-minimal)[source]: Use Git.
[source](snippet): Unbundle nanopass, stex, and libffi.
[native-inputs]: Use racket-bootstrap-chez-bootfiles, plus its
dependencies (for Chez, plus a Racket for bootstrap pig).
[arguments]: Revise extensively.
* gnu/local/racket.scm (racket-minimal-bc-3m, racket-minimal-bc-cgc): New
packages, hidden at least for now.
(racket-bootstrap-chez-bootfiles): Another new package, but this one is
especially likely to stay hidden.
* gnu/local/racket.scm (racket)[origin](snippet): Unbundle packages
developed in the main Git repository, but leave their links.rktd and
pkgs.rktd entries in place.
[native-inputs]: Add the main Racket Git repository.
[arguments](#:phases): Adjust 'unpack-packages to also unpack package
sources from the main Racket Git repository.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-07-19 02:31:43 -04:00
|
|
|
(arguments
|
2022-02-27 16:29:06 -05:00
|
|
|
(substitute-keyword-arguments (package-arguments racket-vm-cgc)
|
|
|
|
((#:phases those-phases #~%standard-phases)
|
|
|
|
#~(modify-phases #$those-phases
|
gnu: racket-minimal: Change inheritance to follow bootstrapping.
Having the package inheritance chain go in the same direction as the
bootstrapping chain, rather than the opposite, is less confusing. In
some cases, it can also help to avoid unnecessary rebuilds.
* gnu/packages/racket.scm (racket-minimal-bc-cgc): Change to be the root
of the package inheritance chain.
[version, source, inputs, native-inputs, build-system, arguments]
[home-page, license]: Inline formerly inherited values.
(racket-minimal-bc-3m): Inherit from 'racket-minimal-bc-cgc' rather than
'racket-minimal'.
[inputs, native-inputs, arguments, license]: Adjust accordingly.
(racket-minimal): Inherit from 'racket-minimal-bc-3m'.
[inputs, native-inputs, arguments, license]: Adjust accordingly.
[properties]: Override effect of 'hidden-package'.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-02-27 16:29:02 -05:00
|
|
|
(add-after 'unpack 'unpack-nanopass+stex
|
|
|
|
(lambda args
|
|
|
|
(with-directory-excursion "racket/src/ChezScheme"
|
2022-02-27 16:29:20 -05:00
|
|
|
#$unpack-nanopass+stex)))))
|
gnu: racket-minimal: Bootstrap from C.
This commit bootstraps the Racket compiler and runtime system from source,
including Racket CS as well as both variants of Racket BC. (One remaining
limitation is discussed in comments added to gnu/packages/racket.scm.)
In the process, it moves to building minimal Racket from the Git repository,
rather than the packaged source tarballs. The Git repository is slightly
better as the ``corresponding source'':
1. A few packages especially closely tied to the Racket core implementation
(like "compiler-lib", "base", and "racket-doc") are developed in the
same Git repository. Having them use the same Guix origin, too, will
help to keep them in sync.
2. The top-level Makefile in the Git repository is an important
``script[] used to control compilation and installation.''
In particular, it cooperates with the "distro-build" package to
create the source tarballs and installers for a Racket distribution.
(Racket supports a notion of custom distributions.)
3. It is ``the preferred form ... for making modifications'' to the core
Racket implementation.
Racket releases are tagged in the Git repository (e.g. "v8.1"). At the
beginning of each release cycle, a branch is created to stabilizer a version
for extra testing. Active development happens on the "master" branch.
* gnu/packages/racket-minimal-sh-via-rktio.patch: Adjust for extra directory
layer.
* gnu/local/racket.scm (cfg-flag:sh-for-rktio, cfg-flag:enable-lt,
cfg-flag:enable-racket, unpack-nanopass+stex,
%main-repo-main-distribution-pkgs): New private variables.
* gnu/local/racket.scm (racket-minimal)[source]: Use Git.
[source](snippet): Unbundle nanopass, stex, and libffi.
[native-inputs]: Use racket-bootstrap-chez-bootfiles, plus its
dependencies (for Chez, plus a Racket for bootstrap pig).
[arguments]: Revise extensively.
* gnu/local/racket.scm (racket-minimal-bc-3m, racket-minimal-bc-cgc): New
packages, hidden at least for now.
(racket-bootstrap-chez-bootfiles): Another new package, but this one is
especially likely to stay hidden.
* gnu/local/racket.scm (racket)[origin](snippet): Unbundle packages
developed in the main Git repository, but leave their links.rktd and
pkgs.rktd entries in place.
[native-inputs]: Add the main Racket Git repository.
[arguments](#:phases): Adjust 'unpack-packages to also unpack package
sources from the main Racket Git repository.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-07-19 02:31:43 -04:00
|
|
|
((#:configure-flags _ '())
|
gnu: racket-minimal: Change inheritance to follow bootstrapping.
Having the package inheritance chain go in the same direction as the
bootstrapping chain, rather than the opposite, is less confusing. In
some cases, it can also help to avoid unnecessary rebuilds.
* gnu/packages/racket.scm (racket-minimal-bc-cgc): Change to be the root
of the package inheritance chain.
[version, source, inputs, native-inputs, build-system, arguments]
[home-page, license]: Inline formerly inherited values.
(racket-minimal-bc-3m): Inherit from 'racket-minimal-bc-cgc' rather than
'racket-minimal'.
[inputs, native-inputs, arguments, license]: Adjust accordingly.
(racket-minimal): Inherit from 'racket-minimal-bc-3m'.
[inputs, native-inputs, arguments, license]: Adjust accordingly.
[properties]: Override effect of 'hidden-package'.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-02-27 16:29:02 -05:00
|
|
|
#~(cons* "--enable-csonly"
|
|
|
|
"--enable-libz"
|
|
|
|
"--enable-lz4"
|
2022-02-27 16:29:20 -05:00
|
|
|
(string-append "--enable-scheme="
|
2022-08-27 14:55:51 -04:00
|
|
|
#+(this-package-native-input
|
2022-02-27 16:29:20 -05:00
|
|
|
"chez-scheme-for-racket")
|
|
|
|
"/bin/scheme")
|
2022-08-27 14:55:52 -04:00
|
|
|
#$@(if (racket-cs-native-supported-system?)
|
|
|
|
#~()
|
|
|
|
#~(#$(string-append "--enable-mach="
|
|
|
|
(nix-system->pbarch-machine-type))
|
|
|
|
"--enable-pb"))
|
2022-08-27 14:55:45 -04:00
|
|
|
#$racket-vm-common-configure-flags))))
|
2022-02-27 16:29:06 -05:00
|
|
|
(synopsis "Racket CS implementation")
|
|
|
|
(description "The Racket CS implementation, which uses ``Chez Scheme'' as
|
|
|
|
its core compiler and runtime system, has been the default Racket VM
|
2022-05-21 20:00:00 -04:00
|
|
|
implementation since Racket 8.0. It performs better than the Racket BC
|
2022-08-27 14:55:52 -04:00
|
|
|
implementation for most programs. On systems for which Racket CS cannot
|
|
|
|
generate machine code, this package uses a variant of its ``portable
|
|
|
|
bytecode'' backend specialized for word size and endianness.
|
gnu: racket-minimal: Bootstrap from C.
This commit bootstraps the Racket compiler and runtime system from source,
including Racket CS as well as both variants of Racket BC. (One remaining
limitation is discussed in comments added to gnu/packages/racket.scm.)
In the process, it moves to building minimal Racket from the Git repository,
rather than the packaged source tarballs. The Git repository is slightly
better as the ``corresponding source'':
1. A few packages especially closely tied to the Racket core implementation
(like "compiler-lib", "base", and "racket-doc") are developed in the
same Git repository. Having them use the same Guix origin, too, will
help to keep them in sync.
2. The top-level Makefile in the Git repository is an important
``script[] used to control compilation and installation.''
In particular, it cooperates with the "distro-build" package to
create the source tarballs and installers for a Racket distribution.
(Racket supports a notion of custom distributions.)
3. It is ``the preferred form ... for making modifications'' to the core
Racket implementation.
Racket releases are tagged in the Git repository (e.g. "v8.1"). At the
beginning of each release cycle, a branch is created to stabilizer a version
for extra testing. Active development happens on the "master" branch.
* gnu/packages/racket-minimal-sh-via-rktio.patch: Adjust for extra directory
layer.
* gnu/local/racket.scm (cfg-flag:sh-for-rktio, cfg-flag:enable-lt,
cfg-flag:enable-racket, unpack-nanopass+stex,
%main-repo-main-distribution-pkgs): New private variables.
* gnu/local/racket.scm (racket-minimal)[source]: Use Git.
[source](snippet): Unbundle nanopass, stex, and libffi.
[native-inputs]: Use racket-bootstrap-chez-bootfiles, plus its
dependencies (for Chez, plus a Racket for bootstrap pig).
[arguments]: Revise extensively.
* gnu/local/racket.scm (racket-minimal-bc-3m, racket-minimal-bc-cgc): New
packages, hidden at least for now.
(racket-bootstrap-chez-bootfiles): Another new package, but this one is
especially likely to stay hidden.
* gnu/local/racket.scm (racket)[origin](snippet): Unbundle packages
developed in the main Git repository, but leave their links.rktd and
pkgs.rktd entries in place.
[native-inputs]: Add the main Racket Git repository.
[arguments](#:phases): Adjust 'unpack-packages to also unpack package
sources from the main Racket Git repository.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-07-19 02:31:43 -04:00
|
|
|
|
2022-02-27 16:29:06 -05:00
|
|
|
Using the Racket VM packages directly is not recommended: instead, install the
|
|
|
|
@code{racket-minimal} or @code{racket} packages.")
|
gnu: racket-minimal: Change inheritance to follow bootstrapping.
Having the package inheritance chain go in the same direction as the
bootstrapping chain, rather than the opposite, is less confusing. In
some cases, it can also help to avoid unnecessary rebuilds.
* gnu/packages/racket.scm (racket-minimal-bc-cgc): Change to be the root
of the package inheritance chain.
[version, source, inputs, native-inputs, build-system, arguments]
[home-page, license]: Inline formerly inherited values.
(racket-minimal-bc-3m): Inherit from 'racket-minimal-bc-cgc' rather than
'racket-minimal'.
[inputs, native-inputs, arguments, license]: Adjust accordingly.
(racket-minimal): Inherit from 'racket-minimal-bc-3m'.
[inputs, native-inputs, arguments, license]: Adjust accordingly.
[properties]: Override effect of 'hidden-package'.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-02-27 16:29:02 -05:00
|
|
|
;; https://download.racket-lang.org/license.html
|
|
|
|
;; The LGPL components are only used by Racket BC.
|
|
|
|
(license (list license:asl2.0 license:expat))))
|
gnu: racket-minimal: Bootstrap from C.
This commit bootstraps the Racket compiler and runtime system from source,
including Racket CS as well as both variants of Racket BC. (One remaining
limitation is discussed in comments added to gnu/packages/racket.scm.)
In the process, it moves to building minimal Racket from the Git repository,
rather than the packaged source tarballs. The Git repository is slightly
better as the ``corresponding source'':
1. A few packages especially closely tied to the Racket core implementation
(like "compiler-lib", "base", and "racket-doc") are developed in the
same Git repository. Having them use the same Guix origin, too, will
help to keep them in sync.
2. The top-level Makefile in the Git repository is an important
``script[] used to control compilation and installation.''
In particular, it cooperates with the "distro-build" package to
create the source tarballs and installers for a Racket distribution.
(Racket supports a notion of custom distributions.)
3. It is ``the preferred form ... for making modifications'' to the core
Racket implementation.
Racket releases are tagged in the Git repository (e.g. "v8.1"). At the
beginning of each release cycle, a branch is created to stabilizer a version
for extra testing. Active development happens on the "master" branch.
* gnu/packages/racket-minimal-sh-via-rktio.patch: Adjust for extra directory
layer.
* gnu/local/racket.scm (cfg-flag:sh-for-rktio, cfg-flag:enable-lt,
cfg-flag:enable-racket, unpack-nanopass+stex,
%main-repo-main-distribution-pkgs): New private variables.
* gnu/local/racket.scm (racket-minimal)[source]: Use Git.
[source](snippet): Unbundle nanopass, stex, and libffi.
[native-inputs]: Use racket-bootstrap-chez-bootfiles, plus its
dependencies (for Chez, plus a Racket for bootstrap pig).
[arguments]: Revise extensively.
* gnu/local/racket.scm (racket-minimal-bc-3m, racket-minimal-bc-cgc): New
packages, hidden at least for now.
(racket-bootstrap-chez-bootfiles): Another new package, but this one is
especially likely to stay hidden.
* gnu/local/racket.scm (racket)[origin](snippet): Unbundle packages
developed in the main Git repository, but leave their links.rktd and
pkgs.rktd entries in place.
[native-inputs]: Add the main Racket Git repository.
[arguments](#:phases): Adjust 'unpack-packages to also unpack package
sources from the main Racket Git repository.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-07-19 02:31:43 -04:00
|
|
|
|
2022-02-27 16:28:59 -05:00
|
|
|
(define (racket-packages-origin name origin specs)
|
|
|
|
"Extract from ORIGIN the sources for the Racket packages specified by SPECS,
|
|
|
|
a non-empty list of package specifications. In the resulting file-like
|
|
|
|
object, each package's source will be in the directory
|
|
|
|
\"/share/racket/pkgs/PKG/\", where PKG is the Racket name for the package.
|
|
|
|
The NAME will be used in the store file name for the resulting file-like
|
|
|
|
object.
|
gnu: racket-minimal: Bootstrap from C.
This commit bootstraps the Racket compiler and runtime system from source,
including Racket CS as well as both variants of Racket BC. (One remaining
limitation is discussed in comments added to gnu/packages/racket.scm.)
In the process, it moves to building minimal Racket from the Git repository,
rather than the packaged source tarballs. The Git repository is slightly
better as the ``corresponding source'':
1. A few packages especially closely tied to the Racket core implementation
(like "compiler-lib", "base", and "racket-doc") are developed in the
same Git repository. Having them use the same Guix origin, too, will
help to keep them in sync.
2. The top-level Makefile in the Git repository is an important
``script[] used to control compilation and installation.''
In particular, it cooperates with the "distro-build" package to
create the source tarballs and installers for a Racket distribution.
(Racket supports a notion of custom distributions.)
3. It is ``the preferred form ... for making modifications'' to the core
Racket implementation.
Racket releases are tagged in the Git repository (e.g. "v8.1"). At the
beginning of each release cycle, a branch is created to stabilizer a version
for extra testing. Active development happens on the "master" branch.
* gnu/packages/racket-minimal-sh-via-rktio.patch: Adjust for extra directory
layer.
* gnu/local/racket.scm (cfg-flag:sh-for-rktio, cfg-flag:enable-lt,
cfg-flag:enable-racket, unpack-nanopass+stex,
%main-repo-main-distribution-pkgs): New private variables.
* gnu/local/racket.scm (racket-minimal)[source]: Use Git.
[source](snippet): Unbundle nanopass, stex, and libffi.
[native-inputs]: Use racket-bootstrap-chez-bootfiles, plus its
dependencies (for Chez, plus a Racket for bootstrap pig).
[arguments]: Revise extensively.
* gnu/local/racket.scm (racket-minimal-bc-3m, racket-minimal-bc-cgc): New
packages, hidden at least for now.
(racket-bootstrap-chez-bootfiles): Another new package, but this one is
especially likely to stay hidden.
* gnu/local/racket.scm (racket)[origin](snippet): Unbundle packages
developed in the main Git repository, but leave their links.rktd and
pkgs.rktd entries in place.
[native-inputs]: Add the main Racket Git repository.
[arguments](#:phases): Adjust 'unpack-packages to also unpack package
sources from the main Racket Git repository.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-07-19 02:31:43 -04:00
|
|
|
|
2022-02-27 16:28:59 -05:00
|
|
|
A package specification is a list of the form:
|
gnu: racket-minimal: Bootstrap from C.
This commit bootstraps the Racket compiler and runtime system from source,
including Racket CS as well as both variants of Racket BC. (One remaining
limitation is discussed in comments added to gnu/packages/racket.scm.)
In the process, it moves to building minimal Racket from the Git repository,
rather than the packaged source tarballs. The Git repository is slightly
better as the ``corresponding source'':
1. A few packages especially closely tied to the Racket core implementation
(like "compiler-lib", "base", and "racket-doc") are developed in the
same Git repository. Having them use the same Guix origin, too, will
help to keep them in sync.
2. The top-level Makefile in the Git repository is an important
``script[] used to control compilation and installation.''
In particular, it cooperates with the "distro-build" package to
create the source tarballs and installers for a Racket distribution.
(Racket supports a notion of custom distributions.)
3. It is ``the preferred form ... for making modifications'' to the core
Racket implementation.
Racket releases are tagged in the Git repository (e.g. "v8.1"). At the
beginning of each release cycle, a branch is created to stabilizer a version
for extra testing. Active development happens on the "master" branch.
* gnu/packages/racket-minimal-sh-via-rktio.patch: Adjust for extra directory
layer.
* gnu/local/racket.scm (cfg-flag:sh-for-rktio, cfg-flag:enable-lt,
cfg-flag:enable-racket, unpack-nanopass+stex,
%main-repo-main-distribution-pkgs): New private variables.
* gnu/local/racket.scm (racket-minimal)[source]: Use Git.
[source](snippet): Unbundle nanopass, stex, and libffi.
[native-inputs]: Use racket-bootstrap-chez-bootfiles, plus its
dependencies (for Chez, plus a Racket for bootstrap pig).
[arguments]: Revise extensively.
* gnu/local/racket.scm (racket-minimal-bc-3m, racket-minimal-bc-cgc): New
packages, hidden at least for now.
(racket-bootstrap-chez-bootfiles): Another new package, but this one is
especially likely to stay hidden.
* gnu/local/racket.scm (racket)[origin](snippet): Unbundle packages
developed in the main Git repository, but leave their links.rktd and
pkgs.rktd entries in place.
[native-inputs]: Add the main Racket Git repository.
[arguments](#:phases): Adjust 'unpack-packages to also unpack package
sources from the main Racket Git repository.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-07-19 02:31:43 -04:00
|
|
|
|
2022-02-27 16:28:59 -05:00
|
|
|
(PKG PATH)
|
2021-04-16 17:11:38 -04:00
|
|
|
|
2022-02-27 16:28:59 -05:00
|
|
|
where PATH is the path to the package source relative to ORIGIN---possibly
|
|
|
|
\".\". As a special case, a package specification may also be a string, which
|
|
|
|
is equivalent to:
|
|
|
|
|
|
|
|
(PKG PKG)
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
- \"expeditor\"
|
|
|
|
- (\"main-distribution\" \".\")
|
|
|
|
- (\"racket-lib\" \"pkgs/racket-lib\")"
|
|
|
|
(computed-file
|
|
|
|
(string-append "racket-pkg-" name "-sources")
|
|
|
|
(with-imported-modules `((guix build utils))
|
|
|
|
#~(begin
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
(mkdir-p (string-append #$output "/share/racket/pkgs"))
|
|
|
|
(chdir (string-append #$output "/share/racket/pkgs"))
|
|
|
|
#$@(map (match-lambda
|
|
|
|
((? string? name)
|
|
|
|
#~(copy-recursively #$(file-append origin (string-append "/" name))
|
|
|
|
#$name))
|
|
|
|
((name ".")
|
|
|
|
#~(copy-recursively #$origin #$name))
|
|
|
|
((name path)
|
|
|
|
#~(copy-recursively #$(file-append origin (string-append "/" path))
|
|
|
|
#$name)))
|
|
|
|
specs)))))
|
|
|
|
|
|
|
|
(define (simple-racket-origin repo hash specs)
|
|
|
|
"Like 'racket-packages-origin', but specialized for packages hosted at
|
|
|
|
\"https://github.com/racket/REPO\" with sha256 checksum HASH. REPO is also
|
|
|
|
used to build the name of the resulting store item."
|
|
|
|
(racket-packages-origin
|
|
|
|
repo
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url (format #f "https://github.com/racket/~a" repo))
|
|
|
|
(commit %racket-commit)))
|
|
|
|
(sha256 hash)
|
|
|
|
(file-name (git-file-name (string-append "racket-" repo)
|
|
|
|
%racket-version)))
|
|
|
|
specs))
|
2021-04-16 17:11:38 -04:00
|
|
|
|
2022-02-27 16:29:06 -05:00
|
|
|
(define-public racket-minimal
|
|
|
|
(package
|
|
|
|
(name "racket-minimal")
|
|
|
|
(version %racket-version)
|
|
|
|
(source #f)
|
|
|
|
;; For cross-compilation, Matthew Flatt recommends reusing
|
|
|
|
;; as much of `raco cross` as possible. So, put that off until
|
|
|
|
;; we have a build system for Racket packages.
|
|
|
|
(inputs
|
|
|
|
(list openssl
|
|
|
|
sqlite
|
2022-08-27 14:55:54 -04:00
|
|
|
racket-vm-cs
|
2022-02-27 16:29:06 -05:00
|
|
|
(racket-packages-origin
|
|
|
|
"base" %racket-origin
|
|
|
|
'(("base" "pkgs/base")
|
|
|
|
("racket-lib" "pkgs/racket-lib")))))
|
2023-08-23 20:08:05 -04:00
|
|
|
(native-search-paths (list $SSL_CERT_DIR $SSL_CERT_FILE))
|
2022-02-27 16:29:06 -05:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
;; Here and for the `racket` package, we're using #:configure-flags
|
|
|
|
;; to pass flags for `configure-layer.rkt` and #:make-flags
|
|
|
|
;; to pass arguments for `raco pkg install`.
|
|
|
|
(list
|
|
|
|
#:configure-flags
|
|
|
|
#~`("--tethered"
|
|
|
|
"--extra-foreign-lib-search-dirs"
|
|
|
|
,(format
|
|
|
|
#f "~s"
|
|
|
|
(list #$(file-append (this-package-input "openssl") "/lib")
|
|
|
|
#$(file-append (this-package-input "sqlite") "/lib"))))
|
|
|
|
#:make-flags #~`("racket-lib")
|
|
|
|
#:tests? #f ;; packaged separately
|
|
|
|
#:modules '((guix build gnu-build-system)
|
|
|
|
(guix build utils)
|
|
|
|
(guix build union)
|
|
|
|
(ice-9 match))
|
|
|
|
#:imported-modules `((guix build union)
|
|
|
|
,@%gnu-build-system-modules)
|
|
|
|
#:phases
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
(delete 'unpack)
|
|
|
|
(replace 'configure
|
|
|
|
(lambda* (#:key inputs configure-flags #:allow-other-keys)
|
|
|
|
(let* ((vm-dir (search-input-directory inputs "opt/racket-vm"))
|
|
|
|
(racket (string-append vm-dir "/bin/racket")))
|
|
|
|
(apply invoke
|
|
|
|
racket
|
|
|
|
#$configure-layer.rkt
|
|
|
|
`(,@(cond
|
|
|
|
((false-if-exception
|
|
|
|
(search-input-file
|
|
|
|
inputs "etc/racket/config.rktd"))
|
|
|
|
=> (lambda (file)
|
|
|
|
`("--parent"
|
|
|
|
,(dirname (dirname (dirname file))))))
|
|
|
|
(else
|
|
|
|
'()))
|
|
|
|
,@configure-flags
|
|
|
|
,vm-dir
|
|
|
|
,#$output))
|
|
|
|
(invoke racket
|
|
|
|
"--config" (string-append #$output "/etc/racket")
|
|
|
|
"-l" "raco" "setup"
|
|
|
|
"--no-user"))))
|
|
|
|
(replace 'build
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
;; We use "share/racket/pkgs" for sources to distinguish them
|
|
|
|
;; from the "lib/racket/pkgs" of a potential parent layer.
|
|
|
|
(union-build (string-append #$output "/lib/racket/pkgs")
|
|
|
|
(search-path-as-list '("share/racket/pkgs")
|
|
|
|
(map cdr inputs))
|
|
|
|
#:create-all-directories? #t)))
|
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key inputs make-flags #:allow-other-keys)
|
|
|
|
(let ((racket
|
|
|
|
(search-input-file inputs "/opt/racket-vm/bin/racket")))
|
|
|
|
(unless (null? make-flags)
|
|
|
|
(invoke racket
|
|
|
|
"-l-"
|
|
|
|
"pkg/dirs-catalog"
|
|
|
|
"--link"
|
|
|
|
"local-catalog"
|
|
|
|
(string-append #$output "/lib/racket/pkgs"))
|
|
|
|
(apply invoke
|
|
|
|
racket
|
|
|
|
"--config" (string-append #$output "/etc/racket")
|
|
|
|
"-l" "raco"
|
|
|
|
"pkg" "install"
|
|
|
|
"--installation"
|
|
|
|
"--auto"
|
|
|
|
"--catalog" "local-catalog"
|
|
|
|
make-flags))))))))
|
|
|
|
(home-page "https://racket-lang.org")
|
|
|
|
(synopsis "Racket without bundled packages such as DrRacket")
|
|
|
|
(description
|
|
|
|
"Racket is a general-purpose programming language in the Scheme family,
|
|
|
|
with a large set of libraries and a compiler based on Chez Scheme. Racket is
|
|
|
|
also a platform for language-oriented programming, from small domain-specific
|
|
|
|
languages to complete language implementations.
|
|
|
|
|
|
|
|
The ``minimal Racket'' distribution includes just enough of Racket for you to
|
|
|
|
use @command{raco pkg} to install more. Bundled packages, such as the
|
|
|
|
DrRacket IDE, are not included.")
|
|
|
|
;; https://download.racket-lang.org/license.html
|
|
|
|
;; The LGPL components are only used by Racket BC.
|
|
|
|
(license (list license:asl2.0 license:expat))))
|
|
|
|
|
2021-04-16 17:11:38 -04:00
|
|
|
(define-public racket
|
gnu: Fix erroneous uses of 'package/inherit'.
These packages use a different source/version from the inherited package, and
thus should not inherit replacements.
* gnu/packages/check.scm (googletest-1.8, python-pytest-runner-2): Use record
inheritance instead of PACKAGE/INHERIT.
* gnu/packages/crates-io.scm (rust-bindgen-0.49, rust-bytes-0.4,
rust-colored-1.9.1, rust-difference-1, rust-docopt-0.8, rust-html5ever-0.23,
rust-http-0.1, rust-http-body-0.1, rust-loom-0.2, rust-loom-0.1,
rust-pulldown-cmark-0.0.8, rust-ring-0.13, rust-rustls-0.12, rust-sct-0.3,
rust-term-0.2, rust-untrusted-0.6, rust-webpki-0.18, rust-webpki-roots-0.17,
rust-webpki-roots-0.14): Likewise.
* gnu/packages/emacs.scm (emacs-next, emacs-next-pgtk, guile-emacs): Likewise.
* gnu/packages/guile.scm (guile-2.2.4): Likewise.
* gnu/packages/maths.scm (hdf5-1.10, hdf5-1.12): Likewise.
* gnu/packages/protobuf.scm (protobuf-3.6, protobuf-3.5, python-protobuf-3.6):
Likewise.
* gnu/packages/python-web.scm (python2-html2text): Likewise.
* gnu/packages/python-xyz.scm (python-pygments/fixed, python2-numpy,
python2-urwid, python2-markdown, python2-fonttools): Likewise.
* gnu/packages/racket.scm (racket): Likewise.
* gnu/packages/sequoia.scm (sequoia4pEp): Likewise.
2021-05-23 08:07:34 -04:00
|
|
|
(package
|
2022-02-27 16:29:06 -05:00
|
|
|
(inherit racket-minimal)
|
2021-04-16 17:11:38 -04:00
|
|
|
(name "racket")
|
2022-02-27 16:28:59 -05:00
|
|
|
(source #f)
|
|
|
|
(native-inputs (list racket-minimal)) ; XXX: conservative estimate, untested
|
2021-04-16 17:08:22 -04:00
|
|
|
(inputs
|
2022-02-27 16:28:59 -05:00
|
|
|
(list
|
|
|
|
cairo
|
|
|
|
fontconfig
|
|
|
|
glib
|
|
|
|
glu
|
|
|
|
gmp
|
|
|
|
gtk+ ;; propagates gdk-pixbuf+svg
|
|
|
|
libjpeg-turbo
|
|
|
|
libpng
|
|
|
|
libx11 ;; ?? wayland ??
|
|
|
|
mesa
|
|
|
|
mpfr
|
|
|
|
pango
|
|
|
|
unixodbc
|
|
|
|
libedit ;; TODO reconsider in light of expeditor and readline-gpl
|
|
|
|
racket-minimal ;; <-- TODO non-tethered layer
|
2022-08-27 14:55:54 -04:00
|
|
|
racket-vm-cs
|
2022-02-27 16:28:59 -05:00
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.5.
* gnu/packages/patches/racket-gui-tethered-launcher-backport.patch,
gnu/packages/patches/racket-enable-scheme-backport.patch: Delete files.
* gnu/local.mk (dist_patch_DATA): Remove them.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to 9.5.7.6.
* gnu/packages/racket.scm (%racket-version): Update to 8.5.
(%racket-origin)[patches]: Remove obsolete patches.
(racket-vm-common-configure-flags): Correct comment.
(racket)[inputs]<2d, datalog, deinprogramm, draw, drracket, expeditor,
htdp, pict, plot, quickscript, racklog, rackunit, redex, scribble,
typed-racket, string-constants, syntax-color, web-server, xrepl>: Update
checksums.
<gui, srfi>: Likewise, and remove obsolete backports.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-05-11 23:59:05 -04:00
|
|
|
"2d" (base32 "0fb5v6058ls08xw3zbmqyr2ym0psm119gl9ffgmhm9w8rs9i4dq7")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("2d" "2d-doc" "2d-lib"))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.8.
* gnu/packages/patches/racket-backport-8.7-pkg-strip.patch: Remove file.
* gnu/local.mk (dist_patch_DATA): Delete it.
* gnu/packages/racket.scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.8.
(%zuo-version): Update to 1.6.
(racket)[inputs]<algol60, cext-lib, deinprogramm, draw, drracket>
<expeditor, gui, htdp, math, pict, r5rs, redex, sasl, scribble>
<typed-racket, string-constants, syntax-color>: Update checksums.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.14.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2023-02-10 19:49:34 -05:00
|
|
|
"algol60" (base32 "03akd7xhn4l7y66qgaimvdbn6gq7ay6j03dc11mz80n06z21dfb6")
|
2022-02-27 16:28:59 -05:00
|
|
|
'(("algol60" ".")))
|
|
|
|
(racket-packages-origin
|
|
|
|
"racket" %racket-origin
|
2022-02-27 16:29:06 -05:00
|
|
|
'(("at-exp-lib" "pkgs/at-exp-lib")
|
2022-02-27 16:28:59 -05:00
|
|
|
("compiler" "pkgs/compiler")
|
|
|
|
("compiler-lib" "pkgs/compiler-lib")
|
|
|
|
("net" "pkgs/net")
|
|
|
|
("net-doc" "pkgs/net-doc")
|
|
|
|
("net-lib" "pkgs/net-lib")
|
|
|
|
("racket-doc" "pkgs/racket-doc")
|
|
|
|
("racket-index" "pkgs/racket-index")
|
gnu: racket: Update to 8.7.
Also, update 'chez-scheme-for-racket' to 9.5.9.8.
Note that racket-backport-8.6-cross-install.patch,
racket-backport-8.6-docindex-write.patch, and
racket-backport-8.6-hurd.patch were missing from dist_patch_DATA.
* gnu/packages/patches/racket-backport-8.6-cross-install.patch,
gnu/packages/patches/racket-backport-8.6-docindex-write.patch,
gnu/packages/patches/racket-backport-8.6-hurd.patch,
gnu/packages/patches/racket-backport-8.6-zuo.patch: Remove patches.
* gnu/packages/patches/racket-backport-8.7-pkg-strip.patch: New patch.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket.scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.7.
(racket)[inputs]: Add 'scheme-doc' source package from '%racket-origin'.
(racket)[inputs]<compatibility, db, deinprogramm, draw, drracket>
<eopl, errortrace, gui, htdp, mzscheme, parser-tools, pict, plai, plot>
<r6rs, redex, scribble, slideshow, snip, typed-racket, srfi>
<string-constants>: Update checksums.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to 9.5.9.8.
[arguments]: Enable tests.
[description]: Update.
(chez-scheme-for-racket-bootstrap-bootfiles)[arguments]: Update path to
'rktboot'.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-11-17 19:45:30 -05:00
|
|
|
("scheme-doc" "pkgs/scheme-doc")
|
2022-02-27 16:28:59 -05:00
|
|
|
("sandbox-lib" "pkgs/sandbox-lib")
|
|
|
|
("zo-lib" "pkgs/zo-lib")))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.8.
* gnu/packages/patches/racket-backport-8.7-pkg-strip.patch: Remove file.
* gnu/local.mk (dist_patch_DATA): Delete it.
* gnu/packages/racket.scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.8.
(%zuo-version): Update to 1.6.
(racket)[inputs]<algol60, cext-lib, deinprogramm, draw, drracket>
<expeditor, gui, htdp, math, pict, r5rs, redex, sasl, scribble>
<typed-racket, string-constants, syntax-color>: Update checksums.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.14.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2023-02-10 19:49:34 -05:00
|
|
|
"cext-lib" (base32 "01dirj5nq9s384xqpzh1p07la38vcycsim0k1ls04a52sgyglgwc")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("cext-lib" "dynext-lib"))
|
|
|
|
(simple-racket-origin
|
|
|
|
"class-iop" (base32 "08z57q83cr7wnh6g8ah3hdhmsmf9zp1jfs7yvxv188l3hzvygy5l")
|
|
|
|
'("class-iop-lib"))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.7.
Also, update 'chez-scheme-for-racket' to 9.5.9.8.
Note that racket-backport-8.6-cross-install.patch,
racket-backport-8.6-docindex-write.patch, and
racket-backport-8.6-hurd.patch were missing from dist_patch_DATA.
* gnu/packages/patches/racket-backport-8.6-cross-install.patch,
gnu/packages/patches/racket-backport-8.6-docindex-write.patch,
gnu/packages/patches/racket-backport-8.6-hurd.patch,
gnu/packages/patches/racket-backport-8.6-zuo.patch: Remove patches.
* gnu/packages/patches/racket-backport-8.7-pkg-strip.patch: New patch.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket.scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.7.
(racket)[inputs]: Add 'scheme-doc' source package from '%racket-origin'.
(racket)[inputs]<compatibility, db, deinprogramm, draw, drracket>
<eopl, errortrace, gui, htdp, mzscheme, parser-tools, pict, plai, plot>
<r6rs, redex, scribble, slideshow, snip, typed-racket, srfi>
<string-constants>: Update checksums.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to 9.5.9.8.
[arguments]: Enable tests.
[description]: Update.
(chez-scheme-for-racket-bootstrap-bootfiles)[arguments]: Update path to
'rktboot'.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-11-17 19:45:30 -05:00
|
|
|
"compatibility" (base32 "0ydx9alrpqg03xcl7zm5qcpx017i554q9ramz69vpwlfy3zdqmdm")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("compatibility" "compatibility-doc" "compatibility-lib"))
|
|
|
|
(simple-racket-origin
|
|
|
|
"contract-profile" (base32 "1xm2z8g0dpv5d9h2sg680vx1a8ix9gbsdpxxb8qv1w7akp73paj3")
|
|
|
|
'(("contract-profile" ".")))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.10.
* gnu/packages/patches/racket-rktboot-riscv64-support.patch: Move to ...
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: ... this
file, together with a related upstreamed patch.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.10.
(racket)[inputs]<data, deinprogramm, drracket, gui, htdp, math>
<net-cookies, pict, plot, racklog, redex, scribble, slideshow, snip>
<typed-racket, string-constants, syntax-color, web-server>: Update
hashes.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.17.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2023-08-23 20:08:04 -04:00
|
|
|
"data" (base32 "1pml8g3zgvnaiqb659psh99m70v96m6nh9zash2vfgir46j4rjnh")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("data" "data-doc" "data-enumerate-lib" "data-lib"))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.5.
* gnu/packages/patches/racket-gui-tethered-launcher-backport.patch,
gnu/packages/patches/racket-enable-scheme-backport.patch: Delete files.
* gnu/local.mk (dist_patch_DATA): Remove them.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to 9.5.7.6.
* gnu/packages/racket.scm (%racket-version): Update to 8.5.
(%racket-origin)[patches]: Remove obsolete patches.
(racket-vm-common-configure-flags): Correct comment.
(racket)[inputs]<2d, datalog, deinprogramm, draw, drracket, expeditor,
htdp, pict, plot, quickscript, racklog, rackunit, redex, scribble,
typed-racket, string-constants, syntax-color, web-server, xrepl>: Update
checksums.
<gui, srfi>: Likewise, and remove obsolete backports.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-05-11 23:59:05 -04:00
|
|
|
"datalog" (base32 "0nf6cy4djpyhfvgpa6yn72apbz9s83gp0qg95pzjd0az4v6qwq1s")
|
2022-02-27 16:28:59 -05:00
|
|
|
'(("datalog" ".")))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.7.
Also, update 'chez-scheme-for-racket' to 9.5.9.8.
Note that racket-backport-8.6-cross-install.patch,
racket-backport-8.6-docindex-write.patch, and
racket-backport-8.6-hurd.patch were missing from dist_patch_DATA.
* gnu/packages/patches/racket-backport-8.6-cross-install.patch,
gnu/packages/patches/racket-backport-8.6-docindex-write.patch,
gnu/packages/patches/racket-backport-8.6-hurd.patch,
gnu/packages/patches/racket-backport-8.6-zuo.patch: Remove patches.
* gnu/packages/patches/racket-backport-8.7-pkg-strip.patch: New patch.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket.scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.7.
(racket)[inputs]: Add 'scheme-doc' source package from '%racket-origin'.
(racket)[inputs]<compatibility, db, deinprogramm, draw, drracket>
<eopl, errortrace, gui, htdp, mzscheme, parser-tools, pict, plai, plot>
<r6rs, redex, scribble, slideshow, snip, typed-racket, srfi>
<string-constants>: Update checksums.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to 9.5.9.8.
[arguments]: Enable tests.
[description]: Update.
(chez-scheme-for-racket-bootstrap-bootfiles)[arguments]: Update path to
'rktboot'.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-11-17 19:45:30 -05:00
|
|
|
"db" (base32 "0xx0k8yw2vb9b4vk2dwjfbpixnmriqsv7kpv3fvfxbwyg42y0db5")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("db" "db-doc" "db-lib"))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.11.1.
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: Delete file.
* gnu/packages/patches/racket-backport-8.11-layered-docs.patch: New file.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.11.1.
(%zuo-version): Update to 1.7.
(racket)[inputs]<deinprogramm, draw, drracket, games, gui, htdp>
<parser-tools, plot, rackunit, redex, scribble, slideshow, typed-racket>
<srfi, string-constants, syntax-color, web-server, xrepl>: Update hashes.
<quickscript>: Likewise, and add snippet.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.18.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-12-01 10:35:38 -05:00
|
|
|
"deinprogramm" (base32 "0ijngjyg2i528a4xv20db4adirvx5rj4m86fd70l33lgwv53w3s0")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("deinprogramm" "deinprogramm-signature"))
|
|
|
|
(simple-racket-origin
|
|
|
|
"distributed-places" (base32 "1dajpkj9balqcpv6cdk9hwjz592h1vq8rrx5vncariiac4vbdpa0")
|
|
|
|
'("distributed-places" "distributed-places-doc" "distributed-places-lib"))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.11.1.
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: Delete file.
* gnu/packages/patches/racket-backport-8.11-layered-docs.patch: New file.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.11.1.
(%zuo-version): Update to 1.7.
(racket)[inputs]<deinprogramm, draw, drracket, games, gui, htdp>
<parser-tools, plot, rackunit, redex, scribble, slideshow, typed-racket>
<srfi, string-constants, syntax-color, web-server, xrepl>: Update hashes.
<quickscript>: Likewise, and add snippet.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.18.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-12-01 10:35:38 -05:00
|
|
|
"draw" (base32 "1h7mckay8yjcgmj3r0jkf1csn430gn43n8jl1l956q9gcprlmncl")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("draw" "draw-doc" "draw-lib"))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.11.1.
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: Delete file.
* gnu/packages/patches/racket-backport-8.11-layered-docs.patch: New file.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.11.1.
(%zuo-version): Update to 1.7.
(racket)[inputs]<deinprogramm, draw, drracket, games, gui, htdp>
<parser-tools, plot, rackunit, redex, scribble, slideshow, typed-racket>
<srfi, string-constants, syntax-color, web-server, xrepl>: Update hashes.
<quickscript>: Likewise, and add snippet.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.18.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-12-01 10:35:38 -05:00
|
|
|
"drracket" (base32 "00ay3pwl648wq8nnaap665c38clr39k0g1wslh2wclar32wjpgdc")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("drracket"
|
|
|
|
"drracket-plugin-lib"
|
|
|
|
"drracket-tool"
|
|
|
|
"drracket-tool-doc"
|
|
|
|
"drracket-tool-lib"
|
|
|
|
"drracket-tool-text-lib"))
|
|
|
|
(simple-racket-origin
|
|
|
|
"ds-store" (base32 "0ajr27kipp4dr1qlisaghsb3h7lhhjwrfw2r79b5myczsa1mp661")
|
|
|
|
'("ds-store" "ds-store-doc" "ds-store-lib"))
|
|
|
|
(simple-racket-origin
|
|
|
|
"eli-tester" (base32 "0icx6wn14gjm8kdmq1jppqgq87sxkras4qb5xmdr6wigxafhjqyk")
|
|
|
|
'(("eli-tester" ".")))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.7.
Also, update 'chez-scheme-for-racket' to 9.5.9.8.
Note that racket-backport-8.6-cross-install.patch,
racket-backport-8.6-docindex-write.patch, and
racket-backport-8.6-hurd.patch were missing from dist_patch_DATA.
* gnu/packages/patches/racket-backport-8.6-cross-install.patch,
gnu/packages/patches/racket-backport-8.6-docindex-write.patch,
gnu/packages/patches/racket-backport-8.6-hurd.patch,
gnu/packages/patches/racket-backport-8.6-zuo.patch: Remove patches.
* gnu/packages/patches/racket-backport-8.7-pkg-strip.patch: New patch.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket.scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.7.
(racket)[inputs]: Add 'scheme-doc' source package from '%racket-origin'.
(racket)[inputs]<compatibility, db, deinprogramm, draw, drracket>
<eopl, errortrace, gui, htdp, mzscheme, parser-tools, pict, plai, plot>
<r6rs, redex, scribble, slideshow, snip, typed-racket, srfi>
<string-constants>: Update checksums.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to 9.5.9.8.
[arguments]: Enable tests.
[description]: Update.
(chez-scheme-for-racket-bootstrap-bootfiles)[arguments]: Update path to
'rktboot'.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-11-17 19:45:30 -05:00
|
|
|
"eopl" (base32 "1n8lzvhggp6bp2hg4n51zg8f4ya10isb92pfzngss2ch7299zfj2")
|
2022-02-27 16:28:59 -05:00
|
|
|
'(("eopl" ".")))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.7.
Also, update 'chez-scheme-for-racket' to 9.5.9.8.
Note that racket-backport-8.6-cross-install.patch,
racket-backport-8.6-docindex-write.patch, and
racket-backport-8.6-hurd.patch were missing from dist_patch_DATA.
* gnu/packages/patches/racket-backport-8.6-cross-install.patch,
gnu/packages/patches/racket-backport-8.6-docindex-write.patch,
gnu/packages/patches/racket-backport-8.6-hurd.patch,
gnu/packages/patches/racket-backport-8.6-zuo.patch: Remove patches.
* gnu/packages/patches/racket-backport-8.7-pkg-strip.patch: New patch.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket.scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.7.
(racket)[inputs]: Add 'scheme-doc' source package from '%racket-origin'.
(racket)[inputs]<compatibility, db, deinprogramm, draw, drracket>
<eopl, errortrace, gui, htdp, mzscheme, parser-tools, pict, plai, plot>
<r6rs, redex, scribble, slideshow, snip, typed-racket, srfi>
<string-constants>: Update checksums.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to 9.5.9.8.
[arguments]: Enable tests.
[description]: Update.
(chez-scheme-for-racket-bootstrap-bootfiles)[arguments]: Update path to
'rktboot'.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-11-17 19:45:30 -05:00
|
|
|
"errortrace" (base32 "0l9k2rx6z4jkid7kxhbs763s66pxbzvfrgxajykbrmqkv77lhb3w")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("errortrace" "errortrace-doc" "errortrace-lib"))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.8.
* gnu/packages/patches/racket-backport-8.7-pkg-strip.patch: Remove file.
* gnu/local.mk (dist_patch_DATA): Delete it.
* gnu/packages/racket.scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.8.
(%zuo-version): Update to 1.6.
(racket)[inputs]<algol60, cext-lib, deinprogramm, draw, drracket>
<expeditor, gui, htdp, math, pict, r5rs, redex, sasl, scribble>
<typed-racket, string-constants, syntax-color>: Update checksums.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.14.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2023-02-10 19:49:34 -05:00
|
|
|
"expeditor" (base32 "10841c60nxqvwnjn6f9c6dcp4vsqbvi7n8nvi59vjk7d3b2qfpbq")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("expeditor" "expeditor-doc" "expeditor-lib"))
|
|
|
|
(simple-racket-origin
|
|
|
|
"frtime" (base32 "0ydz2yn8vvv6z7brwlswcyx0f31a6y6d443i89rysfvd2xkhpfd5")
|
|
|
|
'(("frtime" ".")))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.9.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.16.
* gnu/packages/racket.scm (%racket-version): Update to 8.9.
(racket)[inputs]<deinprogramm, draw, drracket, future-visualizer, gui>
<htdp, macro-debugger, math, pict, plot, rackunit, redex, scribble>
<slideshow, snip, typed-racket, srfi, swindle, syntax-color>
<web-server>: Update checksums.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-06-23 06:32:51 -04:00
|
|
|
"future-visualizer" (base32 "0yzfs4ls5h9224wnssm21mm6dig40r9k6zh66sbi1vrlwyswpym0")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("future-visualizer"
|
|
|
|
"future-visualizer-pict"
|
|
|
|
"future-visualizer-typed"))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.11.1.
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: Delete file.
* gnu/packages/patches/racket-backport-8.11-layered-docs.patch: New file.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.11.1.
(%zuo-version): Update to 1.7.
(racket)[inputs]<deinprogramm, draw, drracket, games, gui, htdp>
<parser-tools, plot, rackunit, redex, scribble, slideshow, typed-racket>
<srfi, string-constants, syntax-color, web-server, xrepl>: Update hashes.
<quickscript>: Likewise, and add snippet.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.18.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-12-01 10:35:38 -05:00
|
|
|
"games" (base32 "13z7fnbr48s98lmfxc0nbfhbqkd4hphymy2r63hqm783xzn6ylzi")
|
2022-02-27 16:28:59 -05:00
|
|
|
'(("games" ".")))
|
gnu: racket: Update to 8.5.
* gnu/packages/patches/racket-gui-tethered-launcher-backport.patch,
gnu/packages/patches/racket-enable-scheme-backport.patch: Delete files.
* gnu/local.mk (dist_patch_DATA): Remove them.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to 9.5.7.6.
* gnu/packages/racket.scm (%racket-version): Update to 8.5.
(%racket-origin)[patches]: Remove obsolete patches.
(racket-vm-common-configure-flags): Correct comment.
(racket)[inputs]<2d, datalog, deinprogramm, draw, drracket, expeditor,
htdp, pict, plot, quickscript, racklog, rackunit, redex, scribble,
typed-racket, string-constants, syntax-color, web-server, xrepl>: Update
checksums.
<gui, srfi>: Likewise, and remove obsolete backports.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-05-11 23:59:05 -04:00
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.11.1.
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: Delete file.
* gnu/packages/patches/racket-backport-8.11-layered-docs.patch: New file.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.11.1.
(%zuo-version): Update to 1.7.
(racket)[inputs]<deinprogramm, draw, drracket, games, gui, htdp>
<parser-tools, plot, rackunit, redex, scribble, slideshow, typed-racket>
<srfi, string-constants, syntax-color, web-server, xrepl>: Update hashes.
<quickscript>: Likewise, and add snippet.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.18.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-12-01 10:35:38 -05:00
|
|
|
"gui" (base32 "10mlajn5xqgdwi7gf9lgszfv609pjp8m24lm97b8xh6fmjlkqi4b")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("gui" "gui-doc" "gui-lib" "tex-table"))
|
|
|
|
(simple-racket-origin
|
|
|
|
"gui-pkg-manager" (base32 "1ji9448d723nklqvycwdswj0ni28sabrncag14f9mx47did5myb5")
|
|
|
|
'("gui-pkg-manager-lib"))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.11.1.
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: Delete file.
* gnu/packages/patches/racket-backport-8.11-layered-docs.patch: New file.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.11.1.
(%zuo-version): Update to 1.7.
(racket)[inputs]<deinprogramm, draw, drracket, games, gui, htdp>
<parser-tools, plot, rackunit, redex, scribble, slideshow, typed-racket>
<srfi, string-constants, syntax-color, web-server, xrepl>: Update hashes.
<quickscript>: Likewise, and add snippet.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.18.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-12-01 10:35:38 -05:00
|
|
|
"htdp" (base32 "04p2xp4hnnsnmrmvw05fg4fv18k3g2rz5gmgs89sc6g8y886m6zz")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("htdp" "htdp-doc" "htdp-lib"))
|
|
|
|
(simple-racket-origin
|
|
|
|
"html" (base32 "18n1jnjgzfknc8nv8dppi85nb8q08gqdwkg6hfjk08x0p00anx2x")
|
|
|
|
'("html" "html-doc" "html-lib"))
|
|
|
|
(simple-racket-origin
|
|
|
|
"icons" (base32 "1s5a6j11fg3fdr6b7vm2q7q178d7q8b8igy73bs211r27qrd1gg7")
|
|
|
|
'(("icons" ".")))
|
|
|
|
(simple-racket-origin
|
|
|
|
"images" (base32 "0rpjxqw34bq5m08kh1ldl1mr7s9z1lyydxxcyzb292kqh9qiqvfl")
|
|
|
|
'("images" "images-doc" "images-gui-lib" "images-lib"))
|
|
|
|
(simple-racket-origin
|
|
|
|
"lazy" (base32 "176ylzgbdsbmqknpihaz519afq71pyjkv1h87j5v8jfbpbddyfsf")
|
|
|
|
'(("lazy" ".")))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.9.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.16.
* gnu/packages/racket.scm (%racket-version): Update to 8.9.
(racket)[inputs]<deinprogramm, draw, drracket, future-visualizer, gui>
<htdp, macro-debugger, math, pict, plot, rackunit, redex, scribble>
<slideshow, snip, typed-racket, srfi, swindle, syntax-color>
<web-server>: Update checksums.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-06-23 06:32:51 -04:00
|
|
|
"macro-debugger" (base32 "133b74pxavbafcsmp34kgvwmx1l6xx4bykzvgwwjg3kg2fa5bg1g")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("macro-debugger" "macro-debugger-text-lib"))
|
|
|
|
(simple-racket-origin
|
|
|
|
"main-distribution" (base32 "0m2n9s32s8a4a2gn4ywrm9l8jycdm5ayi5w9kh5wchhrrw7qzq7y")
|
|
|
|
'(("main-distribution" ".")))
|
|
|
|
(simple-racket-origin
|
|
|
|
"make" (base32 "10852fj30bz5r46c3d99s37fkgy5yh44gb01j29sf3kxnhi0g2sa")
|
|
|
|
'(("make" ".")))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.10.
* gnu/packages/patches/racket-rktboot-riscv64-support.patch: Move to ...
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: ... this
file, together with a related upstreamed patch.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.10.
(racket)[inputs]<data, deinprogramm, drracket, gui, htdp, math>
<net-cookies, pict, plot, racklog, redex, scribble, slideshow, snip>
<typed-racket, string-constants, syntax-color, web-server>: Update
hashes.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.17.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2023-08-23 20:08:04 -04:00
|
|
|
"math" (base32 "1l0r4xpbbjz0b2s6v3kn490zgs2q1dnj3ga95y1505jmcwgb2hl9")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("math" "math-doc" "math-lib"))
|
|
|
|
(simple-racket-origin
|
|
|
|
"mysterx" (base32 "11p9jzrafw0hizhl0cs4sxx7rv281185q8hryic2rpk0kzjdyr48")
|
|
|
|
'(("mysterx" ".")))
|
|
|
|
(simple-racket-origin
|
|
|
|
"mzcom" (base32 "0rc9pfj7gwm5azghqvcibz6si1x5s2v8mr2yngk7ssq9gzfbi6a4")
|
|
|
|
'(("mzcom" ".")))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.7.
Also, update 'chez-scheme-for-racket' to 9.5.9.8.
Note that racket-backport-8.6-cross-install.patch,
racket-backport-8.6-docindex-write.patch, and
racket-backport-8.6-hurd.patch were missing from dist_patch_DATA.
* gnu/packages/patches/racket-backport-8.6-cross-install.patch,
gnu/packages/patches/racket-backport-8.6-docindex-write.patch,
gnu/packages/patches/racket-backport-8.6-hurd.patch,
gnu/packages/patches/racket-backport-8.6-zuo.patch: Remove patches.
* gnu/packages/patches/racket-backport-8.7-pkg-strip.patch: New patch.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket.scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.7.
(racket)[inputs]: Add 'scheme-doc' source package from '%racket-origin'.
(racket)[inputs]<compatibility, db, deinprogramm, draw, drracket>
<eopl, errortrace, gui, htdp, mzscheme, parser-tools, pict, plai, plot>
<r6rs, redex, scribble, slideshow, snip, typed-racket, srfi>
<string-constants>: Update checksums.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to 9.5.9.8.
[arguments]: Enable tests.
[description]: Update.
(chez-scheme-for-racket-bootstrap-bootfiles)[arguments]: Update path to
'rktboot'.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-11-17 19:45:30 -05:00
|
|
|
"mzscheme" (base32 "04kyrhznq46mklacf7pms4fv47zsimqqk3948r3w2ym9n04fhjsx")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("mzscheme" "mzscheme-doc" "mzscheme-lib"))
|
|
|
|
(racket-packages-origin
|
|
|
|
"net-cookies" (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/RenaissanceBug/racket-cookies")
|
|
|
|
(commit %racket-commit)))
|
|
|
|
(sha256 (base32
|
gnu: racket: Update to 8.10.
* gnu/packages/patches/racket-rktboot-riscv64-support.patch: Move to ...
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: ... this
file, together with a related upstreamed patch.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.10.
(racket)[inputs]<data, deinprogramm, drracket, gui, htdp, math>
<net-cookies, pict, plot, racklog, redex, scribble, slideshow, snip>
<typed-racket, string-constants, syntax-color, web-server>: Update
hashes.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.17.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2023-08-23 20:08:04 -04:00
|
|
|
"05lnml9nszcq72k8bi4iwdyplp2iv23ywb2gmrs2hr8837fqi65y"))
|
2022-02-27 16:28:59 -05:00
|
|
|
(file-name
|
|
|
|
(git-file-name "RenaissanceBug-racket-cookies" %racket-version)))
|
|
|
|
'("net-cookies" "net-cookies-doc" "net-cookies-lib"))
|
|
|
|
(racket-packages-origin
|
|
|
|
"optimization-coach"
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/stamourv/optimization-coach")
|
|
|
|
(commit %racket-commit)))
|
|
|
|
(sha256 (base32
|
|
|
|
"0b27sw48d7rhz0hin88c7rbr9vpg1c23sn82nd4jkmq54h6gasr1"))
|
|
|
|
(file-name
|
|
|
|
(git-file-name "stamourv-optimization-coach" %racket-version)))
|
|
|
|
'(("optimization-coach" ".")))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.6.
Also, update 'chez-scheme-for-racket' to 9.5.9.2.
* gnu/packages/patches/racket-chez-scheme-bin-sh.patch: Refresh patch.
* gnu/packages/patches/racket-backport-8.6-cross-install.patch,
gnu/packages/patches/racket-backport-8.6-docindex-write.patch,
gnu/packages/patches/racket-backport-8.6-hurd.patch: New patches.
* gnu/local.mk (dist_patch_DATA): Add them.
* gnu/packages/racket.scm (%racket-origin)[patches]: Use them and the
patches for Zuo.
(%racket-version): Update to 8.6.
(zuo)[version]: Refer to '%racket-version'.
[origin]: Use '%racket-origin'.
(racket-vm-cgc)[native-inputs]: Add 'zuo'.
[arguments]<#:make-flags>: Use 'zuo' from 'native-inputs'.
(racket)[inputs]<data, db, deinprogramm, draw, drracket, errortrace,
gui, htdp, math, option-contract, parser-tools, pict, rackunit, realm,
redex, scribble, typed-racket, string-constants, swindle, syntax-color,
web-server>: Update checksums.
* gnu/packages/chez.scm (target-chez-os): Handle Hurd and QNX.
(%chez-features-table): Likewise.
(chez-scheme-for-racket): Update to 9.5.9.2.
[native-inputs]: Add 'zuo'.
[arguments]<#:out-of-source?>: Use out-of-source build.
<#:tests?>: Skip them due to ongoing problems.
<#:configure-flags>: Add '--install-csug=' and '--installreleasenotes='.
<#:make-flags>: Use 'zuo' from 'native-inputs'. Supply 'STEXLIB=' here,
rather than in a phase.
<#:phases>: Replace 'install-docs' using new 'make' target.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-08-27 14:55:48 -04:00
|
|
|
"option-contract" (base32 "07cncg9pi15cm19k7rzv54vx83wq7y42i2m6bgzaqja1h8vnj2ww")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("option-contract" "option-contract-doc" "option-contract-lib"))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.11.1.
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: Delete file.
* gnu/packages/patches/racket-backport-8.11-layered-docs.patch: New file.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.11.1.
(%zuo-version): Update to 1.7.
(racket)[inputs]<deinprogramm, draw, drracket, games, gui, htdp>
<parser-tools, plot, rackunit, redex, scribble, slideshow, typed-racket>
<srfi, string-constants, syntax-color, web-server, xrepl>: Update hashes.
<quickscript>: Likewise, and add snippet.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.18.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-12-01 10:35:38 -05:00
|
|
|
"parser-tools" (base32 "1lp7wixmxcnha7cz834xfqqr48c2nldjbn9lng69bihpw01h9zms")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("parser-tools" "parser-tools-doc" "parser-tools-lib"))
|
|
|
|
(simple-racket-origin
|
|
|
|
"pconvert" (base32 "00czi0p399mmyrvxyrs5kniizpkqfxyz2ncxqi2jy79a7wk79pb1")
|
|
|
|
'("pconvert-lib"))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.10.
* gnu/packages/patches/racket-rktboot-riscv64-support.patch: Move to ...
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: ... this
file, together with a related upstreamed patch.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.10.
(racket)[inputs]<data, deinprogramm, drracket, gui, htdp, math>
<net-cookies, pict, plot, racklog, redex, scribble, slideshow, snip>
<typed-racket, string-constants, syntax-color, web-server>: Update
hashes.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.17.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2023-08-23 20:08:04 -04:00
|
|
|
"pict" (base32 "1vsn91r167wssaflzz080nsrcf0jfhl2a48zcj9hvdb77arbj8kc")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("pict" "pict-doc" "pict-lib"))
|
|
|
|
(simple-racket-origin
|
|
|
|
"pict-snip" (base32 "081nwiy4a0n4f7xws16hqbhf0j3kz5alizndi3nnyr3chm4kng6x")
|
|
|
|
'("pict-snip" "pict-snip-doc" "pict-snip-lib"))
|
|
|
|
(simple-racket-origin
|
|
|
|
"picturing-programs" (base32 "1g6xr39hx1j03gb3d4dljm3v91xcj2gfpq3dgy5xvplzr6cmmxgr")
|
|
|
|
'(("picturing-programs" ".")))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.7.
Also, update 'chez-scheme-for-racket' to 9.5.9.8.
Note that racket-backport-8.6-cross-install.patch,
racket-backport-8.6-docindex-write.patch, and
racket-backport-8.6-hurd.patch were missing from dist_patch_DATA.
* gnu/packages/patches/racket-backport-8.6-cross-install.patch,
gnu/packages/patches/racket-backport-8.6-docindex-write.patch,
gnu/packages/patches/racket-backport-8.6-hurd.patch,
gnu/packages/patches/racket-backport-8.6-zuo.patch: Remove patches.
* gnu/packages/patches/racket-backport-8.7-pkg-strip.patch: New patch.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket.scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.7.
(racket)[inputs]: Add 'scheme-doc' source package from '%racket-origin'.
(racket)[inputs]<compatibility, db, deinprogramm, draw, drracket>
<eopl, errortrace, gui, htdp, mzscheme, parser-tools, pict, plai, plot>
<r6rs, redex, scribble, slideshow, snip, typed-racket, srfi>
<string-constants>: Update checksums.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to 9.5.9.8.
[arguments]: Enable tests.
[description]: Update.
(chez-scheme-for-racket-bootstrap-bootfiles)[arguments]: Update path to
'rktboot'.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-11-17 19:45:30 -05:00
|
|
|
"plai" (base32 "18kz31pj4lanlf9mn2yc0q9sxis264wb4f9v85ga23wd7g1hrzbq")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("plai" "plai-doc" "plai-lib"))
|
|
|
|
(simple-racket-origin
|
|
|
|
"planet" (base32 "0r2yqrzrmdjjyr14k6hhlzc5kzrcx3583m1s02mhrcmpfw0s85w9")
|
|
|
|
'("planet" "planet-doc" "planet-lib"))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.11.1.
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: Delete file.
* gnu/packages/patches/racket-backport-8.11-layered-docs.patch: New file.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.11.1.
(%zuo-version): Update to 1.7.
(racket)[inputs]<deinprogramm, draw, drracket, games, gui, htdp>
<parser-tools, plot, rackunit, redex, scribble, slideshow, typed-racket>
<srfi, string-constants, syntax-color, web-server, xrepl>: Update hashes.
<quickscript>: Likewise, and add snippet.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.18.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-12-01 10:35:38 -05:00
|
|
|
"plot" (base32 "17fhsymy884xr4jqk585rm5kwdgkgz0635916gh5y0fsnp5pir70")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("plot" "plot-compat" "plot-doc" "plot-gui-lib" "plot-lib"))
|
|
|
|
(simple-racket-origin
|
|
|
|
"preprocessor" (base32 "1p5aid58ifnjy4xl0ysh85cq39k25661v975jrpk182z3k5621mg")
|
|
|
|
'(("preprocessor" ".")))
|
|
|
|
(simple-racket-origin
|
|
|
|
"profile" (base32 "179i86lyby29nywz60l4vnadi02w8b12h7501nm5h5g4pq9jjmbb")
|
|
|
|
'("profile" "profile-doc" "profile-lib"))
|
|
|
|
(racket-packages-origin
|
|
|
|
"quickscript" (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/Metaxal/quickscript")
|
|
|
|
(commit %racket-commit)))
|
gnu: racket: Update to 8.11.1.
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: Delete file.
* gnu/packages/patches/racket-backport-8.11-layered-docs.patch: New file.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.11.1.
(%zuo-version): Update to 1.7.
(racket)[inputs]<deinprogramm, draw, drracket, games, gui, htdp>
<parser-tools, plot, rackunit, redex, scribble, slideshow, typed-racket>
<srfi, string-constants, syntax-color, web-server, xrepl>: Update hashes.
<quickscript>: Likewise, and add snippet.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.18.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-12-01 10:35:38 -05:00
|
|
|
(snippet
|
|
|
|
;; See https://github.com/Metaxal/quickscript/issues/73
|
|
|
|
#~(delete-file "register.rkt"))
|
2022-02-27 16:28:59 -05:00
|
|
|
(sha256 (base32
|
gnu: racket: Update to 8.11.1.
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: Delete file.
* gnu/packages/patches/racket-backport-8.11-layered-docs.patch: New file.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.11.1.
(%zuo-version): Update to 1.7.
(racket)[inputs]<deinprogramm, draw, drracket, games, gui, htdp>
<parser-tools, plot, rackunit, redex, scribble, slideshow, typed-racket>
<srfi, string-constants, syntax-color, web-server, xrepl>: Update hashes.
<quickscript>: Likewise, and add snippet.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.18.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-12-01 10:35:38 -05:00
|
|
|
"0v27qknghfi0058vk8xwwlwqgqwdsxxmprrmag64cyygdz95sxym"))
|
2022-02-27 16:28:59 -05:00
|
|
|
(file-name (git-file-name "Metaxal-quickscript" %racket-version)))
|
|
|
|
'(("quickscript" ".")))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.8.
* gnu/packages/patches/racket-backport-8.7-pkg-strip.patch: Remove file.
* gnu/local.mk (dist_patch_DATA): Delete it.
* gnu/packages/racket.scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.8.
(%zuo-version): Update to 1.6.
(racket)[inputs]<algol60, cext-lib, deinprogramm, draw, drracket>
<expeditor, gui, htdp, math, pict, r5rs, redex, sasl, scribble>
<typed-racket, string-constants, syntax-color>: Update checksums.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.14.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2023-02-10 19:49:34 -05:00
|
|
|
"r5rs" (base32 "0iciz6khmynly0901kl9m7rnd1d3nxrin0rl6d9rjwvsks30aqad")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("r5rs" "r5rs-doc" "r5rs-lib"))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.7.
Also, update 'chez-scheme-for-racket' to 9.5.9.8.
Note that racket-backport-8.6-cross-install.patch,
racket-backport-8.6-docindex-write.patch, and
racket-backport-8.6-hurd.patch were missing from dist_patch_DATA.
* gnu/packages/patches/racket-backport-8.6-cross-install.patch,
gnu/packages/patches/racket-backport-8.6-docindex-write.patch,
gnu/packages/patches/racket-backport-8.6-hurd.patch,
gnu/packages/patches/racket-backport-8.6-zuo.patch: Remove patches.
* gnu/packages/patches/racket-backport-8.7-pkg-strip.patch: New patch.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket.scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.7.
(racket)[inputs]: Add 'scheme-doc' source package from '%racket-origin'.
(racket)[inputs]<compatibility, db, deinprogramm, draw, drracket>
<eopl, errortrace, gui, htdp, mzscheme, parser-tools, pict, plai, plot>
<r6rs, redex, scribble, slideshow, snip, typed-racket, srfi>
<string-constants>: Update checksums.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to 9.5.9.8.
[arguments]: Enable tests.
[description]: Update.
(chez-scheme-for-racket-bootstrap-bootfiles)[arguments]: Update path to
'rktboot'.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-11-17 19:45:30 -05:00
|
|
|
"r6rs" (base32 "1mgcxd88s67w47a2z1i6snz8qhbngjbmr6rs4pchpnrfap96ssgl")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("r6rs" "r6rs-doc" "r6rs-lib"))
|
|
|
|
(racket-packages-origin
|
|
|
|
"racket-cheat" (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/jeapostrophe/racket-cheat")
|
|
|
|
(commit %racket-commit)))
|
|
|
|
(sha256 (base32
|
|
|
|
"06wcj558rzkbl2bwkmikyspya9v1f4iwlzwnwxpkc33h2xapwabr"))
|
|
|
|
(file-name
|
|
|
|
(git-file-name "jeapostrophe-racket-cheat" %racket-version)))
|
|
|
|
'(("racket-cheat" ".")))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.10.
* gnu/packages/patches/racket-rktboot-riscv64-support.patch: Move to ...
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: ... this
file, together with a related upstreamed patch.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.10.
(racket)[inputs]<data, deinprogramm, drracket, gui, htdp, math>
<net-cookies, pict, plot, racklog, redex, scribble, slideshow, snip>
<typed-racket, string-constants, syntax-color, web-server>: Update
hashes.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.17.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2023-08-23 20:08:04 -04:00
|
|
|
"racklog" (base32 "0fr8xij0sssfnmwn6dfdi4jj3l62f2yj3jrjljv13kaycrfls032")
|
2022-02-27 16:28:59 -05:00
|
|
|
'(("racklog" ".")))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.11.1.
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: Delete file.
* gnu/packages/patches/racket-backport-8.11-layered-docs.patch: New file.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.11.1.
(%zuo-version): Update to 1.7.
(racket)[inputs]<deinprogramm, draw, drracket, games, gui, htdp>
<parser-tools, plot, rackunit, redex, scribble, slideshow, typed-racket>
<srfi, string-constants, syntax-color, web-server, xrepl>: Update hashes.
<quickscript>: Likewise, and add snippet.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.18.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-12-01 10:35:38 -05:00
|
|
|
"rackunit" (base32 "0axcy8283qqmcrhwwn0q0sfjznc8gkwbx06j41anayi5v9xp4698")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("rackunit"
|
|
|
|
"rackunit-doc"
|
|
|
|
"rackunit-gui"
|
|
|
|
"rackunit-lib"
|
|
|
|
"rackunit-plugin-lib"
|
|
|
|
"rackunit-typed"
|
|
|
|
"schemeunit"
|
|
|
|
"testing-util-lib"))
|
|
|
|
(simple-racket-origin
|
|
|
|
"readline" (base32 "13kbcn2wchv82d709mw3r8n37bk8iwq0y4kpvm9dbzx0w2pxkfwn")
|
|
|
|
'("readline" "readline-doc" "readline-lib"))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.6.
Also, update 'chez-scheme-for-racket' to 9.5.9.2.
* gnu/packages/patches/racket-chez-scheme-bin-sh.patch: Refresh patch.
* gnu/packages/patches/racket-backport-8.6-cross-install.patch,
gnu/packages/patches/racket-backport-8.6-docindex-write.patch,
gnu/packages/patches/racket-backport-8.6-hurd.patch: New patches.
* gnu/local.mk (dist_patch_DATA): Add them.
* gnu/packages/racket.scm (%racket-origin)[patches]: Use them and the
patches for Zuo.
(%racket-version): Update to 8.6.
(zuo)[version]: Refer to '%racket-version'.
[origin]: Use '%racket-origin'.
(racket-vm-cgc)[native-inputs]: Add 'zuo'.
[arguments]<#:make-flags>: Use 'zuo' from 'native-inputs'.
(racket)[inputs]<data, db, deinprogramm, draw, drracket, errortrace,
gui, htdp, math, option-contract, parser-tools, pict, rackunit, realm,
redex, scribble, typed-racket, string-constants, swindle, syntax-color,
web-server>: Update checksums.
* gnu/packages/chez.scm (target-chez-os): Handle Hurd and QNX.
(%chez-features-table): Likewise.
(chez-scheme-for-racket): Update to 9.5.9.2.
[native-inputs]: Add 'zuo'.
[arguments]<#:out-of-source?>: Use out-of-source build.
<#:tests?>: Skip them due to ongoing problems.
<#:configure-flags>: Add '--install-csug=' and '--installreleasenotes='.
<#:make-flags>: Use 'zuo' from 'native-inputs'. Supply 'STEXLIB=' here,
rather than in a phase.
<#:phases>: Replace 'install-docs' using new 'make' target.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-08-27 14:55:48 -04:00
|
|
|
"realm" (base32 "0rlvwyd6rpyl0zda4a5p8dp346fvqzc8555dgfnrhliymkxb6x4g")
|
2022-02-27 16:28:59 -05:00
|
|
|
'(("realm" ".")))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.11.1.
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: Delete file.
* gnu/packages/patches/racket-backport-8.11-layered-docs.patch: New file.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.11.1.
(%zuo-version): Update to 1.7.
(racket)[inputs]<deinprogramm, draw, drracket, games, gui, htdp>
<parser-tools, plot, rackunit, redex, scribble, slideshow, typed-racket>
<srfi, string-constants, syntax-color, web-server, xrepl>: Update hashes.
<quickscript>: Likewise, and add snippet.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.18.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-12-01 10:35:38 -05:00
|
|
|
"redex" (base32 "016m2fvfxjnx7l0ai6jlcmz4s8xipbq9k58fq7109akj9mvczgp9")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("redex"
|
|
|
|
"redex-benchmark"
|
|
|
|
"redex-doc"
|
|
|
|
"redex-examples"
|
|
|
|
"redex-gui-lib"
|
|
|
|
"redex-lib"
|
|
|
|
"redex-pict-lib"))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.8.
* gnu/packages/patches/racket-backport-8.7-pkg-strip.patch: Remove file.
* gnu/local.mk (dist_patch_DATA): Delete it.
* gnu/packages/racket.scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.8.
(%zuo-version): Update to 1.6.
(racket)[inputs]<algol60, cext-lib, deinprogramm, draw, drracket>
<expeditor, gui, htdp, math, pict, r5rs, redex, sasl, scribble>
<typed-racket, string-constants, syntax-color>: Update checksums.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.14.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2023-02-10 19:49:34 -05:00
|
|
|
"sasl" (base32 "1l74rkp8m2jfb82678k3lhd2y5k9l8csazwshf9m969i67gzbjh8")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("sasl" "sasl-doc" "sasl-lib"))
|
|
|
|
(simple-racket-origin
|
|
|
|
"scheme-lib" (base32 "0pcf0y8rp4qyjhaz5ww5sr5diq0wpcdfrrnask7zapyklzx1jx8x")
|
|
|
|
'(("scheme-lib" ".")))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.11.1.
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: Delete file.
* gnu/packages/patches/racket-backport-8.11-layered-docs.patch: New file.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.11.1.
(%zuo-version): Update to 1.7.
(racket)[inputs]<deinprogramm, draw, drracket, games, gui, htdp>
<parser-tools, plot, rackunit, redex, scribble, slideshow, typed-racket>
<srfi, string-constants, syntax-color, web-server, xrepl>: Update hashes.
<quickscript>: Likewise, and add snippet.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.18.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-12-01 10:35:38 -05:00
|
|
|
"scribble" (base32 "0igcjgmpzbzzn1jfpa4jq18lqyhr6dsdwnbv6zv87x8cib9rwqrh")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("scribble"
|
|
|
|
"scribble-doc"
|
|
|
|
"scribble-html-lib"
|
|
|
|
"scribble-lib"
|
|
|
|
"scribble-text-lib"))
|
|
|
|
(simple-racket-origin
|
|
|
|
"serialize-cstruct-lib"
|
|
|
|
(base32 "1rq3n1fa7ldjwx3lrh9ybhig7jlsw1crpzyklbzp3xqdw6jymfnz")
|
|
|
|
'(("serialize-cstruct-lib" ".")))
|
|
|
|
(simple-racket-origin
|
|
|
|
"sgl" (base32 "0nkymhdyjrwi5h199j4w5zh7y3x3ai42gsiwxzh0hy7yqrqqg9zv")
|
|
|
|
'(("sgl" ".")))
|
|
|
|
(simple-racket-origin
|
|
|
|
"shell-completion" (base32 "04m144gy2mp4fiq6rcbf12wjr8mws8k9scfhg9lc38vqppp4lxsj")
|
|
|
|
'(("shell-completion" ".")))
|
|
|
|
(simple-racket-origin
|
|
|
|
"simple-tree-text-markup"
|
|
|
|
(base32 "0fyd9gfz6bnv0m1901wv5mnhc05rm8hw9i6ddrqx33hs6qsg2zqr")
|
|
|
|
'("simple-tree-text-markup"
|
|
|
|
"simple-tree-text-markup-doc"
|
|
|
|
"simple-tree-text-markup-lib"))
|
|
|
|
(simple-racket-origin
|
|
|
|
"slatex" (base32 "0pkm2isbbdk63slrbsxcql7rr0wdrw5kapw1xq4ps5k8dhlzv8x0")
|
|
|
|
'(("slatex" ".")))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.11.1.
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: Delete file.
* gnu/packages/patches/racket-backport-8.11-layered-docs.patch: New file.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.11.1.
(%zuo-version): Update to 1.7.
(racket)[inputs]<deinprogramm, draw, drracket, games, gui, htdp>
<parser-tools, plot, rackunit, redex, scribble, slideshow, typed-racket>
<srfi, string-constants, syntax-color, web-server, xrepl>: Update hashes.
<quickscript>: Likewise, and add snippet.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.18.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-12-01 10:35:38 -05:00
|
|
|
"slideshow" (base32 "147s7si6lxx6hm84wk2rfplk6wprladl9zni9pdvaxfa25chrabf")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("slideshow" "slideshow-doc" "slideshow-exe" "slideshow-lib" "slideshow-plugin"))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.10.
* gnu/packages/patches/racket-rktboot-riscv64-support.patch: Move to ...
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: ... this
file, together with a related upstreamed patch.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.10.
(racket)[inputs]<data, deinprogramm, drracket, gui, htdp, math>
<net-cookies, pict, plot, racklog, redex, scribble, slideshow, snip>
<typed-racket, string-constants, syntax-color, web-server>: Update
hashes.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.17.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2023-08-23 20:08:04 -04:00
|
|
|
"snip" (base32 "1b90ccqilnyszbphms3svm3c7dbk7870ifybjjipss5srb32mj2d")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("snip" "snip-lib"))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.11.1.
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: Delete file.
* gnu/packages/patches/racket-backport-8.11-layered-docs.patch: New file.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.11.1.
(%zuo-version): Update to 1.7.
(racket)[inputs]<deinprogramm, draw, drracket, games, gui, htdp>
<parser-tools, plot, rackunit, redex, scribble, slideshow, typed-racket>
<srfi, string-constants, syntax-color, web-server, xrepl>: Update hashes.
<quickscript>: Likewise, and add snippet.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.18.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-12-01 10:35:38 -05:00
|
|
|
"typed-racket" (base32 "17mz7zqrialxfzkynj7h3kfhawdd6cgs24ns437gz087g2pmwi1x")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("source-syntax"
|
|
|
|
"typed-racket"
|
|
|
|
"typed-racket-compatibility"
|
|
|
|
"typed-racket-doc"
|
|
|
|
"typed-racket-lib"
|
|
|
|
"typed-racket-more"))
|
gnu: racket: Update to 8.5.
* gnu/packages/patches/racket-gui-tethered-launcher-backport.patch,
gnu/packages/patches/racket-enable-scheme-backport.patch: Delete files.
* gnu/local.mk (dist_patch_DATA): Remove them.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to 9.5.7.6.
* gnu/packages/racket.scm (%racket-version): Update to 8.5.
(%racket-origin)[patches]: Remove obsolete patches.
(racket-vm-common-configure-flags): Correct comment.
(racket)[inputs]<2d, datalog, deinprogramm, draw, drracket, expeditor,
htdp, pict, plot, quickscript, racklog, rackunit, redex, scribble,
typed-racket, string-constants, syntax-color, web-server, xrepl>: Update
checksums.
<gui, srfi>: Likewise, and remove obsolete backports.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-05-11 23:59:05 -04:00
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.11.1.
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: Delete file.
* gnu/packages/patches/racket-backport-8.11-layered-docs.patch: New file.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.11.1.
(%zuo-version): Update to 1.7.
(racket)[inputs]<deinprogramm, draw, drracket, games, gui, htdp>
<parser-tools, plot, rackunit, redex, scribble, slideshow, typed-racket>
<srfi, string-constants, syntax-color, web-server, xrepl>: Update hashes.
<quickscript>: Likewise, and add snippet.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.18.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-12-01 10:35:38 -05:00
|
|
|
"srfi" (base32 "1l3nr3a8mlp505aaxlyp4i8jfijmpyl9h1wwv8hzm4kzzjv4sl8p")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("srfi" "srfi-doc" "srfi-lib" "srfi-lite-lib"))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.11.1.
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: Delete file.
* gnu/packages/patches/racket-backport-8.11-layered-docs.patch: New file.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.11.1.
(%zuo-version): Update to 1.7.
(racket)[inputs]<deinprogramm, draw, drracket, games, gui, htdp>
<parser-tools, plot, rackunit, redex, scribble, slideshow, typed-racket>
<srfi, string-constants, syntax-color, web-server, xrepl>: Update hashes.
<quickscript>: Likewise, and add snippet.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.18.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-12-01 10:35:38 -05:00
|
|
|
"string-constants" (base32 "1djbjhsimikk18dkrajrlgjhlqfyvna4nz64ha4wjcaj5cfgcvdx")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("string-constants" "string-constants-doc" "string-constants-lib"))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.9.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.16.
* gnu/packages/racket.scm (%racket-version): Update to 8.9.
(racket)[inputs]<deinprogramm, draw, drracket, future-visualizer, gui>
<htdp, macro-debugger, math, pict, plot, rackunit, redex, scribble>
<slideshow, snip, typed-racket, srfi, swindle, syntax-color>
<web-server>: Update checksums.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-06-23 06:32:51 -04:00
|
|
|
"swindle" (base32 "1q8vdxpzczzwdw2mys2caab45yvadmqkixsr29k8pl03n8dsg8j9")
|
2022-02-27 16:28:59 -05:00
|
|
|
'(("swindle" ".")))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.11.1.
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: Delete file.
* gnu/packages/patches/racket-backport-8.11-layered-docs.patch: New file.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.11.1.
(%zuo-version): Update to 1.7.
(racket)[inputs]<deinprogramm, draw, drracket, games, gui, htdp>
<parser-tools, plot, rackunit, redex, scribble, slideshow, typed-racket>
<srfi, string-constants, syntax-color, web-server, xrepl>: Update hashes.
<quickscript>: Likewise, and add snippet.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.18.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-12-01 10:35:38 -05:00
|
|
|
"syntax-color" (base32 "1cs0wry7qwv6j690lsjiw86xw0vl10v4i98sk6j8ggrk7irkw48r")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("syntax-color" "syntax-color-doc" "syntax-color-lib"))
|
|
|
|
(simple-racket-origin
|
|
|
|
"trace" (base32 "070ihla5j796hdarn5wxdwn4xj0xnkm50shgh49jy994mribvhia")
|
|
|
|
'(("trace" ".")))
|
|
|
|
(simple-racket-origin
|
|
|
|
"unix-socket" (base32 "02dfwas5ynbpyz74w9kwb4wgb37y5wys7svrlmir8k0n9ph9vq0y")
|
|
|
|
'("unix-socket" "unix-socket-doc" "unix-socket-lib"))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.11.1.
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: Delete file.
* gnu/packages/patches/racket-backport-8.11-layered-docs.patch: New file.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.11.1.
(%zuo-version): Update to 1.7.
(racket)[inputs]<deinprogramm, draw, drracket, games, gui, htdp>
<parser-tools, plot, rackunit, redex, scribble, slideshow, typed-racket>
<srfi, string-constants, syntax-color, web-server, xrepl>: Update hashes.
<quickscript>: Likewise, and add snippet.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.18.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-12-01 10:35:38 -05:00
|
|
|
"web-server" (base32 "0vhw1hwdcv1ham086dy0nkl4r0a5qvsimw8048zjakvax7q4shsg")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("web-server" "web-server-doc" "web-server-lib"))
|
|
|
|
(simple-racket-origin
|
|
|
|
"wxme" (base32 "1qp5gr9gqsakiq3alw6m4yyv5vw4i3hp4y4nhq8vl2nkjmirvn0b")
|
|
|
|
'("wxme" "wxme-lib"))
|
|
|
|
(simple-racket-origin
|
gnu: racket: Update to 8.11.1.
* gnu/packages/patches/racket-backport-8.10-rktboot.patch: Delete file.
* gnu/packages/patches/racket-backport-8.11-layered-docs.patch: New file.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/racket/scm (%racket-origin)[patches]: Likewise.
(%racket-version): Update to 8.11.1.
(%zuo-version): Update to 1.7.
(racket)[inputs]<deinprogramm, draw, drracket, games, gui, htdp>
<parser-tools, plot, rackunit, redex, scribble, slideshow, typed-racket>
<srfi, string-constants, syntax-color, web-server, xrepl>: Update hashes.
<quickscript>: Likewise, and add snippet.
* gnu/packages/chez.scm (chez-scheme-for-racket): Update to
9.9.9-pre-release.18.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-12-01 10:35:38 -05:00
|
|
|
"xrepl" (base32 "0sw531zvd8xqckmrh5da4fiq0sfjyg1nj5d508l7bl3azn35khil")
|
2022-02-27 16:28:59 -05:00
|
|
|
'("xrepl" "xrepl-doc" "xrepl-lib"))))
|
|
|
|
(build-system gnu-build-system)
|
2021-07-19 02:31:42 -04:00
|
|
|
(arguments
|
2022-02-27 16:29:06 -05:00
|
|
|
(substitute-keyword-arguments (package-arguments racket-minimal)
|
|
|
|
((#:make-flags _ '())
|
|
|
|
#~`("main-distribution"))
|
|
|
|
((#:configure-flags _ '())
|
|
|
|
#~`("--tethered"
|
|
|
|
"--extra-foreign-lib-search-dirs"
|
|
|
|
,(format #f "~s"
|
|
|
|
'(#$@(map (lambda (name)
|
|
|
|
(cond
|
|
|
|
((this-package-input name)
|
|
|
|
=> (cut file-append <> "/lib"))
|
|
|
|
(else
|
2022-06-13 05:49:15 -04:00
|
|
|
(raise
|
|
|
|
(formatted-message
|
|
|
|
(G_ "missing input '~a' to the 'racket' package")
|
|
|
|
name)))))
|
2022-02-27 16:29:06 -05:00
|
|
|
'("cairo"
|
|
|
|
"fontconfig-minimal" ;; aka fontconfig
|
|
|
|
"glib"
|
|
|
|
"glu"
|
|
|
|
"gmp"
|
|
|
|
"gtk+"
|
|
|
|
"libjpeg-turbo"
|
|
|
|
"libpng"
|
|
|
|
"libx11"
|
|
|
|
"mesa"
|
|
|
|
"mpfr"
|
|
|
|
"pango"
|
|
|
|
"unixodbc"
|
|
|
|
"libedit"))))))))
|
2021-11-24 13:35:29 -05:00
|
|
|
(synopsis "Programmable programming language in the Scheme family")
|
2021-04-16 17:08:22 -04:00
|
|
|
(description
|
|
|
|
"Racket is a general-purpose programming language in the Scheme family,
|
|
|
|
with a large set of libraries and a compiler based on Chez Scheme. Racket is
|
|
|
|
also a platform for language-oriented programming, from small domain-specific
|
|
|
|
languages to complete language implementations.
|
|
|
|
|
|
|
|
The main Racket distribution comes with many bundled packages, including the
|
|
|
|
DrRacket IDE, libraries for GUI and web programming, and implementations of
|
2022-02-27 16:29:06 -05:00
|
|
|
languages such as Typed Racket, R5RS and R6RS Scheme, Algol 60, and Datalog.")))
|
2021-07-19 02:31:42 -04:00
|
|
|
|
2022-02-27 16:28:59 -05:00
|
|
|
(define configure-layer.rkt
|
2021-07-19 02:31:42 -04:00
|
|
|
(scheme-file
|
2022-02-27 16:28:59 -05:00
|
|
|
"configure-layer.rkt"
|
2021-07-19 02:31:42 -04:00
|
|
|
`(module
|
2022-02-27 16:28:59 -05:00
|
|
|
configure-layer racket/base
|
2021-07-19 02:31:42 -04:00
|
|
|
(require racket/cmdline
|
|
|
|
racket/match
|
|
|
|
racket/file
|
2022-02-27 16:28:59 -05:00
|
|
|
racket/port
|
2021-07-19 02:31:42 -04:00
|
|
|
racket/list
|
|
|
|
racket/pretty)
|
|
|
|
(define (build-path-string . args)
|
|
|
|
(path->string (apply build-path args)))
|
|
|
|
(define rx:racket
|
|
|
|
;; Guile's reader doesn't support #rx"racket"
|
|
|
|
(regexp "racket"))
|
2022-02-27 16:29:06 -05:00
|
|
|
(define tethered? #f)
|
|
|
|
(define parent #f)
|
2022-02-27 16:28:59 -05:00
|
|
|
(define extra-foreign-lib-search-dirs '())
|
2022-02-27 16:29:06 -05:00
|
|
|
(define-values [vm-dir prefix]
|
2022-02-27 16:29:05 -05:00
|
|
|
(command-line
|
|
|
|
#:once-each
|
2022-02-27 16:29:06 -05:00
|
|
|
[("--tethered") "create a tethered layer"
|
|
|
|
(set! tethered? #t)]
|
|
|
|
[("--parent") dir "path of parent layer, if any"
|
|
|
|
(set! parent dir)]
|
2022-02-27 16:29:05 -05:00
|
|
|
[("--extra-foreign-lib-search-dirs") dir-list
|
|
|
|
"foreign library directories, as a list of strings in `read` syntax"
|
|
|
|
(set! extra-foreign-lib-search-dirs
|
|
|
|
(call-with-input-string dir-list read))]
|
2022-02-27 16:29:06 -05:00
|
|
|
#:args (vm-dir prefix)
|
|
|
|
(values vm-dir prefix)))
|
2022-02-27 16:29:05 -05:00
|
|
|
(let* ([config
|
|
|
|
(for/fold
|
2022-02-27 16:29:06 -05:00
|
|
|
([config (file->value
|
|
|
|
(if parent
|
|
|
|
(build-path parent "etc/racket/config.rktd")
|
|
|
|
(build-path vm-dir "etc/config.rktd")))])
|
|
|
|
([spec
|
|
|
|
(in-list
|
|
|
|
'((lib-dir lib-search-dirs "lib/racket" "lib")
|
|
|
|
(share-dir share-search-dirs "share/racket" "share")
|
|
|
|
(links-file links-search-files
|
|
|
|
"lib/racket/links.rktd"
|
|
|
|
"share/links.rktd")
|
|
|
|
(pkgs-dir pkgs-search-dirs "lib/racket/pkgs" "share/pkgs")
|
|
|
|
;; Partial workaround for:
|
|
|
|
;; https://github.com/racket/racket/issues/4133
|
|
|
|
#;(bin-dir bin-search-dirs "bin" "bin")
|
|
|
|
(bin-dir bin-search-dirs
|
|
|
|
"lib/racket/bogus-untethered-bin"
|
|
|
|
"bin")
|
|
|
|
(man-dir man-search-dirs "share/man" "share/man")
|
|
|
|
(doc-dir doc-search-dirs "share/doc/racket" "doc")
|
|
|
|
(include-dir include-search-dirs
|
|
|
|
"include/racket"
|
|
|
|
"include")))])
|
|
|
|
(match-define (list main-key search-key pth vm-pth) spec)
|
2022-02-27 16:29:05 -05:00
|
|
|
(hash-set*
|
|
|
|
config
|
|
|
|
main-key
|
|
|
|
(build-path-string prefix pth)
|
|
|
|
search-key
|
|
|
|
(list* #f
|
|
|
|
(hash-ref config
|
|
|
|
main-key
|
2022-02-27 16:29:06 -05:00
|
|
|
(lambda ()
|
|
|
|
(if parent
|
|
|
|
(build-path-string parent pth)
|
|
|
|
(build-path-string vm-dir vm-pth))))
|
2022-02-27 16:29:05 -05:00
|
|
|
(filter values (hash-ref config search-key null)))))]
|
|
|
|
[config
|
|
|
|
(hash-update config
|
|
|
|
'lib-search-dirs
|
|
|
|
(lambda (dirs)
|
|
|
|
;; add after other layers, but before older
|
|
|
|
;; foreign lib search directories
|
|
|
|
(define-values [rkt old-foreign-dirs]
|
|
|
|
(partition (lambda (pth)
|
|
|
|
(or (not pth)
|
|
|
|
(regexp-match? rx:racket pth)))
|
|
|
|
dirs))
|
|
|
|
(append rkt
|
|
|
|
extra-foreign-lib-search-dirs
|
|
|
|
old-foreign-dirs)))]
|
|
|
|
[config
|
|
|
|
(hash-set* config
|
|
|
|
'apps-dir
|
|
|
|
(build-path-string prefix "share/applications")
|
|
|
|
'absolute-installation? #t
|
|
|
|
;; Let Guix coexist with other installation
|
|
|
|
;; methods without clobbering user-specific packages.
|
|
|
|
;; This could be set in various places, but doing
|
|
|
|
;; it here is convienient, at least until we support
|
|
|
|
;; cross-compilation.
|
|
|
|
'installation-name
|
|
|
|
(string-append (version)
|
|
|
|
"-guix"
|
|
|
|
(match (system-type 'gc)
|
|
|
|
['cgc "-cgc"]
|
|
|
|
;; workaround Guile reader/printer:
|
|
|
|
['|3m| "-bc"]
|
|
|
|
[_ ""])))]
|
|
|
|
[config
|
2022-02-27 16:29:06 -05:00
|
|
|
(cond
|
|
|
|
[tethered?
|
|
|
|
;; Partial workaround for:
|
|
|
|
;; https://github.com/racket/racket/issues/4133
|
|
|
|
#;(define bin-dir (hash-ref config 'bin-dir))
|
|
|
|
(define bin-dir (build-path-string prefix "bin"))
|
|
|
|
(hash-set* config
|
|
|
|
'config-tethered-apps-dir (hash-ref config 'apps-dir)
|
|
|
|
'config-tethered-console-bin-dir bin-dir
|
|
|
|
'config-tethered-gui-bin-dir bin-dir)]
|
|
|
|
[else
|
|
|
|
config])])
|
|
|
|
(define new-config-pth
|
|
|
|
(build-path prefix "etc/racket/config.rktd"))
|
2022-02-27 16:29:05 -05:00
|
|
|
(make-parent-directory* new-config-pth)
|
|
|
|
(call-with-output-file*
|
|
|
|
new-config-pth
|
|
|
|
(lambda (out)
|
|
|
|
(pretty-write config out)))))))
|