From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Combining Guix, direnv and Emacs for environment customisation Date: Wed, 30 Aug 2017 12:09:02 +0200 Message-ID: <87wp5l2wqp.fsf@gnu.org> References: <20170527105641.9426-1-mail@cbaines.net> <20170527123113.1ca668e7@cbaines.net> <877exlvbzm.fsf@zancanaro.id.au> 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]:59120) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmzvp-0006yQ-Bv for guix-devel@gnu.org; Wed, 30 Aug 2017 06:09:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dmzvk-0005OD-Ed for guix-devel@gnu.org; Wed, 30 Aug 2017 06:09:09 -0400 In-Reply-To: <877exlvbzm.fsf@zancanaro.id.au> (Carlo Zancanaro's message of "Wed, 30 Aug 2017 15:52:13 +1000") 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" To: Carlo Zancanaro Cc: guix-devel Carlo Zancanaro skribis: > On Tue, Aug 29 2017, David wrote: >> There is a feature missing in 'guix environment': saving the resulting >> profile for easy access later. I often want to build an environment >> once and not update it for awhile, but with the current state of 'guix >> environment' it's not possible. This leads me to pulling my hair out >> when I do an upgrade of Guix and have to rebuild all of my development >> environments. What was supposed to be a quick hack turns into a Guix >> maintenance session. > > I also got frustrated by this when trying to keep my own checkout of > guix. Then I found out you can do this: > > guix environment guix --root=3Denvironment > > This puts a link to the environment under `environment` in the local > directory. Then you can run `source environment/etc/profile; make` to > rebuild guix. This also protects the environment from garbage > collection, which was the actual problem I was trying to solve. It surely helps, but I think it would be even better if =E2=80=98guix environment=E2=80=99 would directly include a way to reload the environment= in its UI, like Dave was suggesting. Maybe it=E2=80=99s just a matter of adding a --reload option that does what= you wrote above for you? Ludo=E2=80=99.