From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MMVvDlcuR2AuDgAA0tVLHw (envelope-from ) for ; Tue, 09 Mar 2021 08:14:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id oIxBClcuR2D1NgAA1q6Kng (envelope-from ) for ; Tue, 09 Mar 2021 08:14:15 +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 F3F4D27411 for ; Tue, 9 Mar 2021 09:14:14 +0100 (CET) Received: from localhost ([::1]:45062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJXVO-0003MQ-51 for larch@yhetil.org; Tue, 09 Mar 2021 03:14:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJXV9-0003M7-Ao for help-guix@gnu.org; Tue, 09 Mar 2021 03:13:59 -0500 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21171) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJXV7-0001HF-Fq for help-guix@gnu.org; Tue, 09 Mar 2021 03:13:59 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1615277627; cv=none; d=zohomail.com; s=zohoarc; b=HMUvrvN1e7AesNvH1K26RL/O0bAM2tuGNGMvQQclFp1NfRjUSRHCevWZU7xIyxKEYuxpNW6nYVxRFKyj7E7Odt1OfwGNUKE7xkW4JsmmdwIvnPCe2hvBl+jufs+OkfmCV7/nT28FUclb1cmP6kOPk4G6WwrWPVHYCGpw/i0o3/4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1615277627; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=fv084cMaHUYfhu4rE1jcy49V2DMq9X3Gqu9WSqWbEwM=; b=DE/3g2EoM83rQGg9OsLChtzdEk80O8dOb0TLR3f5+/sZaj6dOTU+CCACArbMOycdqxhQKy4gnG27tehHZBdPyNSPKEQm5noNds0gPMAfZekpNThamp7Rhk1AwASp8ot6Rb174OmPRBjFYwwS1bGkdhZuJesqvQ8ynSfm5GWIZpU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1615277627; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=fv084cMaHUYfhu4rE1jcy49V2DMq9X3Gqu9WSqWbEwM=; b=bX3J49Rii7W3V2KODmxD/7eHelTg/+ODLzdEpUOc+9WQIxv6FAgQZUwhfnXGfrxW OyI6MF/6x8bDmdl+0G1khzs56CLht0U6NEKELIhVv06+p8PrHoiLRBgmEwnhggIHDoh DSWrIFTwCNAraB7+vMKtd3s4YA3L2Ihj0nXolO1g= Received: from localhost (p54ad4d77.dip0.t-ipconnect.de [84.173.77.119]) by mx.zohomail.com with SMTPS id 1615277623877122.55480395783593; Tue, 9 Mar 2021 00:13:43 -0800 (PST) References: <21a857a8-18aa-2102-04ab-561d5de68b7b@raghavgururajan.name> <87mtvero6m.fsf@elephly.net> <9b91a6e7-7dae-e416-5afe-6ae2508cc302@raghavgururajan.name> User-agent: mu4e 1.4.14; emacs 27.1 From: Ricardo Wurmus To: Raghav Gururajan Subject: Re: Custom 'install phase In-reply-to: <9b91a6e7-7dae-e416-5afe-6ae2508cc302@raghavgururajan.name> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Tue, 09 Mar 2021 09:13:40 +0100 Message-ID: <87h7lksq17.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.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_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=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: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.00 Authentication-Results: aspmx1.migadu.com; none X-Migadu-Queue-Id: F3F4D27411 X-Spam-Score: -4.00 X-Migadu-Scanner: scn1.migadu.com X-TUID: xGNaAK57viI2 Raghav Gururajan writes: > (replace 'install > (lambda _ > (for-each (lambda (solution) > (with-directory-excursion solution > ((assoc-ref copy:%standard-phases 'instal= l) > #:install-plan > (list ("src" (string-append > "include/" solution) > #:include-regexp '("\\.h$")))))) > (list > "qtlockedfile" > "qtpropertybrowser" > "qtservice" > "qtsingleapplication" > "qtsoap")))) [=E2=80=A6] > I get Wrong type to apply: "src" As Julien wrote this is expected as you have an expression that starts with a string: ("hello" whatever) This will try to apply the string "hello" to the argument =E2=80=9Cwhatever= =E2=80=9D. I don=E2=80=99t know how to apply a string to anything, and neither does Sche= me. I would go with quasiquotation: --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--- The expression following #:install-plan is quoted (so it=E2=80=99s inert da= ta), 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=99= t have to explicitly quote =E2=80=9C("\\.h$")=E2=80=9D. --=20 Ricardo