summaryrefslogtreecommitdiff
path: root/guix/import/egg.scm
diff options
context:
space:
mode:
authorXinglu Chen <public@yoctocell.xyz>2021-08-12 09:17:20 +0200
committerLudovic Courtès <ludo@gnu.org>2021-08-30 14:38:50 +0200
commit0508622848f65795d71c4dc860e0151291bff044 (patch)
tree9d8f046cfa9b0373db23a0425e186347f0b3eea3 /guix/import/egg.scm
parent99160bc71370f37b02052b51a3cd16c3b2f7af5b (diff)
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>
Diffstat (limited to 'guix/import/egg.scm')
-rw-r--r--guix/import/egg.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/guix/import/egg.scm b/guix/import/egg.scm
index 107894ddcf..89e7a9160d 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))