packages: Add a 'snippet' field to <origin>.
authorLudovic Courtès <ludo@gnu.org>
Thu, 7 Nov 2013 21:41:21 +0000 (22:41 +0100)
committerLudovic Courtès <ludo@gnu.org>
Thu, 7 Nov 2013 21:57:30 +0000 (22:57 +0100)
commitf9cc897105850dbbf5e12df63e800cb28b0f293f
tree975b6dabbd0d6c213993cf51da66f2afa8b3487b
parent18f2887bffeda697bf5ba227c75e303aad04898a
packages: Add a 'snippet' field to <origin>.

* guix/packages.scm (<origin>): Add 'snippet', 'modules', and
  'imported-modules' fields.
  (patch-and-repack): Make 'inputs' a keyword parameter.  Add 'snippet',
  'modules', and 'imported-modules' parameters.  Accept SOURCE as a raw
  file name.  Insert SNIPPET in BUILDER.  Pass IMPORTED-MODULES to
  'build-expression->derivation'.
  (package-source-derivation): Pass the extra arguments to
  'patch-and-repack'.
* tests/packages.scm ("package-source-derivation, snippet"): New test.
* doc/guix.texi (Defining Packages): Mention the 'patches' and 'snippet'
  fields.
  (Invoking guix build): Tell that --source has patches and snippets
  applied.
  (Software Freedom): Mention packages that contain non-free code.
doc/guix.texi
guix/packages.scm
tests/packages.scm