[Nix-dev] Hydra, nix-prefetch-git, and TopGit

Ludovic Courtès ludo at gnu.org
Thu Mar 10 12:02:34 CET 2011


Hello,

Lluís Batlle i Rossell <viriketo at gmail.com> writes:

> On Wed, Mar 09, 2011 at 11:40:11PM +0100, Ludovic Courtès wrote:
>> Hello!
>> 
>> I’m trying to see how to apply the recipe at
>> <http://www.bddebian.com:8888/~hurd-web/source_repositories/glibc/> from
>> within a Git clone produced by Hydra.
>> 
>> A plain ‘git clone’ doesn’t fetch objects references by the
>> TopGit-managed branches, so ‘tg remote --populate’ is really needed.
>> However, ‘tg remote --populate’ wants to fetch data from the network,
>> which is not possible from within a Nix build chroot.
>
> Also 'git clone' uses the network, but it produces a fixed output derivation,
> which fits your case also. Can't you use that same aproach?

In Hydra ‘git clone’ is done by Hydra itself, not through Nix, because
you typically want the latest revision of a given branch.

Thanks,
Ludo’.



More information about the nix-dev mailing list