unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: David Thompson <dthompson2@worcester.edu>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] HACKING: Mention 'guix environment'.
Date: Mon, 24 Nov 2014 21:00:44 +0100	[thread overview]
Message-ID: <87d28cbc7n.fsf@gnu.org> (raw)
In-Reply-To: <87wq6laavw.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> (David Thompson's message of "Sun, 23 Nov 2014 16:02:27 -0500")

David Thompson <dthompson2@worcester.edu> skribis:

> Ludovic Courtès <ludo@gnu.org> writes:
>
>> David Thompson <dthompson2@worcester.edu> skribis:
>>
>>> Just today I used 'guix environment guix' to quickly create a
>>> development environment for Guix hacking.  I figured it should be
>>> mentioned in the HACKING file to assist developers that happen to
>>> already by using a Guix system.
>>>
>>> WDYT?
>>
>> Sure, please commit!  I thought I had done it, but no.
>>
>>> +If you are building Guix on a system that already runs Guix, you can use 'guix
>>> +environment' to spawn a shell whose environment contains all of the necessary
>>> +packages without installing them to your user profile:
>>> +
>>> +  guix environment guix
>>
>> This is true only when ‘guix’ refers to the development version, which
>> has the autotools etc. as inputs.
>
> Okay, so that's not always the case?  In that case, we could say:
>
>   guix environment -e '(@@ (gnu packages package-management) guix-devel)'

You’re right that it will always work in practice, because there’ll
always be a ‘guix-devel’ more recent than ‘guix’.  So the wording above
is OK.

The problem I was raising does not really apply here; I’m shamelessly
sidetracking, I admit.  ;-)

>> I think it would be nice to have a ‘--install’ option to specify
>> additional packages to add to the environment, so that one could do
>> (say):
>>
>>   guix environment mpc -i autoconf automake libtool
>>
>> and get a really complete development environment.
>>
>> (We discussed this on IRC some time ago, but I think we had overlooked
>> this simple solution.)
>
> I think that is a good idea in general, so I will work on adding it.

OK.

Ludo’.

      reply	other threads:[~2014-11-24 20:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-23 17:10 [PATCH] HACKING: Mention 'guix environment' David Thompson
2014-11-23 20:26 ` Ludovic Courtès
2014-11-23 21:02   ` David Thompson
2014-11-24 20:00     ` Ludovic Courtès [this message]

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=87d28cbc7n.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=dthompson2@worcester.edu \
    --cc=guix-devel@gnu.org \
    /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).