[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#53878] [PATCH v7 13/24] gnu: racket: Add 'racket-vm-for-system'.
From: |
Philip McGrath |
Subject: |
[bug#53878] [PATCH v7 13/24] gnu: racket: Add 'racket-vm-for-system'. |
Date: |
Sun, 27 Feb 2022 16:29:09 -0500 |
* gnu/packages/racket.scm (racket-vm-for-system): New procedure.
(racket-minimal, racket)[inputs]: Use it.
---
gnu/packages/racket.scm | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/racket.scm b/gnu/packages/racket.scm
index a853e520f5..272638ca2e 100644
--- a/gnu/packages/racket.scm
+++ b/gnu/packages/racket.scm
@@ -187,6 +187,14 @@ (define-module (gnu packages racket)
;;
;; Code:
+(define* (racket-vm-for-system #:optional
+ (system (or (%current-target-system)
+ (%current-system))))
+ "Return 'racket-vm-cs' if it supports SYSTEM; 'racket-vm-bc' otherwise."
+ (if (nix-system->chez-machine system)
+ racket-vm-cs
+ racket-vm-bc))
+
(define %racket-version "8.4")
;; ^ Remember to update chez-scheme-for-racket-bootstrap-bootfiles!
(define %racket-commit
@@ -513,7 +521,7 @@ (define-public racket-minimal
(inputs
(list openssl
sqlite
- racket-vm-cs ;; TODO (racket-vm-for-system)
+ (racket-vm-for-system)
(racket-packages-origin
"base" %racket-origin
'(("base" "pkgs/base")
@@ -630,7 +638,7 @@ (define-public racket
unixodbc
libedit ;; TODO reconsider in light of expeditor and readline-gpl
racket-minimal ;; <-- TODO non-tethered layer
- racket-vm-cs ;; TODO (racket-vm-for-system)
+ (racket-vm-for-system)
(simple-racket-origin
"2d" (base32 "1zzcz5qyjv7syi41vb8jkxjp1rqgj61zbsdrg0nlc4qy9qsafzgr")
'("2d" "2d-doc" "2d-lib"))
--
2.32.0
- [bug#53878] [PATCH v7 05/24] gnu: racket-minimal: Don't configure non-existant catalogs., (continued)
- [bug#53878] [PATCH v7 05/24] gnu: racket-minimal: Don't configure non-existant catalogs., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 02/24] gnu: racket: Update to 8.4., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 06/24] gnu: racket-minimal: Change inheritance to follow bootstrapping., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 04/24] gnu: racket-minimal: Use new package style., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 07/24] gnu: racket-minimal: Adjust indentation., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 09/24] gnu: configure-layer.rkt: Adjust indentation., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 11/24] gnu: racket: Move Chez bootfiles to (gnu packages chez)., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 12/24] gnu: chez: Add utilities for Chez machine types., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 08/24] gnu: racket-minimal: Add "debug" output., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 10/24] gnu: racket-minimal: Separate from the Racket VM., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 13/24] gnu: racket: Add 'racket-vm-for-system'.,
Philip McGrath <=
- [bug#53878] [PATCH v7 14/24] gnu: chez-scheme: Use new style for Chez packages., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 15/24] gnu: chez-scheme: Use "lib/chez-scheme" for search path., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 17/24] gnu: chez-scheme: Use new package style., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 16/24] gnu: chez-scheme: Use shared zlib and lz4., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 18/24] gnu: Add stex., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 19/24] gnu: Add chez-nanopass., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 20/24] gnu: chez-scheme: Explicitly package bootstrap bootfiles., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 21/24] gnu: chez-mit: Support chez-scheme-for-racket., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 22/24] gnu: Add chez-scheme-for-racket., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 23/24] gnu: chez: Add 'chez-scheme-for-system'., Philip McGrath, 2022/02/27