guix-devel/guix/scripts
David Thompson 779aa003fb scripts: environment: Build environments as profiles.
Fixes <http://bugs.gnu.org/19816>.

* guix/scripts/environment.scm (evaluate-input-search-paths)
(build-inputs): Delete.
(evaluate-profile-search-paths, strip-input-name)
(package-or-package+output?, package-environment-inputs)
(build-environment, inputs->profile-derivations): New procedures.
(create-environment, show-search-paths, launch-environment)
(launch-environment/container): Replace 'inputs' argument
with 'profile' argument.
(package+propagated-inputs): Strip off names off of input tuples.
(options/resolve-packages): Handle input tuples that specify an output
in expressions.
(guix-environment): Convert inputs into a profile to use in the
environment.  Remove non-package inputs such as origins from
environment inputs.
* doc/guix.texi ("invoking guix environment"): Document package+output
tuples for --expression option.
* tests/guix-environment.sh: Update tests.
* tests/guix-environment-container.sh: Likewise.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
2016-02-12 22:02:06 +01:00
..
container scripts: container: Fix 'exec' command line parsing. 2015-11-03 18:05:43 -05:00
import import: Add Bioconductor importer and updater. 2016-01-20 12:41:28 +01:00
archive.scm guix archive: Add '--extract'. 2015-10-19 10:10:47 +02:00
authenticate.scm Remove assorted Guile 2.0.5 workarounds. 2015-05-10 11:07:51 +02:00
build.scm guix build: Add '--with-input'. 2016-02-01 08:59:13 +01:00
challenge.scm substitute: 'lookup-narinfos' returns exactly a list of narinfos. 2015-10-28 12:04:03 +01:00
container.scm scripts: Add 'container' subcommand. 2015-11-01 18:20:04 -05:00
download.scm guix download: Fail when more than one URL is passed. 2015-11-23 17:48:35 +01:00
edit.scm edit: Don't assume that an emacs daemon is running. 2015-12-06 17:23:25 +01:00
environment.scm scripts: environment: Build environments as profiles. 2016-02-12 22:02:06 +01:00
gc.scm guix gc: Error out when extra arguments are passed. 2015-11-11 23:29:20 +01:00
graph.scm graph: %BAG-WITH-ORIGINS-NODE-TYPE includes the origin's guile. 2016-01-02 22:25:41 +01:00
hash.scm Add (guix scripts). 2015-09-18 21:42:06 +03:00
import.scm import: Add 'cran' importer. 2015-08-31 15:39:34 +02:00
lint.scm lint: Rewrite 'check-patch-file-names'. 2016-01-28 16:31:38 +01:00
offload.scm offload: Use gzip instead of xz for compression on the master. 2015-09-25 22:35:35 +02:00
package.scm guix package: Support package transformation options. 2016-02-01 08:59:13 +01:00
publish.scm publish: Fix file descriptor leak. 2015-10-06 23:51:04 +02:00
pull.scm utils: Add 'switch-symlinks', moved from (guix ui). 2015-10-27 00:01:20 +01:00
refresh.scm import: Add Bioconductor importer and updater. 2016-01-20 12:41:28 +01:00
size.scm store: Use the daemon's substitute URLs by default. 2015-10-28 15:31:44 +01:00
substitute.scm substitute: Warn upon store prefix mismatches. 2015-11-28 00:02:23 +01:00
system.scm guix system: Simply warn if we cannot talk to the shepherd. 2016-02-05 14:01:46 +01:00