From: "Théo Maxime Tyburn" <theo.tyburn@gmail.com>
To: Maxime Devos <maximedevos@telenet.be>
Cc: guix-devel@gnu.org
Subject: Re: Setting environment variables in a profile
Date: Thu, 19 May 2022 23:41:08 +0200 [thread overview]
Message-ID: <87zgjd2nui.fsf@gmail.com> (raw)
In-Reply-To: <c9bc099ddaa1e00b038b621d7561921662f06e9d.camel@telenet.be>
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.
prev parent reply other threads:[~2022-05-19 21:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-19 19:43 Setting environment variables in a profile Théo Maxime Tyburn
2022-05-19 20:34 ` Maxime Devos
2022-05-19 21:41 ` Théo Maxime Tyburn [this message]
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zgjd2nui.fsf@gmail.com \
--to=theo.tyburn@gmail.com \
--cc=guix-devel@gnu.org \
--cc=maximedevos@telenet.be \
/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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).