From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Bavier Subject: Re: [PATCH] scripts: Add 'environment' command. Date: Thu, 09 Oct 2014 12:26:14 -0500 Message-ID: <871tqhw3wp.fsf@gmail.com> References: <87oatmch5i.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> <8738axw5kp.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43079) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XcHS3-0006Td-VI for guix-devel@gnu.org; Thu, 09 Oct 2014 13:24:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XcHRv-0002dP-LK for guix-devel@gnu.org; Thu, 09 Oct 2014 13:24:31 -0400 Received: from mail-ig0-x233.google.com ([2607:f8b0:4001:c05::233]:57940) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XcHRv-0002cY-Gg for guix-devel@gnu.org; Thu, 09 Oct 2014 13:24:23 -0400 Received: by mail-ig0-f179.google.com with SMTP id h18so5034117igc.6 for ; Thu, 09 Oct 2014 10:24:22 -0700 (PDT) In-reply-to: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: "Thompson, David" Cc: guix-devel Thompson, David writes: > On Thu, Oct 9, 2014 at 12:50 PM, Eric Bavier 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