guix-devel
[Top][All Lists]
Advanced

[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 12:26:14 -0500
User-agent: mu4e 0.9.9.5; emacs 23.3.1

Thompson, David writes:

> On Thu, Oct 9, 2014 at 12:50 PM, Eric Bavier <address@hidden> wrote:
>> David Thompson writes:
>>
>>> 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.
>>
>
> The -L flag also works to add to the load path.

I see now that it plugs into (guix scripts build)'s option handling.
Thanks for pointing that out.

> Lower-case 'l' calls 'load' on the given file and expects a package or
> list of packages in return.  For this I envision having a
> 'package.scm' or similar file in my git repos so that I can run 'guix
> environment -l package.scm' to create a development environment
> without altering load paths or having 'package.scm' define a module.

Yes, and then a new importer that reads package.scm to populate the
inputs field ;)

-- 
Eric Bavier

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]