From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Nieuwenhuizen Subject: bug#31956: guix environment: add option to download and unpack source Date: Sun, 24 Jun 2018 22:50:55 +0200 Message-ID: <87d0wf3o40.fsf@gnu.org> References: <87tvpsngwm.fsf@aikidev.net> <20180624212727.0adf311c@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fXBzP-0005Hw-IF for bug-guix@gnu.org; Sun, 24 Jun 2018 16:52:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fXBzO-0002h4-IR for bug-guix@gnu.org; Sun, 24 Jun 2018 16:52:03 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:54490) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fXBzO-0002gu-EM for bug-guix@gnu.org; Sun, 24 Jun 2018 16:52:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fXBzO-0007Pp-7y for bug-guix@gnu.org; Sun, 24 Jun 2018 16:52:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20180624212727.0adf311c@scratchpost.org> (Danny Milosavljevic's message of "Sun, 24 Jun 2018 21:27:27 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Danny Milosavljevic Cc: Vagrant Cascadian , 31956@debbugs.gnu.org Danny Milosavljevic writes: >> Not sure what to call it exactly, but something like: >>=20 >> 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 --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com