diff options
author | David Thompson <dthompson2@worcester.edu> | 2015-10-25 22:33:33 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2015-10-29 16:24:12 -0400 |
commit | cc90fbbf39e310a166e356f7019036eb30d4808a (patch) | |
tree | cb60b1749a2fe13f7cbe0030488bec06292ff25b /gnu.scm | |
parent | 6726282b20918f98ba7197ea1301376f29a248af (diff) | |
download | patches-cc90fbbf39e310a166e356f7019036eb30d4808a.tar patches-cc90fbbf39e310a166e356f7019036eb30d4808a.tar.gz |
scripts: environment: Allow mixing regular and ad-hoc packages.
This patch changes the --ad-hoc flag to be positional. That is, the
packages that appear before --ad-hoc are interpreted as packages whose
inputs should be in the environment; the packages that appear after are
interpreted as packages to be directly added to the environment.
* guix/scripts/environment.scm (tag-package-arg, compact): New
procedures.
(%options): Tweak the handlers for --load and --expression options.
(options/resolve-packages): Preserve package mode tag.
(parse-args): Tweak argument handler to use package tagging procedure.
(guix-environment): Apply ad-hoc behavior on a per package basis.
* tests/guix-environment.sh: Add test.
* doc/guix.texi ("invoking guix environment"): Document new behavior of
--ad-hoc.
Diffstat (limited to 'gnu.scm')
0 files changed, 0 insertions, 0 deletions