From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SMa4Gv8oFmJxRAEAgWs5BA (envelope-from ) for ; Wed, 23 Feb 2022 13:30:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id aKudF/8oFmKVMQAAauVa8A (envelope-from ) for ; Wed, 23 Feb 2022 13:30:55 +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 DB9EA1B7DC for ; Wed, 23 Feb 2022 13:30:54 +0100 (CET) Received: from localhost ([::1]:43560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nMqnF-0006uh-Kg for larch@yhetil.org; Wed, 23 Feb 2022 07:30:53 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43866) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMqmw-0006uO-Ex for guix-devel@gnu.org; Wed, 23 Feb 2022 07:30:36 -0500 Received: from [2a02:1800:120:4::f00:13] (port=43882 helo=baptiste.telenet-ops.be) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nMqmu-0005De-64 for guix-devel@gnu.org; Wed, 23 Feb 2022 07:30:33 -0500 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by baptiste.telenet-ops.be with bizsmtp id ycWU2600d4UW6Th01cWVVu; Wed, 23 Feb 2022 13:30:29 +0100 Message-ID: Subject: Re: (Re-) Designing extractong-downaloder From: Maxime Devos To: Hartmut Goebel , guix-devel Date: Wed, 23 Feb 2022 13:30:24 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-E7lfsvhCMXKeBBtd5viz" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1645619429; bh=+mlfxRIXPgG9fYK90yEQmqssqFuy4rbBgvktTiLiOSA=; h=Subject:From:To:Date:In-Reply-To:References; b=APIvPKDPy/FtrlDhmpPIm4tJJ+iarenmMQxFEz77crG524pH1oKYnsaaY0fP4eUgE Uzr5S25WlT2Z9bgGhXw/NxdmsiANMr4WmZXaIXw0tSYoYgxnz4KCTDZX5oskOpjHle y0kazxPvHDPZHTIdeQW0CLPBuVnwgIFoINpCvwdhQwRgwuDJOuezpyAzYgTy1pl5I0 PfCSHlm6/ss2COfN3X5WlEndtS5R7bHiaqLtcRAWLkN9l1lMKKUWRL+yGzeaGJDwZd wFY0HsnWNoPOdZQBHCKnQWiZJ2xq/NEp7bbdsXgelJB2krFv3QqgTBSxjBEToDxFv7 UY5nBxMIJlR2w== X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a02:1800:120:4::f00:13 (failed) Received-SPF: pass client-ip=2a02:1800:120:4::f00:13; envelope-from=maximedevos@telenet.be; helo=baptiste.telenet-ops.be X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 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_LOW=-0.7, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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" 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=1645619455; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=+mlfxRIXPgG9fYK90yEQmqssqFuy4rbBgvktTiLiOSA=; b=YbIJN/FMAK8Eamu3IoiwPHg2F/hS1CJqVu+s5uod8W8CuLOmAM4HHSjBXNDdcEbUEJ6gwS OK5yzQNRh7AvqbfhmoQRhK9Tg0PeRM/uyp/ljV0vTTxCi+isMMpH66ZdiLK1OAvPxSvhdt Y9+AwvavCH1/rIRBA2m3AxW8CSvJVMcpKZaqekVqFrf6EXQb1bvj3Ic/h+pWCy/rCNnGiJ vs6CLUWtd3Qneer02MR+fACNF0hrJPNty3YnkAdN/NlZM/JtCjVNKiBMCTT9KxrrflE9Tr av1jVkESIY2sEJZOXleSPtUslx3cK7+on+sOdvQGA3aLroYJZDvFW+W6ouFQRA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645619455; a=rsa-sha256; cv=none; b=cAn3z6//npjMgdNrhcP0pLKG1EXs8MPS2O08TZUhgFEDrs+b0hwPY8hSGPnllMfc/o66hC ivfTVihypeG8B9rF0KSZKBbcV4gte2rKJ8pkux+3mNQbIEi9IgzOQsDCkGTr47nlTn//cr NsHuir5Z2S42uekCOkoAeoNU3NP5dptrPQyLHvpWDy2j+rTv8mX2tHsXdKZZGaIVLAGkZE YA0U3FqL7q16b0QhKMPlthilC/AMd5GiO22kOuAqksDjAeOzZxZK7sGs3Mq2iPWc4xQbV6 8OhKIqKp8knVgjZ/Ccwi+4KbmQq2rgoIetxw9YjeT3M0oEWqVko2twXqbQUEew== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=telenet.be header.s=r22 header.b=APIvPKDP; dmarc=pass (policy=none) header.from=telenet.be; 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: -12.23 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=telenet.be header.s=r22 header.b=APIvPKDP; dmarc=pass (policy=none) header.from=telenet.be; 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: DB9EA1B7DC X-Spam-Score: -12.23 X-Migadu-Scanner: scn0.migadu.com X-TUID: iu5AS7wguhjR --=-E7lfsvhCMXKeBBtd5viz Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hartmut Goebel schreef op wo 23-02-2022 om 09:57 [+0100]: > TL;DR: What do you think about the idea of an =E2=80=9Eextracting dowload= er=E2=80=9C? >=20 > I'm about pick up work on =E2=80=9Eextracting downloader=E2=80=9C and the= rebar build=20 > system (for erlang), see for a first= =20 > try, In the aforementioned issue some points came up regarding the basic= =20 > design of the patch. Thus before starting to write code, I'd like to=20 > agree on a basic design. Could the =E2=80=98extracting=E2=80=99 downloader be built on top of the re= gular downloader? More concretely: (package (name "some-package-from-hex") (source (extract-from-hex (origin (method "http://some-url-pointing-to-a-tarball-wrapped-in-a-tarball") (sha256 (base32 ))))) (build-system ...)) Here, 'extract-from-hex' would turn a file-like object into a , which lowers to some derivation extracting the tarball from the tarball. (guix upstream) might need to be modified to support . Also, is there some fundamental reason that hex.pm wraps tars inside tars and only provides the wrapped tars, or could hex.pm be convinced to also serve the underlying tars directly? A benefit of delegating the actual downloading to url-fetch, is that (guix scripts perform-download) would be used, so connections could be cached. Greetings, Maxime. --=-E7lfsvhCMXKeBBtd5viz Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYhYo4BccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7ukrAP9R8aBElllhTfUEImyAr8kqkyeh 6m5MhAth7tCQP0bKXQD/VuWfrE7UcMMUp7MgCW8sDWHRr1p2yrkaSW4eoTmc0gs= =nMMr -----END PGP SIGNATURE----- --=-E7lfsvhCMXKeBBtd5viz--