From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jack Hill Subject: Re: New build system: copy-build-system Date: Sun, 26 Jan 2020 23:14:44 -0500 (EST) Message-ID: References: <87sgk2dkuv.fsf@ambrevar.xyz> <71f1c314039928365360de9345cbd2170100e093.camel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:43066) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ivvnU-0000AV-K8 for guix-devel@gnu.org; Sun, 26 Jan 2020 23:14:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ivvnT-0006Sy-Ey for guix-devel@gnu.org; Sun, 26 Jan 2020 23:14:48 -0500 Received: from minsky.hcoop.net ([104.248.1.95]:39802) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ivvnT-0006S7-BD for guix-devel@gnu.org; Sun, 26 Jan 2020 23:14:47 -0500 In-Reply-To: <71f1c314039928365360de9345cbd2170100e093.camel@gmail.com> 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: Jesse Gibbons Cc: guix-devel@gnu.org On Sun, 26 Jan 2020, Jesse Gibbons wrote: > On Sun, 2020-01-26 at 21:27 +0100, Pierre Neidhardt wrote: >> Error verifying signature: Failed to execute gpg. >> 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!" :) >> >> 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! >> > That would be great! I agree that this would be great as well. In addition to tedium, trivial-build-system can make modifications to package definitions, which I consider a really cool guix feature and a win for software freedom, more tricky. See https://lists.gnu.org/archive/html/help-guix/2019-12/msg00139.html for an issue I had with it (sorry Marius, I haven't had time to play with switching the build system of matcha-theme, but it's still on my todo list :)). Best, Jack