From patchwork Tue Jun 29 21:57:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 30790 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id D72F227BC81; Tue, 29 Jun 2021 22:59:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id EF50527BC78 for ; Tue, 29 Jun 2021 22:59:11 +0100 (BST) Received: from localhost ([::1]:34040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lyLl9-0002MR-18 for patchwork@mira.cbaines.net; Tue, 29 Jun 2021 17:59:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41774) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyLl0-0002MC-Ek for guix-patches@gnu.org; Tue, 29 Jun 2021 17:59:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44306) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lyLl0-0007bH-7k for guix-patches@gnu.org; Tue, 29 Jun 2021 17:59:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lyLl0-0003Xh-7G for guix-patches@gnu.org; Tue, 29 Jun 2021 17:59:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49280] [PATCH 2/4] gnu: racket: Add racket-next and racket-next-minimal. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 29 Jun 2021 21:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49280 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49280@debbugs.gnu.org Cc: Philip McGrath Received: via spool by 49280-submit@debbugs.gnu.org id=B49280.162500389213535 (code B ref 49280); Tue, 29 Jun 2021 21:59:02 +0000 Received: (at 49280) by debbugs.gnu.org; 29 Jun 2021 21:58:12 +0000 Received: from localhost ([127.0.0.1]:55846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyLkC-0003W7-Aw for submit@debbugs.gnu.org; Tue, 29 Jun 2021 17:58:12 -0400 Received: from mail-qv1-f53.google.com ([209.85.219.53]:44933) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyLk4-0003VO-MQ for 49280@debbugs.gnu.org; Tue, 29 Jun 2021 17:58:05 -0400 Received: by mail-qv1-f53.google.com with SMTP id dj3so481qvb.11 for <49280@debbugs.gnu.org>; Tue, 29 Jun 2021 14:58:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QY6Y7nfoQZZes0BD72N5Qc65u6NOoEB5vOh/5fMqWUg=; b=eIHMqy+Gsg9wB2Do6otvLAdy1IBy98ScnJnrTRONJn6tO/gtJ3fPHocJ0jYOXG14Wh 90A7yHwlCsbCf7bQGV9Jf8I8/nT6GlWM12IRpXdh8mQkr7BKYzsbf1JJgHEvcm42gP24 Cr/AQecKO9wnDBF9iHKTYToTW9kQipQVYmsiS0yrJTwguAC27sJwZw3ibpZzMowGZtii HqrySV91z4ZWXLtYvK7ObEYPRT4axnoEMKifRt8/XncalVGFTpWZoftu2xe4OXDGlWeo hEoc14J7+1NBNKTlyXHWbPFxICwaAv/sR4WuZq5xLWAoZc1OzZHC5Miva+Tx8CngzGz0 DwDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QY6Y7nfoQZZes0BD72N5Qc65u6NOoEB5vOh/5fMqWUg=; b=DWWkk9O/6i0NOnBrSKNlQSaSoM573SslN3tidvU7XAgHUr+EZpFH+jqAxu6Ex3LRgw upmac5TougknNoGutc1CLlvYcxnkxJLykfOMGMmTdRr9ASXZFBwnHc/x7aelVyNEjGfp G6jZTaJYDc9RZjYx4b9zvrvItWCboFYJwYSfIz5svsQ76HeUZHJYcWGh4ts6+LWGL/IP Q+kG9F39KekhZyliIl+yE6+vQ6L9tZBCiwrkCJwpy85VZfjsxULj99PgSE6dqSGni1SB Kk8Pk9GYsXpaHnB3mCUs9si6ZqoP8sPba2LbzXGvHj0bnM76tgXaYygTumNpio/gmt5u XMIw== X-Gm-Message-State: AOAM530OA/yQ65uagYvIJGLY017Xqp8nSHh10+diT8zv1zIVaJY+ovdy UPDBthz536NhS8NbhnWrEqf3txhnFec0mrRYbM0= X-Google-Smtp-Source: ABdhPJx0jL5pOd1CjF5WcH1jHm0bWm/OVKoXxfRP44iSEZ5DX3h5vWF2Q8660gwBxmcwbRnXlqyfUg== X-Received: by 2002:a0c:fe01:: with SMTP id x1mr33399966qvr.46.1625003879069; Tue, 29 Jun 2021 14:57:59 -0700 (PDT) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id b25sm628338qkk.111.2021.06.29.14.57.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Jun 2021 14:57:58 -0700 (PDT) From: Philip McGrath Date: Tue, 29 Jun 2021 17:57:40 -0400 Message-Id: <20210629215742.3112654-2-philip@philipmcgrath.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210629215742.3112654-1-philip@philipmcgrath.com> References: <20210629215255.3110238-1-philip@philipmcgrath.com> <20210629215742.3112654-1-philip@philipmcgrath.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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"))))))