unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Julien Lepiller <julien@lepiller.eu>
To: help-guix@gnu.org, Ricardo Wurmus <rekado@elephly.net>,
	Andy Tai <lichengtai@gmail.com>
Subject: Re: packaging package with multiple git repos
Date: Fri, 27 Aug 2021 06:22:25 -0400	[thread overview]
Message-ID: <F3073393-B58D-4B05-9828-634C4CBAE0B7@lepiller.eu> (raw)
In-Reply-To: <87czpzbcks.fsf@elephly.net>

One such example is opam (see "guix edit opam"), that needs four copies of another repository for running its tests. For that, we put the origin records inside the inputs field, and copy the contents in one of the build phases.

Le 27 août 2021 02:56:19 GMT-04:00, Ricardo Wurmus <rekado@elephly.net> a écrit :
>
>Hi Andy,
>
>> Hi, I am trying to create a package definition for a package 
>> which has
>> multiple git repos and is to be built with these repos checked 
>> out
>> together.  I am curious how can multiple source origins be 
>> expressed
>> in package definition?  thanks for examples for this.
>
>There is no generic way to do this.  We have an svn-multi-fetch in 
>(guix svn-download) that fetches named locations from an SVN 
>repository, but there is no comparable feature for git-download.
>
>The common way to do this is to add more origins to the 
>native-inputs and place them where you need them to be in a build 
>phase after 'unpack.
>
>-- 
>Ricardo
>

      reply	other threads:[~2021-08-27 10:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-27  5:04 packaging package with multiple git repos Andy Tai
2021-08-27  6:56 ` Ricardo Wurmus
2021-08-27 10:22   ` Julien Lepiller [this message]

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=F3073393-B58D-4B05-9828-634C4CBAE0B7@lepiller.eu \
    --to=julien@lepiller.eu \
    --cc=help-guix@gnu.org \
    --cc=lichengtai@gmail.com \
    --cc=rekado@elephly.net \
    /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.
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).