From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: New build system: copy-build-system Date: Sun, 26 Jan 2020 21:27:20 +0100 Message-ID: <87sgk2dkuv.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:41407) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ivoVC-0005UJ-EW for guix-devel@gnu.org; Sun, 26 Jan 2020 15:27:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ivoVA-0004tj-Ue for guix-devel@gnu.org; Sun, 26 Jan 2020 15:27:25 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:51173) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ivoVA-0004rI-Ob for guix-devel@gnu.org; Sun, 26 Jan 2020 15:27:24 -0500 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: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi! We've got quite a few packages that simply copy some files from their source to the output. Examples include `debian-archive-keyring`, `0ad-data`, `gcide`, or `rofi-pass`. 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!"=C2= =A0:) What about adding a "copy-build-system" which has one argument, say an `#:install-plan` that takes a list of source-destination pairs? This would drastically simplify the definition of the aforementioned packages, basically summing up dozens of boilerplate lines into an effectively trivial file mapping. If this sounds like a good idea, I'd be happy to send a patch! Cheers! =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl4t9igACgkQm9z0l6S7 zH9SJgf+N0w1z6j2V2VlKvu70et/OSzzGEmk11SSuWjnVeh5VsJv0UjYRL/f0IyB 3AHy3U67OrMnI1zUySafBGCWvOPOqscQKnkayK1HQwPk8iGtnw8yM96c7V7GEuVN kLKN3B5m0VWyQo4Yk2UYmWoJk8fgldiKeqIrkYFLPqLLjKG/r/zJfQF804zQZjFQ mV0hfg44hYedgOFLwM3RxrUFSQwZA+AAThW1sJ8VLJVdE8k18Q3pVxDEh1D6jxvA XHa3oLGmxOW8zGiL9EZxAI60+3wuU/I1JkXlGzLmoK+NQUGN/tyYQhsNcEaSYLSX LftXHYYyoGkZGzNQmlw8sdI9c672NQ== =91qb -----END PGP SIGNATURE----- --=-=-=--