environment: For --ad-hoc, allow users to specify an output.
authorLudovic Courtès <ludo@gnu.org>
Tue, 30 Jun 2015 21:16:42 +0000 (23:16 +0200)
committerLudovic Courtès <ludo@gnu.org>
Wed, 1 Jul 2015 21:29:49 +0000 (23:29 +0200)
commit417c39f13291711aa86ffd3479651e4521a93eac
tree9b96cef05ba776505fd3b84fb09779e7141a41c0
parentce367ef3a9031e3211d616630ff01c8a6128db96
environment: For --ad-hoc, allow users to specify an output.

* guix/scripts/environment.scm (package+propagated-inputs): Add 'output'
  parameter.  Use it in return value.
  (options/resolve-packages): Use 'append-map' instead of 'map'.  For 'load'
  and 'expression', return all the outputs of the resulting package.  For
  'package', use 'specification->package+output' instead of
  'specification->package'.
  (guix-environment): Adjust uses of PACKAGES accordingly.
* doc/guix.texi (Invoking guix environment): Document it.
* tests/guix-environment.sh: Add test for --ad-hoc guile-bootstrap:out.
doc/guix.texi
guix/scripts/environment.scm
tests/guix-environment.sh