summaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.si>2022-10-31 10:39:28 +0100
committerChristopher Baines <mail@cbaines.net>2022-11-03 18:08:55 +0100
commitfd83edf8a10940fa0a6175fab420690f0072ad91 (patch)
treed8af8c72ed84b88614ebcbb88051d992ebb1081c /guix
parent754f260753fb6ebe28325616bc08336a184e4621 (diff)
build-system/scons: Allow using a G-exp for scons-flags.
* guix/build-system/scons.scm (scons-build): Only call sexp->gexp on scons-flags when scons-flags is a pair. Signed-off-by: Christopher Baines <mail@cbaines.net>
Diffstat (limited to 'guix')
-rw-r--r--guix/build-system/scons.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/guix/build-system/scons.scm b/guix/build-system/scons.scm
index e38213e8e0..7a02fa8a0f 100644
--- a/guix/build-system/scons.scm
+++ b/guix/build-system/scons.scm
@@ -100,7 +100,9 @@ provides a 'SConstruct' file as its build system."
#$(with-build-variables inputs outputs
#~(scons-build #:name #$name
#:source #+source
- #:scons-flags #$(sexp->gexp scons-flags)
+ #:scons-flags #$(if (pair? scons-flags)
+ (sexp->gexp scons-flags)
+ scons-flags)
#:system #$system
#:build-targets #$build-targets
#:test-target #$test-target