From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id KAHVFbV6s1/nRgAA0tVLHw (envelope-from ) for ; Tue, 17 Nov 2020 07:24:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id wBS1EbV6s1+QOgAA1q6Kng (envelope-from ) for ; Tue, 17 Nov 2020 07:24:37 +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 DA633940367 for ; Tue, 17 Nov 2020 07:24:36 +0000 (UTC) Received: from localhost ([::1]:42658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kevLv-0004Lk-SB for larch@yhetil.org; Tue, 17 Nov 2020 02:24:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kevLe-0004LU-22 for help-guix@gnu.org; Tue, 17 Nov 2020 02:24:18 -0500 Received: from flashner.co.il ([178.62.234.194]:53828) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kevLb-0007GW-BJ for help-guix@gnu.org; Tue, 17 Nov 2020 02:24:17 -0500 Received: from localhost (unknown [141.226.15.169]) by flashner.co.il (Postfix) with ESMTPSA id 1DAB040332; Tue, 17 Nov 2020 07:23:42 +0000 (UTC) Date: Tue, 17 Nov 2020 09:23:08 +0200 From: Efraim Flashner To: zimoun Subject: Re: Package workspace relocation Message-ID: <20201117072308.GS987@E5400> References: <20201116205647.GA24897@jasmine.lan> <86h7poq4pc.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rG09A39trvEtf3rB" Content-Disposition: inline In-Reply-To: <86h7poq4pc.fsf@gmail.com> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=178.62.234.194; envelope-from=efraim@flashner.co.il; helo=flashner.co.il X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/17 02:23:42 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-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 , Stephen Scheck Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.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-Spam-Score: -2.61 X-TUID: 1sHjvT45ovrL --rG09A39trvEtf3rB Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 17, 2020 at 12:09:35AM +0100, zimoun wrote: > Dear, >=20 > On Mon, 16 Nov 2020 at 16:56, Stephen Scheck w= rote: >=20 > > `/my-project` to become `/foo/bar/my-project`. It sounds like what you >=20 > [...] >=20 > >> > This results in a path like `/my-package-0.0.1` but > >> `/foo/bar/my-package-0.0.1`. >=20 > What do you want? Append a suffix /tmp/guix-xyz/foo/bar/your-pkg or a > prefix /tmp/foo/bar/guix-xyz/your-pkg? >=20 > Change the prefix means changing the TMPDIR environment variable of > guix-daemon (priviliged user). >=20 > At first look, I do not know how to add something between guix-xyz-drv-0/ > and your-pkg/. Curious to know how. :-) >=20 I think I'd go with (add-after 'unpack 'move-source (lambda _ (mkdir-p "foo/bar") (rename-file "my-project" "foo/bar/my-project") #t)) With that you'll be in and you can chdir into whatever directory you want. Or you could change the source so it doesn't expect the source to be deep in a directory structure. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --rG09A39trvEtf3rB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl+zelgACgkQQarn3Mo9 g1E5yRAArC+PqsODb1PxHeOEt4uELli4HRqvwnTgXp+l3aVdHsFeLuT61cVw2h+2 4cSLF5XOgaPXCM0asWJYRB92juY7igoDx09tmVmPExvTh8QDVp6Z30YmeFlYfQDq fdA34unwSdCKu84Uj/6rIi0Q6PXLagH5P9LE+ZF/xObhdRKo/qj/bZqGYn2+WC4M 2hezq/EnmlxSBle/3JsxwMkeb5tEg57LF6gC271hp5Lzf3/HsmyxccttR036jXDr EK580dEBpSGWEtnY2wC2H8Gy6GNbNfIe3FUhGECUg4PgL8I+e1jedeK6VuRc6V83 IxJZq0CHrrTkumecUkQ5z8K+yKCjnmAvBeykNWC65WRjXGVmWVolxjxJPb23JADR dS1Cf0x3Y2EmLKCI8VfSwxE7ucEXTe46mgKyeYSl4UttJP+NqU5DR3e2fXYINnzC 2w28I0L2sMYGcQWq6emyx9xBPXqWpvsFaeem7enSIPu/x5z9nOslH2PgSyD4M39U pr8mLDxQ77zcyqZv4VOd+CbvaS4z3KRrBgCDn5YCvtFHPrwTT8YOR2/jigJPd78S fLWhR9qkygfXTkKw5J5Yy7A8EVvnRXRrz3DRYWKj0Bz9ccXva3UCxA/WCMSGTjeB 7Dh+lcm1oEXPDZ3RH2/oymksvLcDtueRjIdex8ljxULy7qaPTSQ= =r8XZ -----END PGP SIGNATURE----- --rG09A39trvEtf3rB--