gexp: #:references-graphs refers to non-native derivations.
authorLudovic Courtès <ludo@gnu.org>
Wed, 3 Mar 2021 11:27:18 +0000 (12:27 +0100)
committerLudovic Courtès <ludo@gnu.org>
Wed, 3 Mar 2021 13:19:25 +0000 (14:19 +0100)
commit9fc4e94986e68e0e33b260e2389765e2d3b7dd07
tree8875b19b4b310305aac1a2998843d67fc30d3f8c
parentd9f1752c55a458d80c48192150f68ef37738a91f
gexp: #:references-graphs refers to non-native derivations.

Fixes a regression introduced in
c6d6aee6659acb293eb33f498fdac3b47a19a48, where #:reference-graphs would
end up referring to native inputs.

This would notably break the compilation of systems using a childhurd,
because they would attempt to build the 'hurd' package natively.

* guix/gexp.scm (lower-reference-graphs)[tuple->gexp-input]: Honor TARGET.
* tests/gexp.scm ("gexp->derivation #:references-graphs cross-compilation"):
New test.
guix/gexp.scm
tests/gexp.scm