gnu: cross-base: ‘cross’ helper uses gexps.

This is required in cases where P uses gexps.

* gnu/packages/cross-base.scm (cross): Use gexps.

Change-Id: Ie038cbec67a53700f31791ee2d171918788111d2
This commit is contained in:
Ludovic Courtès 2024-01-11 15:48:47 +01:00
parent 724c1a120a
commit f9f2198d82
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -80,9 +80,9 @@ (define (cross p target)
(name (string-append (package-name p) "-cross-" target))
(arguments
(substitute-keyword-arguments (package-arguments p)
((#:configure-flags flags ''())
`(cons ,(string-append "--target=" target)
,flags))))))
((#:configure-flags flags #~'())
#~(cons #$(string-append "--target=" target)
#$flags))))))
(define (contains-keyword? args)
"Check if ARGS contains a keyword object."