From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 0NENFJb0gWPCuAAAbAwnHQ (envelope-from ) for ; Sat, 26 Nov 2022 12:12:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2BTSE5b0gWMcWwAAauVa8A (envelope-from ) for ; Sat, 26 Nov 2022 12:12:22 +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 00BDF7A07 for ; Sat, 26 Nov 2022 12:12:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyt61-000171-9j; Sat, 26 Nov 2022 06:11:45 -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 1oyt5x-000148-1M for guix-devel@gnu.org; Sat, 26 Nov 2022 06:11:41 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oyt5w-0008AH-4R; Sat, 26 Nov 2022 06:11:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=jIU8muj9HR49068ODZDJ8jv1iWPJ4w0FUvkzLHLG7S8=; b=hDQJ86qfefl2R/MuMnFt uWJRo28+YGOasjbhV3/6VFW48M2bs57yPJkxSEPLI1Wss8MUezzHtskAqKyoVXQfXpCKeXdOp7elW xH/+5KvGcO0BGQi5Mfo8hXEnQNrj1SYMQsulLqTR8VB4NHtONxSGs/UuZsRp9bpuJYqs7zCx6E3Q1 VAm+xqaCWDnJ0QQxFT5HqONzhikXhkrbdkjgd9jW6Y0Q+794RhoMbfslEW3VjhqWJDLLc0CxO/r4P 5BxctckVTwuR0uFPJZrRs9NhBuqFjQUz166AjDnEq3XjMD4wl134wB4lTKhQjmf93pen1PVwUo7Ao NSJNXbDNEPYVYg==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oyt5k-0003at-Dq; Sat, 26 Nov 2022 06:11:39 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: zimoun Cc: Guix Devel Subject: Re: how to customize mirror list used in custom channels? References: <86lenzctmv.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Sextidi 6 Frimaire an 231 de la =?utf-8?Q?R=C3=A9vol?= =?utf-8?Q?ution=2C?= jour de la =?utf-8?Q?M=C3=A2che?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 26 Nov 2022 12:11:27 +0100 In-Reply-To: <86lenzctmv.fsf@gmail.com> (zimoun's message of "Fri, 25 Nov 2022 09:42:32 +0100") Message-ID: <87zgce9di8.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=1669461142; 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=jIU8muj9HR49068ODZDJ8jv1iWPJ4w0FUvkzLHLG7S8=; b=QgN9f+8TtodOXd2bE7EltzhOJOkr00nuxfVh14nRM/YzbP4yaNxsZMkcoEktXbg4YpU2W3 XqRz1bxT8FTcvca4oHH2rB70eETqXGBTUbhET3TxIsPebK1oaWCJArzK9SvUkEbBZ8+ONh htG/aHNN0kS1oPDe4ABlBdT+jXHKxGb0N8QEWDCX3TUJRoh6rfTIfrvpZ/nie1bnpXDT+Q c0xZeNCTI9yNIRHBVuBuGyleV1MNioFJ0IcV+s0z7Sz2UG5covsrL7BRJ/BU4h08ZjFOzR rNT0Obdtr0rXMCgbS2Lb++P+fIR+PJkQilzONXhGuYR0Ll25mLXjiI11HbJo6w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669461142; a=rsa-sha256; cv=none; b=DlXQwo+MfuWWF6pw+t5XjQ+Coi0pxvLl+Oo4kBC4njtZjxFdVAYaXnsW8kXnfxMPre8f29 BXs8sAQVGKnsEqQoYBQjgKf948US1TwiGNcPnH7UpmZtFzEkue5tQ8uJfYkxyWqROKYSWw P2Jx2i69MtW9dWHsqXPMVpKcKfZAK7VRV2zDkmf5qHatnoFDRXx+/JNU96xx/BUUUTjjGu ihmYUM36xoRLaIkZQPCxYV2n2xJ+YG2wpuICguAmqC2j0e7nukOS1/NptmMqGElRA22ZCv NvMTnGGUfCIdQ3jisSiYlj8QglCzqn+4XddKrsMdmzRej8cqSZ1E03S8PzqqKQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=hDQJ86qf; dmarc=pass (policy=none) header.from=gnu.org; 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: -4.17 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=hDQJ86qf; dmarc=pass (policy=none) header.from=gnu.org; 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: 00BDF7A07 X-Spam-Score: -4.17 X-Migadu-Scanner: scn1.migadu.com X-TUID: AAn/BuTKfBbi Hi! :-) zimoun skribis: > In =E2=80=99(guix download)=E2=80=99 module, the list of mirrors are prov= ided by the > list =E2=80=99%mirrors=E2=80=99. So I would like to add mine, e.g., > > (cons > '(mine > "https://fast-server.org/sources/" > "hhtps://kikoo.io/path/to/something/") > %mirrors) > > and then in my package definition, > > (uri "mirror://mine/stuff.tar.gz") > > Somehow, I would like to replace the list %mirrors by an extended one. The easiest solution is to avoid mirror:// and pass a list of regular URLs: (origin (method url-fetch) (uri (list URL1 URL2 URL3)) (base32 =E2=80=A6)) See for example how =E2=80=98qtbase=E2=80=99 does it. 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 different = #:mirrors argument to =E2=80=98built-in-download=E2=80=99. Maybe =E2=80=98url-fetch= =E2=80=99 could have a #:mirrors parameter to simplify it. But really, the URL list should do the job most of the time. Ludo=E2=80=99.