From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: =?utf-8?Q?=E2=80=9CGuix?= Profiles in =?utf-8?Q?Practice?= =?utf-8?Q?=E2=80=9D?= Date: Sun, 03 Nov 2019 15:24:21 +0100 Message-ID: <87eeyp597u.fsf@gnu.org> References: <87r231rulr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: (David Thompson's message of "Fri, 25 Oct 2019 12:36:01 -0400") List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: "Thompson, David" Cc: guix-devel , help-guix List-Id: guix-devel.gnu.org Hi, "Thompson, David" skribis: > 'guix environment' is a very composable command, and it's not clear to > me how I would add the stuff I want onto it and it's even less clear > if it's a good idea. Probably not. So, I wonder if maybe a new > subcommand, say 'guix develop', could address this common development > use-case while allowing 'guix environment' to continue being the swiss > army knife that it is. Some simple naming conventions could make this > tool "just work." Running 'guix develop' would check for a profile > symlink with some canonical name, for example '.guix-develop-profile'. > If it exists, it applies the environment variables and spawns a > subshell. If it doesn't exist, it looks for a 'develop.scm' file > (canonical name TBD), builds the profile, symlinks it to > '.guix-develop-profile', and then does the prior steps. The tool > would provide a mechanism to update, etc. and it could even be > expanded later to spawn services like databases. That sounds like a good idea. =E2=80=98guix develop=E2=80=99 could keep th= e profiles it manages under ~/.cache/guix. Now, this would be very much stateful: you can=E2=80=99t tell in advance wh= ether you=E2=80=99re going to build a new profile based on the current Guix, or whether you=E2=80=99re going to reuse a previously cached profile that coul= d be arbitrarily old. That doesn=E2=80=99t sound great. Perhaps we should focus on improving the performance of =E2=80=98guix environment=E2=80=99 first and foremost? Thanks, Ludo=E2=80=99.