gexp: Native inputs of nested gexps are properly accounted for.
authorLudovic Courtès <ludo@gnu.org>
Mon, 19 Dec 2016 16:06:12 +0000 (17:06 +0100)
committerLudovic Courtès <ludo@gnu.org>
Mon, 19 Dec 2016 16:51:00 +0000 (17:51 +0100)
commit5b14a7902c58d9fb7923f9e16871f549fbe59b6e
tree754db0853a469bf6b68628f7812b9b3795dec763
parent9fc037fe1099f499acc01c5f40cae7f72796c49a
gexp: Native inputs of nested gexps are properly accounted for.

Previously, 'gexp-native-inputs' would not return the native inputs of
nested gexps.  For example, this:

  (gexp-native-inputs #~(foo #$#~(bar #+coreutils)))

would return '().

* guix/gexp.scm (gexp-inputs)[add-reference-inputs]: In the
non-recursive cases, check whether N? and NATIVE? are the same, and act
accordingly.
[native-input?]: Remove.
Fold over all of (gexp-references exp).
* tests/gexp.scm ("ungexp + ungexp-native, nested, special mixture"):
New test.
* tests/gexp.scm ("input list splicing + ungexp-native-splicing"): Pass
 #:native? #t to 'gexp-input'.
guix/gexp.scm
tests/gexp.scm