guix_mirror_bot pushed a commit to branch master
in repository guix.
commit d3815b78759adee417e1a8e807b4821d6f6b70a9
Author: Sergio Pastor Pérez <[email protected]>
AuthorDate: Thu Nov 5 19:18:28 2026 +0100
build-system: chicken: Make builder generic.
* guix/build-system/chicken.scm (chicken-build): Use 'environment-variable'
file-like objects to generalize builder.
Signed-off-by: Ludovic Courtès <[email protected]>
Merges: #8121
---
guix/build-system/chicken.scm | 38 +++++++++++++++++++++++++-------------
1 file changed, 25 insertions(+), 13 deletions(-)
diff --git a/guix/build-system/chicken.scm b/guix/build-system/chicken.scm
index f0761db31d3..bdf02cb4abd 100644
--- a/guix/build-system/chicken.scm
+++ b/guix/build-system/chicken.scm
@@ -3,6 +3,7 @@
;;; Copyright © 2021 Ludovic Courtès <[email protected]>
;;; Copyright © 2021 Xinglu Chen <[email protected]>
;;; Copyright © 2026 Malte Frank Gerdes <[email protected]>
+;;; Copyright © 2026 Sergio Pastor Pérez <[email protected]>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -98,25 +99,36 @@ EXTENSION is the file name extension, such as '.tar.gz'."
(with-imported-modules imported-modules
#~(begin
(use-modules #$@(sexp->gexp modules))
- (chicken-build #:name #$name
- #:source #+source
- #:system #$system
- #:phases #$phases
+ (chicken-build #:name #$(environment-variable "#:name" name)
+ #:source #+(environment-variable "#:source" source)
+ #:system #$(environment-variable "#:system" system)
+ #:phases (primitive-eval
+ #$(environment-variable "#:phases" phases))
#:outputs #$(outputs->gexp outputs)
- #:search-paths '#$(sexp->gexp
- (map
search-path-specification->sexp
- search-paths))
- #:egg-name #$egg-name
- #:unpack-path #$unpack-path
- #:build-flags #$build-flags
- #:tests? #$tests?
- #:inputs #$(input-tuples->gexp inputs)))))
+ #:search-paths
+ #$(environment-variable
+ "#:search-paths"
+ (map search-path-specification->sexp
+ search-paths))
+ #:egg-name #$(environment-variable
+ "#:egg-name" egg-name)
+ #:unpack-path #$(environment-variable
+ "#:unpack-path" unpack-path)
+ #:build-flags (primitive-eval
+ #$(environment-variable
+ "#:build-flags" build-flags))
+ #:tests? #$(environment-variable "#:tests?" tests?)
+ #:inputs
+ (primitive-eval
+ #$(environment-variable
+ "#:inputs" (input-tuples->gexp inputs)))))))
(mlet %store-monad ((guile (package->derivation (or guile (default-guile))
system #:graft? #f)))
(gexp->derivation name builder
#:system system
- #:guile-for-build guile)))
+ #:guile-for-build guile
+ #:script-name "chicken-builder")))
(define chicken-build-system
(build-system