From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CDQ6DCMxR2BCHQAA0tVLHw (envelope-from ) for ; Tue, 09 Mar 2021 08:26:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id kNXnByMxR2CqFAAAbx9fmQ (envelope-from ) for ; Tue, 09 Mar 2021 08:26:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 686061CF64 for ; Tue, 9 Mar 2021 09:26:10 +0100 (CET) Received: from localhost ([::1]:54344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJXgv-0007gc-43 for larch@yhetil.org; Tue, 09 Mar 2021 03:26:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJXgn-0007gV-4o for help-guix@gnu.org; Tue, 09 Mar 2021 03:26:01 -0500 Received: from out2.migadu.com ([188.165.223.204]:37670) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJXgk-0000GK-Nq for help-guix@gnu.org; Tue, 09 Mar 2021 03:26:00 -0500 To: Ricardo Wurmus DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1615278353; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=g7BahgOxgcHrYLc00cz3q5zsWh2J6YmP7HkgmfYTm18=; b=ScgLMkNp7WBZK7O5JwBNBQ7fSlD7B6V3/lNqFF0rF0ug6KKdJVl21v9zWVVFs6S1tTqFQt VkSAqJCc4paWMkS6VZiVpYFjAXQ9Nn5i4qdn84HqndQjwJt2u28AIXQ5KYQ6tYq4d9dmfh gG5YxEJj97ObfitzCJT5/PINMAlQeYFsvmVEqPJ1fMbFeUfm4huAvUa9TrVndRPZZTUIzq x1waITkmgn1pmfuIkSCR2RGSHy7I0KNRivnf5HDncdfoSeLRhd0sprwiqK7AwakjE5KC3b YqhYI0dstBQiCwKBTzKU8Lq/HoLl8hHfVJjAvetnay+ZWPyw0Pj3+mKWOSwl2w== Cc: Julien Lepiller , help-guix@gnu.org References: <21a857a8-18aa-2102-04ab-561d5de68b7b@raghavgururajan.name> <87mtvero6m.fsf@elephly.net> <9b91a6e7-7dae-e416-5afe-6ae2508cc302@raghavgururajan.name> <87h7lksq17.fsf@elephly.net> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Raghav Gururajan Subject: Re: Custom 'install phase Message-ID: Date: Tue, 9 Mar 2021 03:25:51 -0500 MIME-Version: 1.0 In-Reply-To: <87h7lksq17.fsf@elephly.net> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="OGZHZWTLU66uVvd2VQNLbzav7g77gOQyZ" X-Migadu-Auth-User: rg@raghavgururajan.name Received-SPF: pass client-ip=188.165.223.204; envelope-from=rg@raghavgururajan.name; helo=out2.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615278370; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=g7BahgOxgcHrYLc00cz3q5zsWh2J6YmP7HkgmfYTm18=; b=K1pRpFS6cR3fGzABVSD6ttzDXlZp7NNuOUVKAO/JbCjLSQtZ3soyN0/TI1Q1zf9NKg1stt a+OMC3aA6Ogz4VNNKCRBTI5lMsQNrMSXeWtyhZZAP7sSeiL8lfcIDQWmMARbhv0dfA/f2F R1uRg4Ynry7m+YAfZjgetsqUa2WaeHj17XkNaVYzADfEJlosRHJFm/gpdZC2jcOJngAZZ5 +a5DIC2TjdeeX4NGwGf6en8EoHIn9a4wcZOMe3YWljjf4VKbRo2PEUxpS278B0a+ZMML0Z Bfu58T9qH6dplUJiF9ZwUDP4uj/OalABD7H6MQ220Vf96pY+aFpL117w3znZzg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615278370; a=rsa-sha256; cv=none; b=MoFj/Lbw598/sX0M+fMXlEP0oRhWd33SpDHSPFNcLmGeAKhzJ37LfPYZXUQE8fOKo4EHVZ Eccq+1Lm9tJ0wwHZ2MxQOUIXGGJ22siGAS5U/h14chYO/Pw48mYKQRIEuheTizIbbEYVjN M1z437Qv5qyOsbclJlj3ZcNbZuAYutsmOt/H+PVCqHlISFsx5A/cmVn2nsygxbeb81XKzA JQJ7yRjMWfVAYzzabHG9G+fqqefEzhsIVV7nkxXum8hO348u39HuAiUSbyyl3/IjElogI9 eDmoCTB997NwSJaERF10cEnEKteI1LJ9ta4gPvxQV/g3WdEE59gqWR3LBE6M6Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=raghavgururajan.name header.s=key1 header.b=ScgLMkNp; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -5.18 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=raghavgururajan.name header.s=key1 header.b=ScgLMkNp; dmarc=pass (policy=quarantine) header.from=raghavgururajan.name; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 686061CF64 X-Spam-Score: -5.18 X-Migadu-Scanner: scn0.migadu.com X-TUID: jxFCZf/kg5YU This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --OGZHZWTLU66uVvd2VQNLbzav7g77gOQyZ Content-Type: multipart/mixed; boundary="PcZPaS0WukWuxAJrTXFGz9ETcSuu1YPFe"; protected-headers="v1" From: Raghav Gururajan To: Ricardo Wurmus Cc: Julien Lepiller , help-guix@gnu.org Message-ID: Subject: Re: Custom 'install phase References: <21a857a8-18aa-2102-04ab-561d5de68b7b@raghavgururajan.name> <87mtvero6m.fsf@elephly.net> <9b91a6e7-7dae-e416-5afe-6ae2508cc302@raghavgururajan.name> <87h7lksq17.fsf@elephly.net> In-Reply-To: <87h7lksq17.fsf@elephly.net> --PcZPaS0WukWuxAJrTXFGz9ETcSuu1YPFe Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hi Ricardo! > As Julien wrote this is expected as you have an expression that starts > with a string: >=20 > ("hello" whatever) >=20 > This will try to apply the string "hello" to the argument =E2=80=9Cwhat= ever=E2=80=9D. I > don=E2=80=99t know how to apply a string to anything, and neither does = Scheme. >=20 > I would go with quasiquotation: >=20 > --8<---------------cut here---------------start------------->8--- > (with-directory-excursion solution > ((assoc-ref copy:%standard-phases 'install) > #:install-plan > `(("src" ,(string-append "include/" solution) > #:include-regexp ("\\.h$"))))) > --8<---------------cut here---------------end--------------->8--- >=20 > The expression following #:install-plan is quoted (so it=E2=80=99s iner= t data), > and we temporarily unquote to evaluate the =E2=80=9Cstring-append=E2=80= =9D expression; > then we go straight back to =E2=80=9Cdata mode=E2=80=9D, so we don=E2=80= =99t have to explicitly > quote =E2=80=9C("\\.h$")=E2=80=9D. It worked. Thanks so much! Regards, RG. --PcZPaS0WukWuxAJrTXFGz9ETcSuu1YPFe-- --OGZHZWTLU66uVvd2VQNLbzav7g77gOQyZ Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYEcxDwUDAAAAAAAKCRBfWBZkf4vlUdi2 AP9Lb1S8HBavQBKRTNiQHo7nlCr3fxj1QjnFLauDzY/LdgEAvVvAx/kouAxx8OXNmjBlKmpVq2ds D1dZIvVw6N5nugc= =85P8 -----END PGP SIGNATURE----- --OGZHZWTLU66uVvd2VQNLbzav7g77gOQyZ--