--- Begin Message ---
Subject: |
[PATCH] environment: Allow starting from existing profile |
Date: |
Thu, 4 Feb 2021 11:13:20 +0100 |
Hi everyone,
the attched patch allows starting a `guix environment` from an existing
profile. Our use-case is this: We have profiles, created by
guix package -p /path -i …
because we need to parse desktop files in /path/share/applications. Also
this does the heavy-lifting (substitutes/building/grafting) upfront once
and not when starting an environment. Then we start an application from
this profile using
guix environment -C […] -p /path -- jupyterlab […]
This is much faster (10x) for large profiles (i.e. JupyterLab) than
guix environment -C […] -m manifest.scm -- jupyterlab […]
and makes sure the environment is exactly the same as
source /path/etc/profile
I think there have been many discussions about how `guix environment`
should work and this is certainly not the silver bullet, but it’s a huge
improvement for us with very limited code changes required.
Cheers,
Lars
0001-environment-Allow-starting-from-existing-profile.patch
Description: Text Data
--- End Message ---
--- Begin Message ---
Subject: |
Re: [bug#46291] [PATCH] environment: Allow starting from existing profile |
Date: |
Thu, 11 Feb 2021 18:01:31 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Lars-Dominik Braun <lars@6xq.net> writes:
> Hi everyone,
>
> the attched patch allows starting a `guix environment` from an existing
> profile. Our use-case is this: We have profiles, created by
>
> guix package -p /path -i &
>
> because we need to parse desktop files in /path/share/applications. Also
> this does the heavy-lifting (substitutes/building/grafting) upfront once
> and not when starting an environment. Then we start an application from
> this profile using
>
> guix environment -C [&] -p /path -- jupyterlab [&]
>
> This is much faster (10x) for large profiles (i.e. JupyterLab) than
>
> guix environment -C [&] -m manifest.scm -- jupyterlab [&]
>
> and makes sure the environment is exactly the same as
>
> source /path/etc/profile
>
> I think there have been many discussions about how `guix environment`
> should work and this is certainly not the silver bullet, but it.s a huge
> improvement for us with very limited code changes required.
Look excellent to me, pushed, thank you!
--- End Message ---