packages: Factorize things common to `package-{,cross-}derivation'.
authorLudovic Courtès <ludo@gnu.org>
Mon, 20 May 2013 21:00:47 +0000 (23:00 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 24 May 2013 06:58:52 +0000 (08:58 +0200)
commita63062b55a6592467816571fd7983f4e88903c0a
tree2e81a3bfe0f84397d0f8f730fbb0ab0445e5f425
parent7046c48d721dfc0c733d2d31a4251e97ab581ed8
packages: Factorize things common to `package-{,cross-}derivation'.

* guix/packages.scm (expand-input): New procedure, moved out of...
  (package-derivation): ... here.  Adjust accordingly.
  (package-cross-derivation): Add `cross-system' and `system'
  parameters.
guix/packages.scm