[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] scripts: Add 'environment' command.
From: |
Eric Bavier |
Subject: |
Re: [PATCH] scripts: Add 'environment' command. |
Date: |
Thu, 09 Oct 2014 11:50:14 -0500 |
User-agent: |
mu4e 0.9.9.5; emacs 23.3.1 |
David Thompson writes:
> Hello Guix hackers,
>
> Below is a preliminary version of a new guix command called
> 'environment'. For those familiar with Nix, it works a lot like
> nix-shell.
[...]
> By default, running 'guix environment' spawns a new $SHELL process,
> because it is usually what one would want to do. However, the '--exec'
> flag can be used to specify the command to run.
For this option, together with the --search-paths option, would it be
possible to customize the syntax of the output from the
show-search-paths function? This might be a question for other guix
commands as well. Either the current shell or the shell from --exec
might set variables in a different way. E.g. the user is using the
"fish" shell, and doesn't want to spawn a new process, they should be
able to::
eval (guix environment --search-paths guile)
Btw, fish uses 'set -x PATH "..."' to export PATH set to "..."
Just a thought.
> Finally, the '--load' flag can be used to read a package from a file
> instead of searching $GUIX_PACKAGE_PATH.
Could we instead have a -L or --load-path option like for `guix build`?
This would be useful if the user wants to give multiple packages to
`guix environment` that are all outside $GUIX_PACKAGE_PATH.
I'm very excited for this.
--
Eric Bavier
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
- [PATCH] scripts: Add 'environment' command., David Thompson, 2014/10/08
- Re: [PATCH] scripts: Add 'environment' command., Alex Kost, 2014/10/09
- Re: [PATCH] scripts: Add 'environment' command.,
Eric Bavier <=
- Re: [PATCH] scripts: Add 'environment' command., Ludovic Courtès, 2014/10/09
- Re: [PATCH] scripts: Add 'environment' command., David Thompson, 2014/10/09
- Re: [PATCH] scripts: Add 'environment' command., David Thompson, 2014/10/10
- Re: [PATCH] scripts: Add 'environment' command., Ludovic Courtès, 2014/10/10
- Re: [PATCH] scripts: Add 'environment' command., David Thompson, 2014/10/10
- Re: [PATCH] scripts: Add 'environment' command., Ludovic Courtès, 2014/10/10
- Re: [PATCH] scripts: Add 'environment' command., David Thompson, 2014/10/10
- Re: [PATCH] scripts: Add 'environment' command., Ludovic Courtès, 2014/10/11