gexp: Resolve the default system at '>>=' time.
authorLudovic Courtès <ludo@gnu.org>
Sat, 12 Jul 2014 20:11:12 +0000 (22:11 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sat, 12 Jul 2014 21:17:53 +0000 (23:17 +0200)
commit5d0984595c77b1b0acd84eb4684f786de5f95aff
tree4355280e8ae766dfe46923d2e7b0eff6577be7d1
parentf62435e2868f5db15cc2f31300630c8ec873dd58
gexp: Resolve the default system at '>>=' time.

Partly fixes <http://bugs.gnu.org/18002>.
Reported by David Thompson <dthompson2@worcester.edu>.

* guix/gexp.scm (gexp->derivation): Change #:system to default #f.
  Use (%current-system) from within the 'mlet*'.
* tests/gexp.scm ("gexp->derivation, default system"): New test.
guix/gexp.scm
tests/gexp.scm