packages: Add 'patches' and related fields to <origin>.
authorLudovic Courtès <ludo@gnu.org>
Tue, 8 Oct 2013 22:04:45 +0000 (00:04 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 8 Oct 2013 22:11:34 +0000 (00:11 +0200)
commitac10e0e17e366d354ad8b3f91e03c1bdeddc7632
tree1b33c11f9e9cfa19a840b2c640c70782bf8a994c
parentb332e3664ee6aa3bc3560378e5f4c27cd984db5f
packages: Add 'patches' and related fields to <origin>.

See <https://lists.gnu.org/archive/html/guix-devel/2013-09/msg00137.html>
for the rationale.

* guix/packages.scm (<origin>)[patches, patch-flags, patch-inputs,
  patch-guile]: New fields.
  (%standard-patch-inputs, default-guile, patch-and-repack): New
  procedures.
  (package-source-derivation): When 'patches' is non-empty, call
  'patch-and-repack'.
* guix/utils.scm (file-sans-extension): New procedure.
guix/packages.scm
guix/utils.scm