guix build: Transformations operate on single objects.
authorLudovic Courtès <ludo@gnu.org>
Sun, 31 Jan 2016 19:18:52 +0000 (20:18 +0100)
committerLudovic Courtès <ludo@gnu.org>
Mon, 1 Feb 2016 07:59:13 +0000 (08:59 +0100)
commit629a064f3244e8cd13114842969de7e3b6b02f46
tree8886fc34606f4fe3d78bbbd42eea68d5e53e4c7c
parentefdcb6f29cd0fd384ed88b0b9eb65547514a79a5
guix build: Transformations operate on single objects.

* guix/scripts/build.scm (transform-package-source): Return a procedure
that expects a single object rather than a list of packages.
(options->transformation): Rewrite to precompute the list of applicable
transformations and to return a procedure that expects a single object
rather than a list of objects.
(options->derivations): Adjust accordingly.
* tests/scripts-build.scm: New file.
* Makefile.am (SCM_TESTS): Add it.
Makefile.am
guix/scripts/build.scm
tests/scripts-build.scm [new file with mode: 0644]