unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Mathieu Lirzin <mthl@gnu.org>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: Add a generalized git-file? to Guix?
Date: Thu, 12 Jan 2017 15:32:01 +0100	[thread overview]
Message-ID: <87h9542vtq.fsf@gnu.org> (raw)
In-Reply-To: <877f6132va.fsf@gnu.org> (Mathieu Lirzin's message of "Wed, 11 Jan 2017 18:47:37 +0100")

Howdy!

Mathieu Lirzin <mthl@gnu.org> skribis:

> Christopher Allan Webber <cwebber@dustycloud.org> writes:
>
>> Thompson, David writes:
>>
>>> Hi Christopher and Jan,
>>>
>>> On Tue, Jan 10, 2017 at 11:28 AM, Christopher Allan Webber
>>> <cwebber@dustycloud.org> 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 ‘current-guix’ 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’.

  reply	other threads:[~2017-01-12 14:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87twkpkdpw.fsf@drakenvlieg.flower>
     [not found] ` <87eg0eouv6.fsf@gnu.org>
     [not found]   ` <87a8b1fg7q.fsf@dustycloud.org>
     [not found]     ` <871swbe7ev.fsf@gnu.org>
     [not found]       ` <87eg0ag9q8.fsf@dustycloud.org>
     [not found]         ` <CAJ=RwfZXpvZ-DVq4G7M=bExonU2gWe-fOFsk8eaQJU40Z1+fNA@mail.gmail.com>
2017-01-11 15:29           ` Add a generalized git-file? to Guix? Christopher Allan Webber
2017-01-11 17:47             ` Mathieu Lirzin
2017-01-12 14:32               ` Ludovic Courtès [this message]
2017-01-28 23:50                 ` Mathieu Lirzin
2017-01-30 22:46                   ` Ludovic Courtès
2017-02-09 19:58                     ` Christopher Allan Webber
2017-02-09 20:33                       ` Mathieu Lirzin

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=87h9542vtq.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=mthl@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).