unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Pierre Neidhardt <mail@ambrevar.xyz>
To: Lars-Dominik Braun <lars@6xq.net>
Cc: "guix-devel@gnu.org" <guix-devel@gnu.org>, pkill9 <pkill9@runbox.com>
Subject: Re: guix environment --profile with --ad-hoc
Date: Fri, 12 Mar 2021 16:44:01 +0100	[thread overview]
Message-ID: <87r1kkml6m.fsf@ambrevar.xyz> (raw)
In-Reply-To: <YEcxwhFuRTolDhiZ@noor.fritz.box>

[-- Attachment #1: Type: text/plain, Size: 1199 bytes --]

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/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 511 bytes --]

  parent reply	other threads:[~2021-03-12 15:45 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-09  2:05 guix environment --profile with --ad-hoc pkill9
2021-03-09  7:25 ` Lars-Dominik Braun
2021-03-09  8:20   ` Pierre Neidhardt
2021-03-09  8:28     ` Lars-Dominik Braun
2021-03-11 20:04       ` Pierre Neidhardt
2021-03-12  9:47         ` zimoun
2021-03-12  9:59           ` Pierre Neidhardt
2021-03-12 11:23             ` Ricardo Wurmus
2021-03-12 11:26               ` Pierre Neidhardt
2021-03-12 13:12               ` zimoun
2021-03-15 16:23               ` Ludovic Courtès
2021-03-12 10:42         ` Lars-Dominik Braun
2021-03-12 10:51           ` Pierre Neidhardt
2021-03-12 15:44       ` Pierre Neidhardt [this message]
2021-03-13  7:59         ` Lars-Dominik Braun
2021-03-13  8:55           ` Pierre Neidhardt
2021-03-15  9:25           ` zimoun
2021-03-10 10:04   ` pkill9

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r1kkml6m.fsf@ambrevar.xyz \
    --to=mail@ambrevar.xyz \
    --cc=guix-devel@gnu.org \
    --cc=lars@6xq.net \
    --cc=pkill9@runbox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).