From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id e0J3EGrdRWCoVgAA0tVLHw (envelope-from ) for ; Mon, 08 Mar 2021 08:16:42 +0000 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id CiW/C2rdRWDqBgAAbx9fmQ (envelope-from ) for ; Mon, 08 Mar 2021 08:16:42 +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 aspmx2.migadu.com (Postfix) with ESMTPS id 31B7F8BD7 for ; Mon, 8 Mar 2021 09:16:41 +0100 (CET) Received: from localhost ([::1]:42990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJB4C-0000jl-6C for larch@yhetil.org; Mon, 08 Mar 2021 03:16:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39084) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJB43-0000jb-8s for help-guix@gnu.org; Mon, 08 Mar 2021 03:16:31 -0500 Received: from out0.migadu.com ([2001:41d0:2:267::]:54243) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJB3z-00044k-TP for help-guix@gnu.org; Mon, 08 Mar 2021 03:16:31 -0500 To: Julien Lepiller , help-guix@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1615191383; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=nrt8TBnKwANyAFVUmHmo6Sa+RbXqt1Pi6kIPck099mw=; b=aOOCiNMWeQ5CkB+BclMjJeuk3sZ/XEE3CKbDRVBJVkwJDQZ+yZx4o/hM6twSwyJHS1dZsS nr3KQdOxY4QgzXsic++NBK5f+Hgmw42SjAF8sYtV5Ft/O/ZQrzSW9uKXOHalkYhyID6vlI FYLV9nCVKQq3NsnAOcQGYG67PIMiidtYcEiTqlwvt37p88eAi+F09GBSIliJggldvXN+c7 cap6QuCDN0E/zAaDP8uUbT9ogLYLheXUlmHtfKVgYiZIvXG0NizAo/bHt+2pLIjP9aY2NK CQA+mFnuEdh2fJdB9xAeGPYLVIPZtre1eBZsuVbYXga0TtvIj9g0peBDEhXMvw== References: <21a857a8-18aa-2102-04ab-561d5de68b7b@raghavgururajan.name> 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: Mon, 8 Mar 2021 03:16:20 -0500 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="iqbxfF1pBY3QDMDJqs3qmxoVoWv7Tan8k" X-Migadu-Auth-User: rg@raghavgururajan.name Received-SPF: pass client-ip=2001:41d0:2:267::; envelope-from=rg@raghavgururajan.name; helo=out0.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, 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=1615191401; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=nrt8TBnKwANyAFVUmHmo6Sa+RbXqt1Pi6kIPck099mw=; b=PB7GyKhytPt+Dr3R87W/IiuoO3ABSwEq9K/MS2h2NIkrDHOAFzo6rDtlIYGYduccebbakJ o5stFIs+sAgptXJ6HCToei29AnKRDRTnic0ONt0Z5DGzFFPNnIzqKYSVnZcsE5epHHfmD1 nf4GDrgf7HfE+onK8yCDz5qpLGdTCyuUCW8gk9nNpngYEegjuQJ/Fe0THH59cCKzm+pEcW w2rejFEXXYmv53Dy4e3sKkGWjs03bA6tAJlruleSfaMPYP2/3p0sNhFmFTPrD20P0WypC0 fHywLW6ry1ZJatT4CSRnR+fjRtENUg9CJny8157BabDkmnCGUT5uRUSR/im7Jg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615191401; a=rsa-sha256; cv=none; b=mLEt69tw5HBqraniDb523xMNMUe4yhf5j7ChVAVJ2mFjLNy6iADqax0psAjZUhYiLas/Ef TCzmfor5njJZPURA6ZGdqldIjFpoYWJu3qlkgKIlcuYXzr/ZyysUL7YDZWbfZ278ihSQdw Njff4oywVorjobVo2NpAj9xNaztsEwS4YT2Y2vAO1tUesAvgkJ5sh8d0X8pquMuPhDzX87 BpYdGDEU7ubCBR7dtT9ys64FIbtqBoCwJ/meWiOdIIsLaXFLZ7JWFUmhwOvAQFUIOjC4rj wm2cdtiyNNaP2wsRY5qWAcerjIbNcfJ09fYNr36nrwvdM3/CL63eeMJwNTSkrw== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=pass header.d=raghavgururajan.name header.s=key1 header.b=aOOCiNMW; dmarc=pass (policy=quarantine) header.from=raghavgururajan.name; spf=pass (aspmx2.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: aspmx2.migadu.com; dkim=pass header.d=raghavgururajan.name header.s=key1 header.b=aOOCiNMW; dmarc=pass (policy=quarantine) header.from=raghavgururajan.name; spf=pass (aspmx2.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: 31B7F8BD7 X-Spam-Score: -5.18 X-Migadu-Scanner: scn1.migadu.com X-TUID: zUyGBhXFlPAP This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --iqbxfF1pBY3QDMDJqs3qmxoVoWv7Tan8k Content-Type: multipart/mixed; boundary="sZKSN26a1GsbRed160mq9b9zhGuU8WGkt"; protected-headers="v1" From: Raghav Gururajan To: Julien Lepiller , help-guix@gnu.org Message-ID: Subject: Re: Custom 'install phase References: <21a857a8-18aa-2102-04ab-561d5de68b7b@raghavgururajan.name> In-Reply-To: --sZKSN26a1GsbRed160mq9b9zhGuU8WGkt Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hi Julien! > I think you need to remove the apply, but keep one level of parenthesis= ,=20 > like so: >=20 > ((assoc-ref =E2=80=A6) args =E2=80=A6) >=20 > Apply takes the last arguments, which must be a list and appends all it= s=20 > elements to the invocation. Like (apply foo '(1 2 3 4)) is tge same as = > (foo 1 2 3 4). Here you're probably confused because of the assoc-ref i= s=20 > not a procodure, but it's fine: it returns a procedure, so guile can=20 > execute it and pass arguments to it the normal way. So I tried the following: ``` (replace 'install (lambda _ (for-each (lambda (solution) (with-directory-excursion solution ((assoc-ref copy:%standard-phases 'insta= ll) #:install-plan '(("src" (string-append=20 "include/" solution) #:include-regexp ("\\.h$")))))= ) (list "qtlockedfile" "qtpropertybrowser" "qtservice" "qtsingleapplication" "qtsoap")) #t)) ``` I get "In procedure string-append: Wrong type (expecting string): #f",=20 with and without replacing `(string-append "include/" solution)` with=20 `"include"`. Regards, RG. --sZKSN26a1GsbRed160mq9b9zhGuU8WGkt-- --iqbxfF1pBY3QDMDJqs3qmxoVoWv7Tan8k Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYEXdVAUDAAAAAAAKCRBfWBZkf4vlURXl AQC/poiWHLPyE+PLK47kIB75L63MGFKUmhJGld4NA+0KZQD/WiK6Ts+uHmwxb+dslSQi/53T3UNf nMuBwQMhk1UzEQo= =08FA -----END PGP SIGNATURE----- --iqbxfF1pBY3QDMDJqs3qmxoVoWv7Tan8k--