unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: Pierre Neidhardt <mail@ambrevar.xyz>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: New build system: copy-build-system
Date: Mon, 27 Jan 2020 15:27:52 +0100	[thread overview]
Message-ID: <CAJ3okZ2q4XLvk3W9WTEr3_Wwtgh-9K2YEm0eM3jWQLNUBmLxjQ@mail.gmail.com> (raw)
In-Reply-To: <87sgk2dkuv.fsf@ambrevar.xyz>

Hi Pierre,

On Sun, 26 Jan 2020 at 21:27, Pierre Neidhardt <mail@ambrevar.xyz> wrote:

> Those packages end up being tedious to write because we need to rely on
> the trivial-build-system, also known as "the least trivial of them all!" :)

I agree!


> What about adding a "copy-build-system" which has one argument, say an
> `#:install-plan` that takes a list of source-destination pairs?

I agree that something is missing.


> This would drastically simplify the definition of the aforementioned
> packages, basically summing up dozens of boilerplate lines into an
> effectively trivial file mapping.

I agree too.


> If this sounds like a good idea, I'd be happy to send a patch!

Related to this idea, I would point to [1] a previous discussion about
"pure" data package distribution.

[1] https://lists.gnu.org/archive/html/guix-devel/2018-02/msg00183.html


For a concrete example, let consider the Debian package [2]
'astrometry-data-2mass-00' which is roughly 13.9GB of data. A big set
of index used by astronomer. The Debian package calls 'curl' under the
hood to fetch the data from the http://data.astrometry.net; see [3].

[2] https://packages.debian.org/fr/stretch/astrometry-data-2mass-00
[3] https://salsa.debian.org/debian-astro-team/astrometry-data-2mass/blob/master/debian/astrometry-data-2mass-00.postinst


Well, the questions are:
 - hash?
 - a copy on Berlin as substitute?

I am just taking the occasion to discussion the hypothetical
possibility to discuss if 'copy-build-system' could be way to
distribute such data set.

Other said, the 'copy-build-system' could:

 - fetch the data from an archive, such http://data.astrometry.net
 - fetch the resulting <hash> of /gnu/store/<hash>-name-version from susbtitutes


Cheers,
simon

  parent reply	other threads:[~2020-01-27 14:28 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-26 20:27 New build system: copy-build-system Pierre Neidhardt
2020-01-27  0:45 ` Jesse Gibbons
2020-01-27  4:14   ` Jack Hill
2020-01-27 14:27 ` zimoun [this message]
2020-01-27 14:44   ` Pierre Neidhardt
2020-01-27 15:03     ` zimoun
2020-01-27 15:18       ` Pierre Neidhardt
2020-01-27 15:36         ` zimoun
2020-01-27 15:51           ` Pierre Neidhardt
2020-01-27 16:17             ` zimoun
2020-01-27 18:18               ` Julien Lepiller
2020-01-27 16:45       ` How to deal with very large sources Ricardo Wurmus
2020-01-27 19:03 ` New build system: copy-build-system Ricardo Wurmus
2020-01-28 10:32   ` Ludovic Courtès
2020-01-28 13:39     ` Pierre Neidhardt
2020-01-28 23:04       ` Ludovic Courtès
2020-02-14 12:54         ` Pierre Neidhardt
2020-02-14 13:22           ` Julien Lepiller
2020-02-17  3:46           ` Jesse Gibbons
2020-02-17  7:56             ` Pierre Neidhardt
2020-02-17 16:52               ` Jesse Gibbons
2020-02-17 17:10                 ` Pierre Neidhardt
2020-02-19  1:33                   ` Alex Griffin
2020-02-19 14:01                     ` Pierre Neidhardt

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=CAJ3okZ2q4XLvk3W9WTEr3_Wwtgh-9K2YEm0eM3jWQLNUBmLxjQ@mail.gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=mail@ambrevar.xyz \
    /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).