Subject: bug#31956: guix environment: add option to download and unpack source

From: Jan Nieuwenhuizen <[email-masked]>
Date: Sun, 24 Jun 2018 22:50:55 +0200

Danny Milosavljevic writes:

>> Not sure what to call it exactly, but something like:
>> 
>>   guix environment --with-source hello
>
> +1
>
> Right now, my silly workaround is to add a phase which fails
>
>   (add-after 'unpack 'fail
>     (lambda _
>       (error "stop it")))
>
> and then do
>
>   guix build --keep-failed hello
>
> and then do
>
>   guix environment --pure hello
>   cd /tmp/guix-build-hello*
>
> That's... very manual.

A very nice recipe...interesting we had a discussion about this today on
#guix.  What I would really like, is for the --with-source directory
be a git archive, so that edits can be made and tested until it works.

Attempt a rebuild with new patches/new git commit and repeat.

Making repeated patches until a build succeeds is something I find
pretty cumbersome.

It could be an ad-hoc, new git archive.  It would also be nice if Guix
could somehow record upstream sources as (shallow?, tarred?) git
archives.

janneke

-- 
Jan Nieuwenhuizen <[email-masked]> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com