From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MF2vIquX22AoiAAAgWs5BA (envelope-from ) for ; Tue, 29 Jun 2021 23:59:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id UPJTHquX22A+UQAAbx9fmQ (envelope-from ) for ; Tue, 29 Jun 2021 21:59:07 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 330F88233 for ; Tue, 29 Jun 2021 23:59:07 +0200 (CEST) Received: from localhost ([::1]:34040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lyLl4-0002MR-8t for larch@yhetil.org; Tue, 29 Jun 2021 17:59:06 -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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625003947; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=QY6Y7nfoQZZes0BD72N5Qc65u6NOoEB5vOh/5fMqWUg=; b=D/ZmYdrnd7a6sTkZHHQicOlXbn0XtW5KSkKOs3DASb0aDz3lIHuhUdZ3TAnnHW4m+w6byO paUhNAvmYYVbY9RUWT1SVU+C0LxZz+wtlVKjkI7XFLEdrKsA+OMQeGsdHOfgGHfP+lTIrW KOltRCkrV4lyn9WQHANk7Wv8w4Xk2qtyDETPhhzsiGoZpYFGq0uhlL9VndG3NHUYPe8o/3 pnZzBsmM5Opo5ELIj90VkylMUToMZjoh1ArT1D5DeuwwgfsZIpFgO3uMIThr1PPK7foOm0 Zuj0NO+R6hq8AyLYvYkNchSGjo3LH1UiLOs4aQK9oBVg7pkfWm8FT1kdgvy3pA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625003947; a=rsa-sha256; cv=none; b=RSbLtliwEjuVJ2MM/fHRmbm9ZS1m8rNXH+i73r7D02EEfsV5xJ1pAMO/zkMHA2gKLKICna jeT2DZgHhKWsHTGnJMURqrhYcxxgyYTHD8gMAP7tiBh+AoAccFzvcdjS0Acz80P3y3QuY2 guG2OHMeHapbgmJVzMc2HzViVxe/ZOTta1fzvPdBlvj0aknVqQTdeE0HjNQwcapwgBuPtP kgDqkrGhii0nUD3hKXiAy1S5tdgAb+zg6mYDyeec49tsovweSwES4blGIBcksFV9UzI/P5 UauhYvLKg8Uc+1Odp7x0lorE+xysb9LjL6x7fRocsFjP7aAyzcKTCIMPStbmMg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=eIHMqy+G; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.58 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=eIHMqy+G; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 330F88233 X-Spam-Score: 3.58 X-Migadu-Scanner: scn1.migadu.com X-TUID: lv86oG0tkHSy * 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