Re: Adding a subcommand "load-profile"

2020-05-05 Thread Ludovic Courtès
Hi, Vagrant Cascadian skribis: >> I’m interested in your feedback then. >> >> To me, there are already several ways to do that, notably: >> >> 1. guix environment (but it’s slower) >> >> 2. sh >> . /my/profile/etc/profile.sh >> exit >> >> 3. sh >> eval `guix package -p /my/p

Re: Adding a subcommand "load-profile"

2020-05-04 Thread zimoun
Dear Vagrant, On Sun, 3 May 2020 at 22:57, Vagrant Cascadian wrote: > I like the ability to maintain separate profiles and run "guix upgrade > -p my/profile" on each profile, but I haven't figured out how to get > something equivalent to "guix environment --pure --profile my/profile". env -i

Re: Adding a subcommand "load-profile"

2020-05-04 Thread zimoun
Hi Ludo, On Sun, 3 May 2020 at 22:31, Ludovic Courtès wrote: > 1. guix environment (but it’s slower) > > 2. sh > . /my/profile/etc/profile.sh > exit Personally, time to time I use (thanks Pjotr): env -i $(which bash) --login --noprofile --norc . /my/profile/etc/profile e

Re: Adding a subcommand "load-profile"

2020-05-03 Thread Vagrant Cascadian
On 2020-05-03, Ludovic Courtès wrote: > sirgazil skribis: >> On Tue, 28 Apr 2020 22:42:53 + Roel Janssen wrote >> >> > We added a subcommand in the "guixr" script called "load-profile". It >> allows a >> > user to do the following: >> > >> ---

Re: Adding a subcommand "load-profile"

2020-05-03 Thread Ludovic Courtès
Hi, sirgazil skribis: > On Tue, 28 Apr 2020 22:42:53 + Roel Janssen wrote > [...] > > We added a subcommand in the "guixr" script called "load-profile". It > allows a > > user to do the following: > > >

Re: Adding a subcommand "load-profile"

2020-04-29 Thread Roel Janssen
On Wed, 2020-04-29 at 15:48 +0200, zimoun wrote: > Dear Roel, > > On Wed, 29 Apr 2020 at 14:46, Roel Janssen wrote: > > > > > If there is interest in having this as a "load-profile" subcommand, I > > > > will > > > > post > > > > an initial implementation to the mailing list ASAP. > > > > > > I

Re: Adding a subcommand "load-profile"

2020-04-29 Thread zimoun
Dear Roel, On Wed, 29 Apr 2020 at 14:46, Roel Janssen wrote: > > > If there is interest in having this as a "load-profile" subcommand, I will > > > post > > > an initial implementation to the mailing list ASAP. > > > > Instead of another subcommand, I would suggest to add an option to > > "guix

Re: Adding a subcommand "load-profile"

2020-04-29 Thread Roel Janssen
Dear Simon, Thank you for your ideas! On Tue, 2020-04-28 at 18:54 +0200, zimoun wrote: > > [...] > > > Would there be any interest from others to have this as well? And also, the > > shell implementation heavy relies on Bash. What other shells should I > > attempt > > to implement? > > It wou

Re: Adding a subcommand "load-profile"

2020-04-28 Thread sirgazil
On Tue, 28 Apr 2020 22:42:53 + Roel Janssen wrote > Dear Guix, > > Years ago we implemented GNU Guix on the high-performance computing cluster > in > Utrecht. One of the things we added was a wrapper around the "guix" command > (called "guixr") to enable communication betwe

Re: Adding a subcommand "load-profile"

2020-04-28 Thread zimoun
Dear Roel, On Tue, 28 Apr 2020 at 17:43, Roel Janssen wrote: > > $ guixr package -i ... -p /my/profile > $ guixr load-profile /my/profile > [env]$ > # ... A new shell is spawned here. > # Inside this shell o

Adding a subcommand "load-profile"

2020-04-28 Thread Roel Janssen
Dear Guix, Years ago we implemented GNU Guix on the high-performance computing cluster in Utrecht. One of the things we added was a wrapper around the "guix" command (called "guixr") to enable communication between the guix-daemon (on one node), and the client-side "guix" command. (We actually c