help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Package workspace relocation


From: Leo Famulari
Subject: Re: Package workspace relocation
Date: Mon, 16 Nov 2020 15:56:47 -0500

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)
>                       (uri (git-reference
>                          (url "https://github.com/my-package";)))
>                          (file-name (git-file-name name version))
> 
> This results in a path like `<guix-build-temp>/my-package-0.0.1` but
> because of idiosyncrasies in the project's build system, I need for it to
> be relocated to something like `<guix-build-temp>/foo/bar/my-package-0.0.1`.
> 
> How can I do this?

I'm not sure that I fully understand what you are asking.

However, the location of the build directory is controlled by the TMPDIR
variable, which is set in the environment of the guix-daemon. You can
set it to any location that you want.

An alternative per-package approach is to add a build phase before the
'unpack' phase and do something like `mkdir -p foo/bar && chdir
foo/bar`.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]