diff options
author | Philip McGrath <philip@philipmcgrath.com> | 2022-02-27 16:29:01 -0500 |
---|---|---|
committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2022-03-04 23:37:55 +0100 |
commit | 9f8f785014f7af7656b6f06258975ddc53a9cb01 (patch) | |
tree | 9738797d3fe675371b2e4d409aa4dbb112f17f78 /gnu/packages/racket.scm | |
parent | 9e5e413c8151fd0ee0c5ee1c0981d08ee242d37c (diff) | |
download | guix-9f8f785014f7af7656b6f06258975ddc53a9cb01.tar.gz |
gnu: racket-minimal: Don't configure non-existant catalogs.
* gnu/packages/racket.scm (racket-minimal)[arguments]<#:phases>: Change 'initialize-config.rktd' to only add a release catalog when the package version is a release version. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu/packages/racket.scm')
-rw-r--r-- | gnu/packages/racket.scm | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/gnu/packages/racket.scm b/gnu/packages/racket.scm index 188ad715c1..a4b7cda473 100644 --- a/gnu/packages/racket.scm +++ b/gnu/packages/racket.scm @@ -231,6 +231,15 @@ (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 () @@ -239,12 +248,8 @@ . (#f #$(file-append (this-package-input "openssl") "/lib") #$(file-append (this-package-input "sqlite") "/lib"))) (build-stamp . "") - (catalogs - . (,(string-append - "https://download.racket-lang.org/releases/" - #$(package-version this-package) - "/catalog/") - #f)))))))) + (catalogs ,@maybe-release-catalog + #f))))))) (add-before 'configure 'chdir (lambda _ (chdir "racket/src"))) |