[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
230/377: build-system: chicken: Add 'egg-uri' procedure.
From: |
guix-commits |
Subject: |
230/377: build-system: chicken: Add 'egg-uri' procedure. |
Date: |
Thu, 2 Sep 2021 17:55:41 -0400 (EDT) |
raghavgururajan pushed a commit to branch wip-gnome
in repository guix.
commit 0508622848f65795d71c4dc860e0151291bff044
Author: Xinglu Chen <public@yoctocell.xyz>
AuthorDate: Thu Aug 12 09:17:20 2021 +0200
build-system: chicken: Add 'egg-uri' procedure.
Once Chicken 6 gets released, we can just adjust the URL in the ‘egg-uri’
procedure, instead of having to change the URL for all the Chicken packages.
Making things a little more future-proof.
* guix/build-system/chicken.scm (egg-uri): New procedure.
* guix/import/egg.scm (egg-source-url): Adjust accordingly.
(egg->guix-package): Likewise.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
guix/build-system/chicken.scm | 10 +++++++++-
guix/import/egg.scm | 5 +++--
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/guix/build-system/chicken.scm b/guix/build-system/chicken.scm
index 9abae04..10f1469 100644
--- a/guix/build-system/chicken.scm
+++ b/guix/build-system/chicken.scm
@@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2020 raingloom <raingloom@riseup.net>
+;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -26,7 +27,14 @@
#:use-module (ice-9 match)
#:export (%chicken-build-system-modules
chicken-build
- chicken-build-system))
+ chicken-build-system
+ egg-uri))
+
+(define* (egg-uri name version #:optional (extension ".tar.gz"))
+ "Return a URI string for the CHICKEN egg corresponding to NAME and VERSION.
+EXTENSION is the file name extension, such as '.tar.gz'."
+ (string-append "https://code.call-cc.org/egg-tarballs/5/"
+ name "/" name "-" version extension))
(define %chicken-build-system-modules
;; Build-side modules imported and used by default.
diff --git a/guix/import/egg.scm b/guix/import/egg.scm
index 107894d..89e7a91 100644
--- a/guix/import/egg.scm
+++ b/guix/import/egg.scm
@@ -87,7 +87,7 @@
(define (egg-source-url name version)
"Return the URL to the source tarball for version VERSION of the CHICKEN egg
NAME."
- (string-append (%eggs-url) "/" name "/" name "-" version ".tar.gz"))
+ `(egg-uri ,name version))
(define (egg-name->guix-name name)
"Return the package name for CHICKEN egg NAME."
@@ -197,7 +197,8 @@ not work."
(tarball (if source
#f
(with-store store
- (download-to-store store source-url)))))
+ (download-to-store
+ store (egg-uri name version))))))
(define egg-home-page
(string-append (%eggs-home-page) "/" name))
- 223/377: services: xorg: Delay the xorg-configuration-modules field evaluation., (continued)
- 223/377: services: xorg: Delay the xorg-configuration-modules field evaluation., guix-commits, 2021/09/02
- 238/377: gnu: Add python-pytest-console-scripts., guix-commits, 2021/09/02
- 227/377: services: hurd-vm: Use the new 'targets' field of <bootloader-configuration>., guix-commits, 2021/09/02
- 210/377: gnu: Add ansible-core., guix-commits, 2021/09/02
- 232/377: gnu: wine: Update to 6.14., guix-commits, 2021/09/02
- 212/377: gnu: python-django: Update to 3.2.6., guix-commits, 2021/09/02
- 234/377: gnu: wine: Update to 6.16., guix-commits, 2021/09/02
- 239/377: gnu: Add python-pytest-tornasync., guix-commits, 2021/09/02
- 237/377: gnu: Add python-dna-features-viewer., guix-commits, 2021/09/02
- 219/377: gnu: shadow: Use the cross-compiled shell at runtime., guix-commits, 2021/09/02
- 230/377: build-system: chicken: Add 'egg-uri' procedure.,
guix-commits <=
- 218/377: gnu: Add emacs-hideshowvis., guix-commits, 2021/09/02
- 231/377: gnu: Add ocaml-odoc-parser., guix-commits, 2021/09/02
- 216/377: isc-dhcp: Fix dhclient-script wrapper when cross-compiling., guix-commits, 2021/09/02
- 215/377: services: Remove i486 qemu target., guix-commits, 2021/09/02
- 248/377: build/jami-service: Fix range ends in account-fingerprint-rx., guix-commits, 2021/09/02
- 242/377: gnu: Add python-jupyter-server., guix-commits, 2021/09/02
- 246/377: gnu: Add python-voila., guix-commits, 2021/09/02
- 240/377: gnu: Add python-pytest-mock-3., guix-commits, 2021/09/02
- 241/377: gnu: Add python-anyio., guix-commits, 2021/09/02
- 259/377: gnu: glib-with-documentation: Fix documentation build., guix-commits, 2021/09/02