From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Add a generalized git-file? to Guix? Date: Thu, 12 Jan 2017 15:32:01 +0100 Message-ID: <87h9542vtq.fsf@gnu.org> References: <87twkpkdpw.fsf@drakenvlieg.flower> <87eg0eouv6.fsf@gnu.org> <87a8b1fg7q.fsf@dustycloud.org> <871swbe7ev.fsf@gnu.org> <87eg0ag9q8.fsf@dustycloud.org> <87bmvdfwdz.fsf@dustycloud.org> <877f6132va.fsf@gnu.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]:45726) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRgQQ-0003kI-Ku for guix-devel@gnu.org; Thu, 12 Jan 2017 09:32:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRgQL-0001NG-UH for guix-devel@gnu.org; Thu, 12 Jan 2017 09:32:22 -0500 In-Reply-To: <877f6132va.fsf@gnu.org> (Mathieu Lirzin's message of "Wed, 11 Jan 2017 18:47:37 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Mathieu Lirzin Cc: Guix-devel Howdy! Mathieu Lirzin skribis: > Christopher Allan Webber writes: > >> Thompson, David writes: >> >>> Hi Christopher and Jan, >>> >>> On Tue, Jan 10, 2017 at 11:28 AM, Christopher Allan Webber >>> wrote: >>>> Jan Nieuwenhuizen writes: >>>> >>>>> Christopher Allan Webber writes: >>>>> >>>>>> Thanks! >>>>>> >>>>>> The file is updated, and even nicer now, since I'm using a hack from >>>>>> guile-sdl2 which allows you to set the source to the whole checkout. >>>>> >>>>> Ohh! That needs to go in the Guix manual... could git-file? be added >>>>> to guix/utils? >>>> >>>> Maybe! I think David knows more about the provenance? >>> >>> I took this code from Ludovic. See make-git-predicate in >>> gnu/packages/package-management.scm in the Guix source tree. >>> >>>> I agree it would be nice to have in Guix itself. >>> >>> Agreed. A generalized and publicly available procedure would be great. >>> >>> - Dave >> >> Hello! See the above conversation... 8sync now uses `git-file?' in its >> guix.scm, a predicate check which allows for checking out the whole >> local directory as a "source" for testing a package. I borrowed it from >> Dave who originally adapted it from some code in Guix itself. See: >> >> http://git.savannah.gnu.org/cgit/8sync.git/tree/guix.scm#n62 >> >> This is pretty handy; probably other projects would like to make use of >> it. What do we think of making it a generally available utility? > > I would make use of it and I am in favour of adding it to Guix. I think it comes from =E2=80=98current-guix=E2=80=99 in package-management.= scm, and yes, we should probably make it public. Would someone like to submit a patch? The most difficult issue is finding in file in which to store it. ;-) Maybe git-download.scm? Thanks, Ludo=E2=80=99.