From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: New build system: copy-build-system Date: Mon, 27 Jan 2020 16:18:15 +0100 Message-ID: <87k15dapxk.fsf@ambrevar.xyz> References: <87sgk2dkuv.fsf@ambrevar.xyz> <87pnf5arh1.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]:45276) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iw69c-0006ey-T7 for guix-devel@gnu.org; Mon, 27 Jan 2020 10:18:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iw69b-0004zw-CC for guix-devel@gnu.org; Mon, 27 Jan 2020 10:18:20 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:36745) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iw69b-0004uT-6P for guix-devel@gnu.org; Mon, 27 Jan 2020 10:18:19 -0500 In-Reply-To: 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: zimoun Cc: Guix Devel --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable zimoun writes: > You want something like that: > > --8<---------------cut here---------------start------------->8--- > (define-public debian-archive-keyring > (package > (name "debian-archive-keyring") > (version "2019.1") > (source ...) > (build-system copy-build-system) > (arguments > '(#:install-plan > (lambda* (#:key outputs #:allow-other-keys) > (let* ((out (assoc-ref outputs "out")) > (apt (string-append out "/etc/apt/trusted.gpg.d/")) > (key (string-append out "/share/keyrings/"))) > (install-file "keyrings/debian-archive-keyring.gpg" key) > (install-file "keyrings/debian-archive-removed-keys.gpg= " key) > (for-each (lambda (file) > (install-file file apt)) > (find-files "trusted.gpg" "\\.gpg$"))) > #t))))) > --8<---------------cut here---------------end--------------->8--- Actually we could simplify the install plan with something like =2D-8<---------------cut here---------------start------------->8--- #:install-plan (("source1" "target1") ("source-dir2/" "target-dir2" #:exclude ("foo"))) =2D-8<---------------cut here---------------end--------------->8--- Regarding the data fetching, if I understand your point I think it should be handled in a separate issue. Cheers! =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl4u/zcACgkQm9z0l6S7 zH8r6wgAh7MB1HCuuGz5+ejd6dv7BMdvdqlv/Tw1PjTsx5B+eJVOM9hf51N41Mlu awRSbTgpnEvWxplzLFRR1i1PrD+ZNsEI3Amuo7BBjY9m9EE24nAjwTmZotyJPSXA u6LTKHWWzoe1zHdRvTuNi1KC4Pp7bHmvM9qV8pQPEc10g3N4cUOh/OCArG20n4FB hdBVbfk80GiMNlHWfKvyNx6dYBxyRpfiGDMUAkU3yuUkPyadoxJKLV1DCYOKZvgO 8eLAAJIIBLZKYXZQwr3KKVhBV1srj/sw4q7JqXL27MaSC+hWY0uEtAMMzLTJ07Qp NI9UCLHmx9zskpYIkyJurjAX9IjXnw== =Lqip -----END PGP SIGNATURE----- --=-=-=--