summary refs log tree commit diff
diff options
context:
space:
mode:
authorAshish SHUKLA <ashish.is@lostca.se>2024-07-25 17:41:15 +0000
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2024-11-12 17:41:14 +0900
commit0b60708ee03ca54b51d688f2f10fe7df31202212 (patch)
treeee9f1b551a2d5bfc69bc4f012aecc1ed78d1f4a0
parent57e6a56281f93057fe1ab0ae59bf33527922126c (diff)
downloadguix-0b60708ee03ca54b51d688f2f10fe7df31202212.tar.gz
build: chicken-build-system: Update for 5.4.0.
* guix/build/chicken-build-system (build): chdir to the directory containing
sources, and let chicken-install process the current directory.
(install): Switch to define as we do not need any keys.
(check): Remove unused egg-name from the arguments.

Change-Id: I4adf5e2378deab6e3f3b3c128c3cc75ce43f0e8a
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
-rw-r--r--guix/build/chicken-build-system.scm11
1 files changed, 6 insertions, 5 deletions
diff --git a/guix/build/chicken-build-system.scm b/guix/build/chicken-build-system.scm
index 8f9f59cc25..fd5a33fd22 100644
--- a/guix/build/chicken-build-system.scm
+++ b/guix/build/chicken-build-system.scm
@@ -93,13 +93,14 @@ unpacking."
 
 (define* (build #:key egg-name #:allow-other-keys)
   "Build the Chicken egg named by EGG-NAME"
-  (invoke "chicken-install" "-cached" "-no-install" egg-name))
+  (chdir egg-name)
+  (invoke "chicken-install" "-cached" "-no-install"))
 
-(define* (install #:key egg-name #:allow-other-keys)
+(define (install . _)
   "Install the already built egg named by EGG-NAME"
-  (invoke "chicken-install" "-cached" egg-name))
+  (invoke "chicken-install" "-cached"))
 
-(define* (check #:key egg-name tests? #:allow-other-keys)
+(define* (check #:key tests? #:allow-other-keys)
   "Build and run tests for the Chicken egg EGG-NAME"
   ;; there is no "-test-only" option, but we've already run install
   ;; so this just runs tests.
@@ -109,7 +110,7 @@ unpacking."
                          ":"
                          (getenv "CHICKEN_REPOSITORY_PATH")))
   (when tests?
-    (invoke "chicken-install" "-cached" "-test" "-no-install" egg-name)))
+    (invoke "chicken-install" "-cached" "-test" "-no-install")))
 
 (define* (stamp-egg-version #:key egg-name name #:allow-other-keys)
   "Check if EGG-NAME.egg contains version information and add some if not."