From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kADjGFa0+WAu6wAAgWs5BA (envelope-from ) for ; Thu, 22 Jul 2021 20:09:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id CB12FFa0+WC3FgAAbx9fmQ (envelope-from ) for ; Thu, 22 Jul 2021 18:09:26 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 700E919805 for ; Thu, 22 Jul 2021 20:09:25 +0200 (CEST) Received: from localhost ([::1]:47672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6d8N-0005dv-K7 for larch@yhetil.org; Thu, 22 Jul 2021 14:09:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34008) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6d34-0008AG-9S for help-guix@gnu.org; Thu, 22 Jul 2021 14:03:54 -0400 Received: from mail-40131.protonmail.ch ([185.70.40.131]:63505) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6d2z-000135-Mo for help-guix@gnu.org; Thu, 22 Jul 2021 14:03:53 -0400 Date: Thu, 22 Jul 2021 18:03:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1626977026; bh=VIXk04huQh5XvQ9fa4jZsnDqIeLO052YhsxieX1hbwY=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=ddkVkEvTy7vV9bFeBmkFnfyHFPzy5YZD8skZAM9M0cw3t3weLdNWL770rWfO/zagT sgbjnxGEx6bYWgR9JlUeB6DcSISzz5bVVkSjYuckDdD451z15KkFCKOScUwqk/fn3a 2dztnVl8Wj3lVRkR6L/fLCUNgq5OMftFlomidZBI= To: help-guix@gnu.org From: phodina Cc: Julien Lepiller Subject: Re: Multiple sources Message-ID: In-Reply-To: <20210722190756.263cb40e@tachikoma.lepiller.eu> References: <20210722190756.263cb40e@tachikoma.lepiller.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.131; envelope-from=phodina@protonmail.com; helo=mail-40131.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: phodina Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626977366; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=VIXk04huQh5XvQ9fa4jZsnDqIeLO052YhsxieX1hbwY=; b=mVj/KXD6+x5DjKIOvhtNFn54erZNPu7nXJAC2m7JjHAalFJEW39z59M/B3cZ3FHNgYVhju hSCEmbgRAMCG3KFpQpSQqfn1byX5vyBo6AmT/sEHs0ecnJKCiHnMdn8BaDgQ1oDShglhfj gfCyZjkieGJ97D+XAR16jZv3f/mH7ud1JRpmtoc5kImwZ7hRQSYAcpjDEiw96s44U2+iY3 JKGX2BGE0r+NVJBLEFIyHuXKOqtlll4sCQezmxc7/66YyexPHMiXVqMM3qgrWAxpJXGOv2 y2J0KQE215b5/2C1hqGeWy32CoeSNqY3DVmrjcU5qbEnbmj1qt+Wxp5S07cZCg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626977366; a=rsa-sha256; cv=none; b=i5gE2f890wvPrhAjNoPgnjIO2hBkIGmCPpazyxU1wM3X48/Q6jHMsFUGRjikWpIKEl9knw Y7NA9vJ1Adfgkh06QajOhOpCNWaI7HjUPhkxtkcuEWXqDTYn5gDy7EvgfSsLAkkoG0zQWR 6tW5dRSHil86nflDbJgrJjEzDBx8gDBTAlNV067gUHPuCEiOAvHxU1aBu/EjpzeAasPCnD tBS/Rs0t3FUV5q2eWM3465F5Rxl4oyuooLSElJgP0dK1m/zVPDjbs/yBR8jA4HPq6zx3Ep UEx3cw7hE24/+JeixhbzgsRIz1+RqNrs4ZQfRdkMV/bNrRdqgyqwCgJvEiDSKA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=ddkVkEvT; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=ddkVkEvT; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 700E919805 X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: iCl+GgHLKUyw > Maybe you can use the first repo as the source, and use the second as > > an input, then have a phase to copy the files in place? > > You can do something like this in the inputs: > > (inputs > > `(("second-repo" ,(origin > > (method url-fetch) > > (uri ...) > > ...)))) > > and in a phase you could do something like > > (with-directory-excursion "some-place" > > (invoke "tar" "xf" (assoc-ref inputs "second-repo"))) > > (or copy if it's not a tar) > > HTH! Thanks Julien! This is a good way to save myself from full package definition. I now see t= hat other packages define multiple sources in similar way as now I know wha= t to look for. Though my original question was more about the way the other package manage= rs define sources e.g. PKGBUILD. There the sources are in one "list". But in the end both definitions are equivalent and they alsoprovide the sum= s (if not skipped ;-) source=3D(https://archive.mozilla.org/pub/firefox/releases/$pkgver/source/f= irefox-$pkgver.source.tar.xz $pkgname.desktop "git+https://gitlab.com/${pkgname}-community/browser/common.git#tag= =3D${_common_tag}" "git+https://gitlab.com/${pkgname}-community/settings.git#tag=3D${_= settings_tag}") source_aarch64=3D("${pkgver}-${pkgrel}_build-arm-libopus.patch::https://raw= .githubusercontent.com/archlinuxarm/PKGBUILDs/master/extra/firefox/build-ar= m-libopus.patch") sha256sums=3D('43a943e7d7660c6d7f5b41c95b344b7fd6a4a88ad0bb45dbd844b372ea60= d58b' '0b28ba4cc2538b7756cb38945230af52e8c4659b2006262da6f3352345a8be= d2' 'SKIP' 'SKIP') sha256sums_aarch64=3D('2d4d91f7e35d0860225084e37ec320ca6cae669f6c9c8fe7735c= dbd542e3a7c9')