From d25b380f76155492d0149c99fe8ff9915a1a8f67 Mon Sep 17 00:00:00 2001 From: Daniel Ziltener Date: Thu, 7 Mar 2024 22:46:21 +0100 Subject: [PATCH] . --- zilti/build-system/chicken.scm | 23 +++-------------------- zilti/build/chicken-build-system.scm | 7 ++++--- 2 files changed, 7 insertions(+), 23 deletions(-) diff --git a/zilti/build-system/chicken.scm b/zilti/build-system/chicken.scm index 72fa28d..05b3f00 100644 --- a/zilti/build-system/chicken.scm +++ b/zilti/build-system/chicken.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2020 raingloom ;;; Copyright © 2021 Ludovic Courtès ;;; Copyright © 2021 Xinglu Chen +;;; Copyright © 2024 Daniel Ziltener ;;; ;;; This file is part of GNU Guix. ;;; @@ -43,7 +44,7 @@ EXTENSION is the file name extension, such as '.tar.gz'." (define %chicken-build-system-modules ;; Build-side modules imported and used by default. - `((zilti build chicken-build-system) + `((guix build chicken-build-system) (guix build union) ,@%gnu-build-system-modules)) @@ -113,25 +114,7 @@ EXTENSION is the file name extension, such as '.tar.gz'." (guix build utils)))) (define builder (with-imported-modules imported-modules - #~(begin - (use-modules #$@(sexp->gexp modules)) - #$(with-build-variables inputs outputs - #~(chicken-build #:name #$name - #:source #+source - #:system #$system - #:phases #$phases - #:configure-flags #$configure-flags - #:extra-directories #$extra-directories - #:parallel-build? #$parallel-build? - #: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)))))) + #~(use-modules #$@(sexp->gexp modules)))) (mlet %store-monad ((guile (package->derivation (or guile (default-guile)) system #:graft? #f))) diff --git a/zilti/build/chicken-build-system.scm b/zilti/build/chicken-build-system.scm index b2ec0cb..fb2bf35 100644 --- a/zilti/build/chicken-build-system.scm +++ b/zilti/build/chicken-build-system.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2020 raingloom +;;; Copyright © 2024 Daniel Ziltener ;;; ;;; This file is part of GNU Guix. ;;; @@ -56,9 +57,9 @@ (define* (unpack #:key source egg-name unpack-path #:allow-other-keys) "Relative to $CHICKEN_EGG_CACHE, unpack SOURCE in UNPACK-PATH, or EGG-NAME when UNPACK-PATH is unset. If the SOURCE archive has a single top level -directory, it is stripped so that the sources appear directly under UNPACK-PATH. -When SOURCE is a directory, copy its content into UNPACK-PATH instead of -unpacking." +directory, it is stripped so that the sources appear directly under +UNPACK-PATH. When SOURCE is a directory, copy its content into UNPACK-PATH +instead of unpacking." (define (unpack-maybe-strip source dest) (let* ((scratch-dir (string-append (or (getenv "TMPDIR") "/tmp") "/scratch-dir"))