build-system: Bags record their system and target.
commitd3d337d2d8f7152cb9ff3724f1cf240ce5ea5be2
authorLudovic Courtès <ludo@gnu.org>
Sun, 5 Oct 2014 14:32:25 +0000 (5 16:32 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sun, 5 Oct 2014 19:58:42 +0000 (5 21:58 +0200)
tree4b1c5c20515e88fdecf1626673d1f9864942ab1f
parentb4469d8c12905f07a6825654bc3313beb0563cad
build-system: Bags record their system and target.

* guix/build-system.scm (<bag>)[system, target]: New fields.
  (make-bag): Add #:system parameter and pass it to LOWER.
* gnu/packages/bootstrap.scm (make-raw-bag): Initialize 'system' field.
* guix/build-system/cmake.scm (lower): Likewise.
* guix/build-system/perl.scm (lower): Likewise.
* guix/build-system/python.scm (lower): Likewise.
* guix/build-system/ruby.scm (lower): Likewise.
* guix/build-system/trivial.scm (lower): Likewise.
* guix/build-system/gnu.scm (lower): Initialize 'system' and 'target'
  fields.
* guix/packages.scm (bag->derivation, bag->cross-derivation): New
  procedures.
  (package-derivation, package-cross-derivation): Use 'bag->derivation'.
* tests/packages.scm ("search paths"): Initialize 'system' and 'target'
  fields.
  ("package->bag", "package->bag, cross-compilation", "bag->derivation",
  "bag->derivation, cross-compilation"): New tests.
gnu/packages/bootstrap.scm
guix/build-system.scm
guix/build-system/cmake.scm
guix/build-system/gnu.scm
guix/build-system/perl.scm
guix/build-system/python.scm
guix/build-system/ruby.scm
guix/build-system/trivial.scm
guix/packages.scm
tests/packages.scm