diff options
author | Guillaume Le Vaillant <glv@posteo.net> | 2020-09-15 14:36:24 +0200 |
---|---|---|
committer | Guillaume Le Vaillant <glv@posteo.net> | 2020-09-15 14:36:24 +0200 |
commit | 952fafb2a3c7a0978cc6a96268ad0632558b212d (patch) | |
tree | 1a4374035f6c56d0b2c685441740b885fdcd6bf7 /guix/build-system | |
parent | e7cbcf5aff81149ac8ffab2d38bdcc1e8df97bf1 (diff) | |
download | guix-patches-952fafb2a3c7a0978cc6a96268ad0632558b212d.tar guix-patches-952fafb2a3c7a0978cc6a96268ad0632558b212d.tar.gz |
build-system: asdf: Read all .asd files if no #:asd-files specified.
* guix/build-system/asdf.scm (asdf-build): Remove the 'files' variable.
* guix/build/asd-build-system.scm (find-asd-files): New variable.
(build, check): Use it.
Diffstat (limited to 'guix/build-system')
-rw-r--r-- | guix/build-system/asdf.scm | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/guix/build-system/asdf.scm b/guix/build-system/asdf.scm index 334a119948..28403a1960 100644 --- a/guix/build-system/asdf.scm +++ b/guix/build-system/asdf.scm @@ -291,7 +291,7 @@ set up using CL source package conventions." (imported-modules %asdf-build-system-modules) (modules %asdf-build-modules)) - ;; FIXME: The definitions of 'systems' and 'files' are pretty hacky. + ;; FIXME: The definition of 'systems' is pretty hacky. ;; Is there a more elegant way to do it? (define systems (if (null? (cadr asd-systems)) @@ -303,13 +303,6 @@ set up using CL source package conventions." (1+ (string-length lisp-type))))) ; drop the "<lisp>-" prefix. asd-systems)) - (define files - (if (null? (cadr asd-files)) - `(quote ,(map (lambda (system) - (string-append system ".asd")) - (cadr systems))) - asd-files)) - (define builder `(begin (use-modules ,@modules) @@ -323,7 +316,7 @@ set up using CL source package conventions." (derivation->output-path source)) ((source) source) (source source)) - #:asd-files ,files + #:asd-files ,asd-files #:asd-systems ,systems #:test-asd-file ,test-asd-file #:system ,system |