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 kYzMGPTtRWCBbAAA0tVLHw (envelope-from ) for ; Mon, 08 Mar 2021 09:27:16 +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 OLZwFPTtRWAtdgAA1q6Kng (envelope-from ) for ; Mon, 08 Mar 2021 09:27:16 +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 2AA6924E96 for ; Mon, 8 Mar 2021 10:27:16 +0100 (CET) Received: from localhost ([::1]:34378 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJCAU-0005Mk-Uv for larch@yhetil.org; Mon, 08 Mar 2021 04:27:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53492) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJCA9-0005ML-Qe for help-guix@gnu.org; Mon, 08 Mar 2021 04:26:57 -0500 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21119) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJCA7-0002Jb-O0 for help-guix@gnu.org; Mon, 08 Mar 2021 04:26:53 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1615195607; cv=none; d=zohomail.com; s=zohoarc; b=aC24kbPHcSPglAut4GnDS89E/bYlJCMNczvhSshdcSjwDxhqOmzYXkM6SuZwP4A1wzC3XVkl0P07fsnxzOkSCC5JEGMQuUN9hJ6DYpGeoY/FZhPP4YWWIum6Hh3Kif6kIP7Qgb+fuHikVrjCJROWmpbj4d3hXgr6MwXD6ffRLCU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1615195607; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=/xz7rjlmnt3gcI123VA2kk7slhjixp2E5TBtiAmf0Ko=; b=VOBE6+X7loyNzZzcJ79W64r8huJqaX8+RMGxLoAQt4blxbwvqPfY+VqvUFDsoWP6hkZCOTZcCfjHhDAhRkVRD+dH9ihvBgg7/P+fwvE5H6RBTjJCUwDjAjxxASP1UAugr4fE8vicw2WU2k6KpvcoA4tw+/6wxfrzZhmmVPUMyaI= 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=1615195607; 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=/xz7rjlmnt3gcI123VA2kk7slhjixp2E5TBtiAmf0Ko=; b=DhSyKzNnXrCbO9aqv4/REYrzxwfuQzCbVoMDaz3mukU6HHflvOcqefvzbl5x24GE J1MYVUny5wlQ2MvTTAvFN68iFHe1XnaWIG1r2jJqA2VBhQ6WdNZ7JCwrCbXRlwuJfv6 2qxDrTJWBbGntawdnlj5W84OTyTh9QxRb+Hy1FGY= Received: from localhost (p54ad4d9e.dip0.t-ipconnect.de [84.173.77.158]) by mx.zohomail.com with SMTPS id 161519560449667.60570852397996; Mon, 8 Mar 2021 01:26:44 -0800 (PST) References: <21a857a8-18aa-2102-04ab-561d5de68b7b@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: 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: Mon, 08 Mar 2021 10:26:41 +0100 Message-ID: <87mtvero6m.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.01, RCVD_IN_MSPIKE_WL=-0.01, 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: 2AA6924E96 X-Spam-Score: -4.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: WYQgrsz+RscK Raghav Gururajan writes: > Hi Julien! > >> I think you need to remove the apply, but keep one level of >> parenthesis, like so: >> ((assoc-ref =E2=80=A6) args =E2=80=A6) >> Apply takes the last arguments, which must be a list and appends all >> its 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 is not a procodure, but it's fine: it returns a procedure, >> so guile can 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 'instal= l) > #:install-plan > '(("src" (string-append > "include/" solution) The (string-append =E2=80=A6) is quoted. Is this on purpose? > #t)) Note that we no longer need to end phases on #t. --=20 Ricardo