unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxime Devos <maximedevos@telenet.be>
To: Hartmut Goebel <h.goebel@crazy-compilers.com>,
	guix-devel <guix-devel@gnu.org>
Subject: Re: (Re-) Designing extractong-downaloder
Date: Wed, 23 Feb 2022 13:30:24 +0100	[thread overview]
Message-ID: <fbd2da30dc298905ed039e28295768b504c9b9f0.camel@telenet.be> (raw)
In-Reply-To: <a0ea5c8b-53a4-f5a1-94db-cc68e76eb730@crazy-compilers.com>

[-- Attachment #1: Type: text/plain, Size: 1444 bytes --]

Hartmut Goebel schreef op wo 23-02-2022 om 09:57 [+0100]:
> TL;DR: What do you think about the idea of an „extracting dowloader“?
> 
> I'm about pick up work on „extracting downloader“ and the rebar build 
> system (for erlang), see <https://issues.guix.gnu.org/51061> for a first 
> try, In the aforementioned issue some points came up regarding the basic 
> design of the patch. Thus before starting to write code, I'd like to 
> agree on a basic design.

Could the ‘extracting’ downloader be built on top of the regular
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 <hash of the wrapper tarball>)))))
  (build-system ...))

Here, 'extract-from-hex' would turn a file-like object into a <extract-
from-hex>, which lowers to some derivation extracting the tarball from
the tarball.  (guix upstream) might need to be modified to support
<extract-from-hex>.

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.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

  parent reply	other threads:[~2022-02-23 12:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-23  8:57 (Re-) Designing extractong-downaloder Hartmut Goebel
2022-02-23 10:52 ` pukkamustard
2022-02-24  8:50   ` Hartmut Goebel
2022-02-23 12:30 ` Maxime Devos [this message]
2022-02-23 12:35   ` Maxime Devos
2022-02-24  8:56     ` Hartmut Goebel
     [not found] ` <beb0e29f-6066-d1b5-b560-22a3d0a98ad8@goebel-consult.de>
     [not found]   ` <87h77ly1ja.fsf@gmail.com>
2022-04-06 16:44     ` Designing importers (was: (Re-) Designing extracting-downloader) Hartmut Goebel
2022-04-10 20:33       ` Designing importers Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fbd2da30dc298905ed039e28295768b504c9b9f0.camel@telenet.be \
    --to=maximedevos@telenet.be \
    --cc=guix-devel@gnu.org \
    --cc=h.goebel@crazy-compilers.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).