GNU bug report logs -
#49280
[PATCH v2 0/3] gnu: racket: Update to 8.2. Bootstrap from C.
Previous Next
Full log
View this message in rfc822 format
* gnu/packages/racket.scm (racket-next-minimal,racket-next): New variables.
---
gnu/packages/racket.scm | 62 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
diff --git a/gnu/packages/racket.scm b/gnu/packages/racket.scm
index d0cfed7292..363f19825b 100644
--- a/gnu/packages/racket.scm
+++ b/gnu/packages/racket.scm
@@ -23,6 +23,7 @@
#:use-module ((guix licenses)
#:select (asl2.0 expat lgpl3+))
#:use-module (guix packages)
+ #:use-module (guix base16)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix utils)
@@ -45,6 +46,36 @@
#:use-module (gnu packages tls)
#:use-module (gnu packages xorg))
+;; Commentary:
+;;
+;; Preliminary guidelines on naming things:
+;; - `racket` is the main package. It corresponds to `racket-minimal`
+;; with the Racket-level package "main-distribution" installed.
+;; - `racket-minimal` is Racket runtime system and core libraries:
+;; just enough to implement the package system and install the rest.
+;; Upstream refers to this as "minimal Racket".
+;; - `racket-pkg-` should probably be the prefix for Racket packages
+;; available as Guix packages, once we're able to build those.
+;; More specifically, it should correspond
+;; to packages registered in the catalog at https://pkgs.rackat-lang.org.
+;; This is a social convention to manage the namespace, not a technical
+;; limitation: Racket can use other catalogs (e.g. for pre-built packages
+;; or packages pinned to specific versions), unregistered package source
+;; urls, or purely local packages. But we also need a convention to
+;; manage the namespace, so we should use this one. In practice,
+;; all generally useful libre Racket packages are registered there.
+;; We probably will need a clever encoding scheme to deal with the fact
+;; that Racket package names can contain [A-Za-z_-], i.e. including "_",
+;; which is not allowed in Guix package names.
+;; - `racket-next` is a development version of `racket`, following either
+;; the upstrean Git HEAD or the release candidate, when one exists.
+;; - `racket-next-` is the prefix for other development packages,
+;; including `racket-next-minimal`. When we can build Racket packages
+;; individually, we will need `racket-next-pkg-` for the packages
+;; that make up `racket-next`.
+;;
+;; Code:
+
(define %installer-mirrors
;; Source:
@@ -211,3 +242,34 @@ 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
languages such as Typed Racket, R5RS and R6RS Scheme, Algol 60, and Datalog.")))
+
+(define %pre-release-installers
+ "https://pre-release.racket-lang.org/installers/")
+
+(define-public racket-next-minimal
+ (package
+ (inherit racket-minimal)
+ (name "racket-next-minimal")
+ (version "8.1.900")
+ (source
+ (origin
+ (inherit (package-source racket-minimal))
+ (sha256
+ (base32
+ "0dm849wvlaxpfgz2qmgy2kwdslyi515rxn1m1yff38lagbn21vxq"))
+ (uri (string-append %pre-release-installers
+ "racket-minimal-src.tgz"))))))
+
+(define-public racket-next
+ (package
+ (inherit racket)
+ (name "racket-next")
+ (version (package-version racket-next-minimal))
+ (source
+ (origin
+ (inherit (package-source racket))
+ (sha256
+ (base32
+ "0ysvzgm0lx4b1p4k9balvcbvh2kapbfx91c9ls80ba062cd8y5qv"))
+ (uri (string-append %pre-release-installers
+ "racket-src.tgz"))))))
--
2.30.2
This bug report was last modified 3 years and 355 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.