From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] HACKING: Mention 'guix environment'. Date: Mon, 24 Nov 2014 21:00:44 +0100 Message-ID: <87d28cbc7n.fsf@gnu.org> References: <873899c07r.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> <877fyl64u9.fsf@gnu.org> <87wq6laavw.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47932) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xszoa-0004u3-23 for guix-devel@gnu.org; Mon, 24 Nov 2014 15:00:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XszoV-0001GA-93 for guix-devel@gnu.org; Mon, 24 Nov 2014 15:00:52 -0500 Received: from hera.aquilenet.fr ([2a01:474::1]:38642) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XszoV-0001E7-2G for guix-devel@gnu.org; Mon, 24 Nov 2014 15:00:47 -0500 In-Reply-To: <87wq6laavw.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> (David Thompson's message of "Sun, 23 Nov 2014 16:02:27 -0500") 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: David Thompson Cc: guix-devel@gnu.org David Thompson skribis: > Ludovic Court=C3=A8s writes: > >> David Thompson skribis: >> >>> Just today I used 'guix environment guix' to quickly create a >>> development environment for Guix hacking. I figured it should be >>> mentioned in the HACKING file to assist developers that happen to >>> already by using a Guix system. >>> >>> WDYT? >> >> Sure, please commit! I thought I had done it, but no. >> >>> +If you are building Guix on a system that already runs Guix, you can u= se 'guix >>> +environment' to spawn a shell whose environment contains all of the ne= cessary >>> +packages without installing them to your user profile: >>> + >>> + guix environment guix >> >> This is true only when =E2=80=98guix=E2=80=99 refers to the development = version, which >> has the autotools etc. as inputs. > > Okay, so that's not always the case? In that case, we could say: > > guix environment -e '(@@ (gnu packages package-management) guix-devel)' You=E2=80=99re right that it will always work in practice, because there=E2= =80=99ll always be a =E2=80=98guix-devel=E2=80=99 more recent than =E2=80=98guix=E2= =80=99. So the wording above is OK. The problem I was raising does not really apply here; I=E2=80=99m shameless= ly sidetracking, I admit. ;-) >> I think it would be nice to have a =E2=80=98--install=E2=80=99 option to= specify >> additional packages to add to the environment, so that one could do >> (say): >> >> guix environment mpc -i autoconf automake libtool >> >> and get a really complete development environment. >> >> (We discussed this on IRC some time ago, but I think we had overlooked >> this simple solution.) > > I think that is a good idea in general, so I will work on adding it. OK. Ludo=E2=80=99.