[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Package workspace relocation
From: |
Efraim Flashner |
Subject: |
Re: Package workspace relocation |
Date: |
Tue, 17 Nov 2020 09:23:08 +0200 |
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
signature.asc
Description: PGP signature