unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Best practices for Guix environment variables on foreign distro
@ 2018-03-10 22:32 Jorge
  2018-03-12 10:11 ` Ludovic Courtès
  2018-03-12 22:32 ` Jorge
  0 siblings, 2 replies; 8+ messages in thread
From: Jorge @ 2018-03-10 22:32 UTC (permalink / raw)
  To: help-guix

Hi.  I use Guix on Ubuntu 16.04.4[1] to get up-to-date packages while
running Ubuntu LTS.  When setting up Guix environment variables I feared
disrupting the foreign distro.  If a program P on the foreign distro
invokes binary B, it expects the B version shipped with the foreign
distro.  If the Guix version of B is on the search path I fear trouble.
Therefore, instead of configuring all Guix environment variables on
`~/.profile', I only configured there `GUIX_PROFILE', `INFOPATH',
`MANPATH' and `GUIX_LOCPATH'.  I put the configuration of `SSL_CERT_DIR'
and `SSL_CERT_FILE' and the statement to source
`"${GUIX_PROFILE}/etc/profile' (which configures `PATH') on `~/.bashrc'
so they do affect interactive Bash shells but not programs spawned by
GNOME or by systemd.

However, I found an e-mail message on this list[2] and the footnote on
[info:guix#Invoking guix environment], both of which recommend against
sourcing `"${GUIX_PROFILE}/etc/profile' from `~/.bashrc'.

If my attempt is recommended against then how else should I enable Guix
on Emacs and interactive Bash shells while preventing it from disrupting
the foreign distro (e.g. programs spawned by GNOME)?  Or is this feared
disruption a non-issue in practice and I’m creating unnecessary
complication?

A related question: how do I make all info manuals from Guix accessible
to Emacs?  Not every Guix package is installed on my profile.  For now,
I configured INFOPATH to include both my user profile and root’s:

┌────
│ INFOPATH="/var/guix/profiles/per-user/root/guix-profile/share/info/:${INFOPATH-}"
│ export INFOPATH="${GUIX_PROFILE}/share/info/:${INFOPATH-}"
└────



Footnotes
─────────

[1] It came preinstalled with my Dell notebook.  I intend to later
migrate to a distro more respectful of free (libre) software ethics.

[2]
[https://lists.gnu.org/archive/html/help-guix/2017-05/msg00082.html]

- I am Brazilian. I hope my English is correct and I welcome feedback
- Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z
- Free/libre software for Android: https://f-droid.org
- [[https://www.gnu.org/philosophy/free-sw.html][What is free software?]]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-03-14 11:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-10 22:32 Best practices for Guix environment variables on foreign distro Jorge
2018-03-12 10:11 ` Ludovic Courtès
2018-03-13  6:48   ` Konrad Hinsen
2018-03-13 12:37     ` Adonay Felipe Nogueira
2018-03-13 17:32     ` Jorge
2018-03-14 11:54       ` Adonay Felipe Nogueira
2018-03-12 22:32 ` Jorge
2018-03-13 12:24   ` Adonay Felipe Nogueira

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).