From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id yqfoNdgb0l7tEgAA0tVLHw (envelope-from ) for ; Sat, 30 May 2020 08:39:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id +NkfMdgb0l7iCwAAB5/wlQ (envelope-from ) for ; Sat, 30 May 2020 08:39:52 +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 695C694042C for ; Sat, 30 May 2020 08:39:52 +0000 (UTC) Received: from localhost ([::1]:37554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jex1z-0007Cx-Bw for larch@yhetil.org; Sat, 30 May 2020 04:39:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44152) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jex1r-0007Cm-Pf for guix-devel@gnu.org; Sat, 30 May 2020 04:39:43 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:33128) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jex1q-0005s2-HF for guix-devel@gnu.org; Sat, 30 May 2020 04:39:43 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 49Yvxl6pG2z1rsX5 for ; Sat, 30 May 2020 10:39:39 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 49Yvxl6gn2z1qtwQ for ; Sat, 30 May 2020 10:39:39 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id h_vAUrCUHQ4P for ; Sat, 30 May 2020 10:39:38 +0200 (CEST) Received: from hermia.goebel-consult.de (ppp-188-174-51-50.dynamic.mnet-online.de [188.174.51.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Sat, 30 May 2020 10:39:38 +0200 (CEST) Received: from thisbe.goebel-consult.de (hermia.goebel-consult.de [192.168.110.7]) by hermia.goebel-consult.de (Postfix) with ESMTP id C98EE60080 for ; Sat, 30 May 2020 10:40:05 +0200 (CEST) To: Guix-devel From: Hartmut Goebel Subject: Downloader for "wrapped" tarbar? Organization: crazy-compilers.com Message-ID: Date: Sat, 30 May 2020 10:39:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US Received-SPF: none client-ip=212.18.0.10; envelope-from=h.goebel@crazy-compilers.com; helo=mail-out.m-online.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/30 04:39:40 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -0.01 X-TUID: KKZJNxwnaBR1 Hi, was just written in another mail, I'm currently working on a erlang/rebar build system. This includes an importer from hex.pm, a package repository for elixir and erlang packages. (Since this is build into rebar3 I assume it what PyPI is for Python and CPAN for Perl.) At hex.pm, packages are provided in a tarfile [1] wrapping the source tar-file: -rw-r--r-- 0/0               1 2017-06-14 21:57 VERSION -rw-r--r-- 0/0              64 2017-06-14 21:57 CHECKSUM -rw-r--r-- 0/0             532 2017-06-14 21:57 metadata.config -rw-r--r-- 0/0            4744 2017-06-14 21:57 contents.tar.gz IMHO it does not make sense to keep this wrapping tar-file in the store. So my idea is to create a "hexpm-fetch" method, which downloads the tar-file and only stores the "content.tar.gz" in the store (using a proper name, of course). How can this be done? [1] https://github.com/hexpm/specifications/blob/master/package_tarball.md -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |