From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qB9jG5w2CWNXWwAAbAwnHQ (envelope-from ) for ; Fri, 26 Aug 2022 23:09:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +FRRG5w2CWNTegEAauVa8A (envelope-from ) for ; Fri, 26 Aug 2022 23:09:48 +0200 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 24A37EF55 for ; Fri, 26 Aug 2022 23:09:48 +0200 (CEST) Received: from localhost ([::1]:44344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oRgaI-0003K8-T1 for larch@yhetil.org; Fri, 26 Aug 2022 17:09:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42044) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRga8-0003Jn-BB for help-guix@gnu.org; Fri, 26 Aug 2022 17:09:36 -0400 Received: from tobias.gr ([2a02:c205:2020:6054::1]:45324) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRga6-0005n8-95 for help-guix@gnu.org; Fri, 26 Aug 2022 17:09:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=T4aKUOrFJc4s0 lRwTJqpZGtW9PPUrArWYrWQIXMiSC8=; h=references:in-reply-to:subject:to: from:date; d=tobias.gr; b=PtM6V10adxO/p9lb4c7KXIJQp199C7ZyS/kmp3k6kRE4 7Om7h+JuskwhKQ89xCt/vKvf8IVYFXHq8/n6RM3hOVbfUsNrNYkK4QRpeLaoZpk7qFBn2/ ZwI0E7s1mPXOB/sqQKHXBJE8dz5vyxJanNf2R7cZ+uyHx8sFh7CjufyipAyiLLwbVaL2fP LeCGdxF1NDZHqK1c0aEe1sbH85OXpqCcEHHM8kaQGXre38SOhhyaxi8LUDUkL0odwOLKbf H4Y6Yn5GVJmqutlrrQijNbVa4t2tsRcRvwNqgRrgM0i7JxOSDK7M6CQWaQW2eMIV5ZRls7 8U7O7gCSOu/W/I8x9g== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 5c4743a5 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Fri, 26 Aug 2022 21:09:24 +0000 (UTC) Date: Fri, 26 Aug 2022 21:09:26 +0000 From: Tobias Geerinckx-Rice To: help-guix@gnu.org, Nathan Dehnel , saku@laesvuori.fi Subject: Re: Store path in package definition In-Reply-To: References: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Autocrypt: addr=me@tobias.gr; keydata= mQINBFVks2ABEACjGBPhWf/qx0L9OhEIrAFTimo5dHa1FLy0AHaHvxmwYSIdJmERYGiNle1rcOvw cFRtu8KJUsrs27Vgoso3qHJpghVitUUf0v3ZuXQT9kfuQLz1Y8pyMzHwVFMLiJVj4Z3y7CJk+xyZ cpSAMbyPINbFVEhsK+z+8ojVGuaiucZkib6b67ySG6Pp1bon8xVvosj71ZRjfXh1t4X8laWO7fQq itT9lmc6DxbE/4vIhR+Vb2MblaA+DyHoNHGGao89h4CO99lfzWzsux41DnEG9d317sJRQTig6Wja EKHXZRA9FbfogD4SDa2uQYCpTJpsVjAyZyu2fuJ+t0zJJ+Ai9qDY87P6hOyd+/n8Eh2Y4TbxJiDo XUT72XY/RfPH1qrMIP3EI/NNL4LQeGG1n+625k3OVWcRVXG2vRrB6qurLmGkLEm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2oW0jf/PdH9sh2mQrQxIQJ5cZz6Z3X0= Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr 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_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 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 X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1661548188; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature:autocrypt:autocrypt; bh=T4aKUOrFJc4s0lRwTJqpZGtW9PPUrArWYrWQIXMiSC8=; b=SmkuPHstpt3QyTUpElveYYOumg11DkFbQEglfBZngcdbHoBsQM2Jy9eSMXelPnpwYMZBNS G1PPGBLXjMGvC/TH5YWAeK/DFoVTrrcBI6XN/x/vVSHP8iPvZLrf7J1UnDYL0JShMhDQ0T 1Eyhs9mpnUfNlyyHscZp6VprzU7CBWF+MWKR9up0hkTU43ecuhjumLiF1xd/jRQ2PYtCCl bPYFBEwoNG37MNKOxzQP3B2jbjfrn2O+jDEFzjqj9ynWcVMX+DjxK2WAKdd7KSxm35BtiV RiW3HGpR2Fo8t/r8ewCeJ9QCNWESZam+h1UZBHbLxRk0f6w/0MeXcBG+jvJLWw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661548188; a=rsa-sha256; cv=none; b=R1FLAGF7NFVfuZi+De1C2Ns3vOf23gttvB750/3CNcW4EoLpM+19FWlsYlIdL7WOzPLmxE 8UvIQ9XbmvqVjxFgleboyEIgJR1/edGr5VlHIJHT+5k9aVQ/+HYLJFkyvDaAsNvDH4tVhs CyyouUNeCZfXHMruFG17LG/+kd/ZL7Gcgt2s5FQnnAHqBSeVU6XR1+of4ZhfVlAKXmWvTj O2LTf8Wm0Ja+rnsM2hHXgJGuF1CM8XuBjqKTC4wyZr5o0dQ+yR34gcRYCqczyblsKW1vqp 8q0QDzO5JhJptakAatOc8YO2spR73GET0vKQkLsSqy+8WrXXR5nQtSaMwegUJA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=PtM6V10a; dmarc=pass (policy=reject) header.from=tobias.gr; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.31 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=PtM6V10a; dmarc=pass (policy=reject) header.from=tobias.gr; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 24A37EF55 X-Spam-Score: -5.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: u+/4GvKko658 Hi, On 26 August 2022 20:39:55 UTC, Nathan Dehnel wrote= : >Would something like this work? > >(string-append (assoc-ref %outputs "out") "/passff=2Epy") Consider this deprecated=2E It's unreliable and even where it appears to = work can break for what seems to be no reason when, e=2Eg=2E, cross-compili= ng=2E Modulo typos, and indentation being weird because 'phone, (arguments (list #:make-flags #~(list (string-append "HELLO=3D" #$output "/bin/hello")) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'option-one (lambda _ (substitute* "foo=2Ec" (("hello") (string-append #$output "/bin/hello"))))) (add-after 'unpack 'option-two (lambda* (#:key outputs #:allow-other-keys (let ((out (assoc-ref outputs "out"))) (substitute* "foo=2Ec" (("hello") (string-append out "/bin/hello")))))))))) From=20what you describe it sounds like you're using a phase, but I included= make-flags to show that they work the same way=2E I used to prefer option one, but actually prefer option two nowadays, beca= use it's less magical=2E >https://guix=2Egnu=2Eorg/cookbook/en/html_node/Extended-example=2Ehtml#Bu= ild-system-arguments This should be updated=2E Kind regards, T G-R Sent on the go=2E Excuse or enjoy my brevity=2E