Re: Package workspace relocation

2020-11-17 Thread zimoun
Hi Efraim, On Tue, 17 Nov 2020 at 09:23, Efraim Flashner wrote: > (add-after 'unpack 'move-source > (lambda _ > (mkdir-p "foo/bar") > (rename-file "my-project" "foo/bar/my-project") > #t)) Cool! Thank you for the explanation. Cheers, simon

Re: Package workspace relocation

2020-11-16 Thread Efraim Flashner
On Tue, Nov 17, 2020 at 12:09:35AM +0100, zimoun wrote: > Dear, > > On Mon, 16 Nov 2020 at 16:56, Stephen Scheck wrote: > > > `/my-project` to become `/foo/bar/my-project`. It sounds like what you > > [...] > > >> > This results in a path like `/my-package-0.0.1` but > >> `/foo/bar/my-package-

Re: Package workspace relocation

2020-11-16 Thread zimoun
Dear, On Mon, 16 Nov 2020 at 16:56, Stephen Scheck wrote: > `/my-project` to become `/foo/bar/my-project`. It sounds like what you [...] >> > This results in a path like `/my-package-0.0.1` but >> `/foo/bar/my-package-0.0.1`. What do you want? Append a suffix /tmp/guix-xyz/foo/bar/your-pkg o

Re: Package workspace relocation

2020-11-16 Thread Stephen Scheck
I just need to add a prefix to the directory in which the Git source is cloned, because its build system requires that. I don't care which TMP directory Guix daemon uses for its build root. I just need for `/my-project` to become `/foo/bar/my-project`. It sounds like what you suggested will do the

Re: Package workspace relocation

2020-11-16 Thread Leo Famulari
On Mon, Nov 16, 2020 at 03:15:46PM -0500, Stephen Scheck wrote: > Is there a way to relocate the package build workspace for a Git clone > source, e.g.: > > (package > (name "my-package") > (version "0.0.1") > (source (origin > (method git-fetch) >

Package workspace relocation

2020-11-16 Thread Stephen Scheck
Is there a way to relocate the package build workspace for a Git clone source, e.g.: (package (name "my-package") (version "0.0.1") (source (origin (method git-fetch) (uri (git-reference (url "https://github