guix-devel
[Top][All Lists]
Advanced

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

Re: Setting environment variables in a profile


From: Théo Maxime Tyburn
Subject: Re: Setting environment variables in a profile
Date: Thu, 19 May 2022 23:41:08 +0200
User-agent: mu4e 1.6.10; emacs 28.0.90

Maxime Devos <maximedevos@telenet.be> writes:
> I don't think this is currently supported, but I suppose it would be
> possible to extend guix/profiles.scm and <manifest> to support this.
> Maybe an API like:
>
> contents of manifest.scm:
>   (manifest
>     (packages->manifest (list python3 blender ...))
>     (environment-variables ; <-- new field
>       (list (extend-search-path ; <--- new procedure
>               (search-path [...] "PYTHONPATH" [...])
>                "/home/tedd/...")
>             (with-environment-variable "BLENDER_USER_CONFIG" "...") ; <-- new 
> procedure
>             [...])))
>
> WDYT of this API?

I think it looks great!

It seems the following definitions would need to get updated

in guix/profiles.scm:
- record: <manifest-entry> 

in guix/build/profiles.scm:
- procedure: manifest-sexp->inputs+search-paths
- procedure: build-profile

> Greetings,
> Maxime.

 Thanks for you time.



reply via email to

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