From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 WOwUJEd8C2PtngAAbAwnHQ (envelope-from ) for ; Sun, 28 Aug 2022 16:31:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 4Cr5I0d8C2PwEwAA9RJhRA (envelope-from ) for ; Sun, 28 Aug 2022 16:31:35 +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 41A1125580 for ; Sun, 28 Aug 2022 16:31:35 +0200 (CEST) Received: from localhost ([::1]:39636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSJK1-00017X-S9 for larch@yhetil.org; Sun, 28 Aug 2022 10:31:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSJJR-00015m-8e for help-guix@gnu.org; Sun, 28 Aug 2022 10:30:57 -0400 Received: from vmi571514.contaboserver.net ([75.119.130.101]:50732 helo=mail.laesvuori.fi) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSJJP-0004AU-Hx for help-guix@gnu.org; Sun, 28 Aug 2022 10:30:56 -0400 Received: from X-kone (82-203-161-78.bb.dnainternet.fi [82.203.161.78]) by mail.laesvuori.fi (Postfix) with ESMTPSA id 3417F34012E; Sun, 28 Aug 2022 16:30:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=laesvuori.fi; s=mail; t=1661697052; bh=r8A9pIcceLKb52KZaUYR4+YvFJMOJmzL8Kld5seQaag=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=efFMcSI5SQ9ksTL7p+dC+r8cytChg6JX/w0wg+mg/9xj5bXehyt8xWrC5+moQiHjM RoIAxMYKrsETFK4MM7xL/ZvEF9d0H3EHnaIixShPHw8ZbYdwWtecEz+AUoKDMt8PCI AQ0Foldl4NWZLc16dE6yHXzFmnOqlE7SEpkvyak0= Date: Sun, 28 Aug 2022 17:30:49 +0300 From: Saku Laesvuori To: Tobias Geerinckx-Rice Cc: help-guix@gnu.org, Nathan Dehnel Subject: Re: Store path in package definition Message-ID: <20220828143049.hecyng6f3on2mqbt@X-kone> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="aczn3vkihj7q3xym" Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=75.119.130.101; envelope-from=saku@laesvuori.fi; helo=mail.laesvuori.fi 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=1661697095; 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=UWWxUKw+SPz1AvKfO2r71mrjjUEupGd5pKXQIZD/6YE=; b=foPyPoNTEqpjcgkJmQtf0INVoSAdJxcaUmVzIofjrO86HSndTDoWb5sJgo0oRfF31KlfiV G2D9wL6zaatuT9IThDzup7oRmYHiiMulIjySqkSOaJ9EQkfGGi1zTrH8JUWuhZ9M8aAZa/ pobyu8/A79SkOA3PovmNja7AXnV01E6FjpejeOaSVNLCwxV5CVS+7cLutCVQR6pWhrPaoi jBnz5BkmrCqyhVWMeNY/55+scsmmLiS6SLTXK2dM4gaQUscCwX4ST19L0sWSmfeoQZ3CnI u8Bq8nFZ1iKQ0F2f73vFm36W6eRxIfzeQ4qUCbefMTfII9sXMkWQNcD7oSuq5Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661697095; a=rsa-sha256; cv=none; b=n1APe6CHC68n3pHhmQ4a45jZrHtJk+d87mSPpjc9VLyohFgzbark8Nva+VyMeTTXwDkqK6 1a5uZME2OM2PNx9ZVK38pl4+DZN/9Y3s21nL/TgLZWjdTL8tQQ7k+x+46n/4btdCERvIoK 8Ux6QtHe8zxISEysqyqrse9/+1fXG2cjxyadmoW4/3NYD6uTgs4mVef5Ghgl1MWu3uBN1G wyFngvgpvGGrIPCa0MmPYO2DxQD1AaZZFS86VV9RUVAwjEi2jdXvg2s2rfF6XmDCXau0L/ EUrDvTMU735WWTDLfSW1C4L2YfBcqe7eFxX/fpVBMiR+cWqntRaFRZ3h5L1WlA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=laesvuori.fi header.s=mail header.b=efFMcSI5; dmarc=pass (policy=reject) header.from=laesvuori.fi; 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.40 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=laesvuori.fi header.s=mail header.b=efFMcSI5; dmarc=pass (policy=reject) header.from=laesvuori.fi; 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: 41A1125580 X-Spam-Score: -5.40 X-Migadu-Scanner: scn0.migadu.com X-TUID: mL6xOoWr7FDf --aczn3vkihj7q3xym Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > Modulo typos, and indentation being weird because 'phone, >=20 > (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.c" > (("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.c" > (("hello") > (string-append out "/bin/hello")))))))))) Thanks all. I got that part working. Unfortunately I found out that firefox/icecat tries to find native messaging manifests only from a hardcoded /usr/lib/... path so packaging a native messaging host manifest is impossible without patching the browser (as far as I know). - Saku Laesvuori --aczn3vkihj7q3xym Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoMkZR3NPB29fCOn/JX0oSiodOjIFAmMLfBkACgkQJX0oSiod OjJ44A/+N9J3ZtaGDmGmslepPfohbGDiDzVQGqoKYFcu4jYKqrXyGu9STJMInsvi yKi8Eey63exIAsN+anmDphkj1URZ6ZzQ99J8xozVyWJkUx+y7qumv44efQxbMkpX p+jcOPZdJItKhmxpTWNIiHr00/kl0xz3VVhzwmRSFA0yzqgHsD7CLIDA3smSDl6w CcoM/cv48BxZa8L/Hlx1eAW1b3Ub3Sd0z0ZY/zGAaJT41d1W5JQs2q+0lT7cN/uD OG6wPsIlLBc/RdBZIlZPTjWpAc9aMm89RiW6lFC8xwzt874fokAcde/Wngs+pEvU ruVsPdOSsFGHc8bseauz49xFi9Gj8LNpU6VlDggiWGrlZSxGGBMPNM4PahIaAZ5N KFOIE4xX/1SHaq6j+VpZSrRialjxj0Z1qspoB4qEonxZXaE+wSIl4XzQNyk3l50s JQrxdW4vJyy0FYNQFT7RpKvOHRzYqBuGRX5Ghey2w9/eRSZ1iqL0gGX7DQyb4Uhj 9wF0y0oYVFLMKUfBGQgjBrSZNPtcWIxeWEH1i+jL+smyGnawBYildJ0ELmrgMS9m reCcz0XYa0ymqlOXiyy5RV3SVZOMe8DdnLrXtB6Ix7piR5qOnxWXszSmum7KJhlT hISxnVH5ASinyKzg8MboTHb/UwTBip6IUJfVxVHUuSdKSlq+IjA= =hjD6 -----END PGP SIGNATURE----- --aczn3vkihj7q3xym--