From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: Re: New build system: copy-build-system Date: Mon, 27 Jan 2020 15:27:52 +0100 Message-ID: References: <87sgk2dkuv.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:34404) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iw5Mz-0005zi-Fy for guix-devel@gnu.org; Mon, 27 Jan 2020 09:28:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iw5My-0005WT-DZ for guix-devel@gnu.org; Mon, 27 Jan 2020 09:28:05 -0500 Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]:36464) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iw5My-0005W1-9R for guix-devel@gnu.org; Mon, 27 Jan 2020 09:28:04 -0500 Received: by mail-qk1-x735.google.com with SMTP id w25so4048895qki.3 for ; Mon, 27 Jan 2020 06:28:04 -0800 (PST) In-Reply-To: <87sgk2dkuv.fsf@ambrevar.xyz> 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+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: Pierre Neidhardt Cc: Guix Devel Hi Pierre, On Sun, 26 Jan 2020 at 21:27, Pierre Neidhardt 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 of /gnu/store/-name-version from susbtitutes Cheers, simon