From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IEmuM1+vhGMePgEAbAwnHQ (envelope-from ) for ; Mon, 28 Nov 2022 13:53:51 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iDDYMl+vhGPSsgAAG6o9tA (envelope-from ) for ; Mon, 28 Nov 2022 13:53:51 +0100 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 8EB5411E73 for ; Mon, 28 Nov 2022 13:53:51 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ozddI-0000dF-FY; Mon, 28 Nov 2022 07:53:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozddD-0000cb-Ij for guix-devel@gnu.org; Mon, 28 Nov 2022 07:53:08 -0500 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ozddA-000641-Lj; Mon, 28 Nov 2022 07:53:06 -0500 Received: by mail-wr1-x430.google.com with SMTP id v1so16608289wrt.11; Mon, 28 Nov 2022 04:53:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=7xH7FAfga7ygc7A2fxF0tuJ45ElSvxCNJRpqqps6P9Y=; b=kkIdHN3hY47h3JYAdSrJWbkx2D0YkCIoW8BX/hbskvK53Y1I7J0GnFIZz4XcND3BFI Ep87+NixKOdH0Cp/YuX+SHcv9UkRz0Hly/gogcY03ETZAu1AR0cqeVsTuhA1gZ1Y8O0r hiX7rBHSbxoCnXVEgH1EGaUZzR0N9WGvijpNEa5pQnE13NlRvUbfpUgg0IyV7fQugpye uhcmHkZafIhxu28lDWbU21bNeQ4WQ4U+RlWWfkKVi9IMF1+++XRO1+sxzXcwB1A+OBFn 2qIl4/dZtPvj9OpD2KfcocPXeeCA/f2iSTf2tJCAc4U9lP0V9oco6AvGJTImDinwgPaP vEEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7xH7FAfga7ygc7A2fxF0tuJ45ElSvxCNJRpqqps6P9Y=; b=c8gCacZspA9qhlZLEzyMhIgWR+k0WCiouuj/qvrTyW81reXOfw7TpISS8eilEK6XgK qq7NDwdZe/Ez7WmMC/aTc3i9T8hmwerLP4R8l+pMewEUHeoK+jAzjyD2OW5p4EFjvoFt b74MgHOwaQ4bTmllmWBpaefv0jJ49cMbNGuzFercK+ggfss6zfVlHg3B6hxgAmczBJkn 1kHUOXVtcG69YO1AEwgMp6E9FWjgJ/uw3D1DFeXSm9/zHP7WuaFWzL/03gAENf/0kUXS OdnNoAkT6ARh5gyTNSm+HF/HLYVWo6Oat05RYfiEpl8GkdET7h0N+uXGGpAyizXD8I9z EnjA== X-Gm-Message-State: ANoB5pnJCdS3uhVTnz5ZizLAyd6xKxMS/De1ie/iLqxoNXSgzZ8WXeJH tgU+jteJYA9CT2ChjEJ3nQwAadGy1l0= X-Google-Smtp-Source: AA0mqf4q7N4F2WJt8juTS4+DA+1w64qN1Czyr6FsbEoJ8XpfGnAITrROBa+2lPIRswx0dCPAvX9C4g== X-Received: by 2002:a5d:5045:0:b0:242:199a:e067 with SMTP id h5-20020a5d5045000000b00242199ae067mr2067202wrt.148.1669639980361; Mon, 28 Nov 2022 04:53:00 -0800 (PST) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id he6-20020a05600c540600b003cf4ec90938sm14567624wmb.21.2022.11.28.04.52.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 04:53:00 -0800 (PST) From: zimoun To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: Guix Devel Subject: Re: how to customize mirror list used in custom channels? In-Reply-To: <87zgcbe4lf.fsf@gnu.org> References: <86lenzctmv.fsf@gmail.com> <87zgce9di8.fsf@gnu.org> <86ilj01tv2.fsf@gmail.com> <87zgcbe4lf.fsf@gnu.org> Date: Mon, 28 Nov 2022 13:52:34 +0100 Message-ID: <87wn7fs0kt.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x430.google.com 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_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list 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+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669640031; h=from:from:sender:sender: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=7xH7FAfga7ygc7A2fxF0tuJ45ElSvxCNJRpqqps6P9Y=; b=XM7oKszGjTsDwjXsBX1DMV7JgUV1INYQzxakbeVSNSdc+LD0/DT74vj5nMiUDbEgyb+mil OPhnr7k1v1a5kxy9+MTREsewabCqqagupEOXHF+1A4AIzjuLVCi3xOo1mw/fIYmerRBKYl nUoeJhvJNXu167nLfI6lFVVfflLhhqvO25AuhKlN3WVq0+mbkZsYgCqhBajDwv0QnEQpox 6K3Nhls2aSG/krwCUr/A0Xf8OTrV5T3MJOuE6kF1WCL4uQTWs1XMeu7iwv2pkvu1yZHu2T dQ7a9uvria3rGObF0eS/VQoSZjwBggyr8Zp+ZYjNP3OyWAoen7hr1oUQ3eKm7Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669640031; a=rsa-sha256; cv=none; b=G99Rc03Raz68UP4Nyb6UKidf51XsZhyvrVZK/vczZ7n3d68efzTnZpWQKaexPpYhn4sRFP mF+A7SBmTfxal3MPFyZmySAvcedC25/ylAJvA71znR6WcMNI1YMX9MQXQg3kfey+5mLo7i ig/bDr9I3E7rOZYVp0xkApQZbQTy7dP87GzvJZjiBfMTJBygLReNbjR9189mjtyUdtj0T8 7wZbE26HJv9LeGXugJVlXNdF8xXeZPlhM43lwd/bht8P5/YPRqmxe0MYad+Xf0N+myULBm EWct2i6+8ssNYxjkrhIvp0uqLCQykwwMprGDnbDRxKjJk4UFiyia7U9+EwGLNQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=kkIdHN3h; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.46 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=kkIdHN3h; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 8EB5411E73 X-Spam-Score: -1.46 X-Migadu-Scanner: scn1.migadu.com X-TUID: frm/L2/lUJqc Hi, On Mon, 28 Nov 2022 at 11:49, Ludovic Court=C3=A8s wrote: > Hi, > > zimoun skribis: > >> On Sat, 26 Nov 2022 at 12:11, Ludovic Court=C3=A8s wrote: > > [...] > >>> Now, if you really want to extend the set of things recognized, you >>> could write variant of =E2=80=98url-fetch=E2=80=99 that passes a differ= ent #:mirrors >>> argument to =E2=80=98built-in-download=E2=80=99. Maybe =E2=80=98url-fe= tch=E2=80=99 could have a >>> #:mirrors parameter to simplify it. >> >> Why is it not possible to extend =E2=80=99%mirrors? > > What I described above is one way to extend it, just not via =E2=80=98set= !=E2=80=99. Just to be sure, one way is this extension mechanism, --8<---------------cut here---------------start------------->8--- (define (qt-urls component version) "Return a list of URLs for VERSION of the Qt5 COMPONENT." ;; We can't use a mirror:// scheme because these URLs are not exact copie= s: ;; the layout differs between them. (list (string-append "https://download.qt.io/official_releases/qt/" (version-major+minor version) "/" version "/submodules/" component "-everywhere-opensource-src= -" version ".tar.xz") (string-append "https://download.qt.io/official_releases/qt/" (version-major+minor version) "/" version "/submodules/" component "-everywhere-src-" version ".tar.xz") (string-append "https://download.qt.io/archive/qt/" (version-major+minor version) "/" version "/submodules/" component "-everywhere-opensource-src= -" version ".tar.xz") (let ((directory (string-append "qt5" (string-drop component 2)))) (string-append "http://sources.buildroot.net/" directory "/" component "-everywhere-opensource-src-" version ".= tar.xz")) (string-append "https://distfiles.macports.org/qt5/" component "-everywhere-opensource-src-" version ".ta= r.xz"))) --8<---------------cut here---------------end--------------->8--- then, (uri (qt-urls name version)) Right? Well, for what it is worth, it does not appear to me consistent with the rest. We could do the same for everything, and remove "mirror://" after all. :-) The other one way is to implement a variant of url-fetch method. What would be the interface? Where the extended list of mirrors would be provided? Cheers, simon