[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: guix environment --profile with --ad-hoc
From: |
Pierre Neidhardt |
Subject: |
Re: guix environment --profile with --ad-hoc |
Date: |
Fri, 12 Mar 2021 16:44:01 +0100 |
Hi again,
There is possibly a design flaw that prevents it from being completely
super useful :) It'd be great if the command would be more "do-what-I-mean"
when both package options and --profile are passed.
Currently, I get
--8<---------------cut here---------------start------------->8---
$ guix environment -l ./build-scripts/guix.scm -r my-root -p my-profile
guix environment: error: '--profile' cannot be used with package options
--8<---------------cut here---------------end--------------->8---
Instead, I'd like the following behaviour:
- If "my-root" does not exist, load guix.scm and create link the
resulting environment to my-root.
- If "my-root" exists, do _not_ load guix.scm, instead load the profile
as per my-profile.
Optional: isn't --root superfluous when --profile is specified? Seems
like it, so we could just do
--8<---------------cut here---------------start------------->8---
$ guix environment -l ./build-scripts/guix.scm -p my-profile
--8<---------------cut here---------------end--------------->8---
to get the aforementioned behaviour.
What do you think?
Lars?
Cheers!
--
Pierre Neidhardt
https://ambrevar.xyz/
signature.asc
Description: PGP signature
- Re: guix environment --profile with --ad-hoc, (continued)
- Re: guix environment --profile with --ad-hoc, Lars-Dominik Braun, 2021/03/09
- Re: guix environment --profile with --ad-hoc, Pierre Neidhardt, 2021/03/11
- Re: guix environment --profile with --ad-hoc, zimoun, 2021/03/12
- Re: guix environment --profile with --ad-hoc, Pierre Neidhardt, 2021/03/12
- Re: guix environment --profile with --ad-hoc, Ricardo Wurmus, 2021/03/12
- Re: guix environment --profile with --ad-hoc, Pierre Neidhardt, 2021/03/12
- Re: guix environment --profile with --ad-hoc, zimoun, 2021/03/12
- Re: guix environment --profile with --ad-hoc, Ludovic Courtès, 2021/03/15
- Re: guix environment --profile with --ad-hoc, Lars-Dominik Braun, 2021/03/12
- Re: guix environment --profile with --ad-hoc, Pierre Neidhardt, 2021/03/12
- Re: guix environment --profile with --ad-hoc,
Pierre Neidhardt <=
- Re: guix environment --profile with --ad-hoc, Lars-Dominik Braun, 2021/03/13
- Re: guix environment --profile with --ad-hoc, Pierre Neidhardt, 2021/03/13
- Re: guix environment --profile with --ad-hoc, zimoun, 2021/03/15
Re: guix environment --profile with --ad-hoc, pkill9, 2021/03/10