From: Efraim Flashner <efraim@flashner.co.il>
To: zimoun <zimon.toutoune@gmail.com>
Cc: help-guix <help-guix@gnu.org>, Stephen Scheck <singularsyntax@gmail.com>
Subject: Re: Package workspace relocation
Date: Tue, 17 Nov 2020 09:23:08 +0200 [thread overview]
Message-ID: <20201117072308.GS987@E5400> (raw)
In-Reply-To: <86h7poq4pc.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1302 bytes --]
On Tue, Nov 17, 2020 at 12:09:35AM +0100, zimoun wrote:
> Dear,
>
> On Mon, 16 Nov 2020 at 16:56, Stephen Scheck <singularsyntax@gmail.com> wrote:
>
> > `/my-project` to become `/foo/bar/my-project`. It sounds like what you
>
> [...]
>
> >> > This results in a path like `<guix-build-temp>/my-package-0.0.1` but
> >> `<guix-build-temp>/foo/bar/my-package-0.0.1`.
>
> What do you want? Append a suffix /tmp/guix-xyz/foo/bar/your-pkg or a
> prefix /tmp/foo/bar/guix-xyz/your-pkg?
>
> Change the prefix means changing the TMPDIR environment variable of
> guix-daemon (priviliged user).
>
> At first look, I do not know how to add something between guix-xyz-drv-0/
> and your-pkg/. Curious to know how. :-)
>
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 <guix-build-temp> 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.
--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2020-11-17 7:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-16 20:15 Package workspace relocation Stephen Scheck
2020-11-16 20:56 ` Leo Famulari
2020-11-16 21:56 ` Stephen Scheck
2020-11-16 23:09 ` zimoun
2020-11-17 7:23 ` Efraim Flashner [this message]
2020-11-17 13:07 ` zimoun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201117072308.GS987@E5400 \
--to=efraim@flashner.co.il \
--cc=help-guix@gnu.org \
--cc=singularsyntax@gmail.com \
--cc=zimon.toutoune@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.