unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* “Guix Profiles in Practice”
@ 2019-10-25 10:24 Ludovic Courtès
  2019-10-25 16:36 ` Thompson, David
  2019-10-26 18:32 ` Alex Griffin
  0 siblings, 2 replies; 31+ messages in thread
From: Ludovic Courtès @ 2019-10-25 10:24 UTC (permalink / raw)
  To: guix-devel, help-guix

Hello Guix!

Here’s a new blog post by Pierre Neidhardt entitled “Guix Profiles in
Practice”:

  https://guix.gnu.org/blog/2019/guix-profiles-in-practice/

A great discussion on the benefits of manifests and on ways to manage
several profiles!

Ludo’.

^ permalink raw reply	[flat|nested] 31+ messages in thread
* Re: “Guix Profiles in Practice”
@ 2019-11-02 18:51 Tanguy Le Carrour
  2019-11-02 19:21 ` Pierre Neidhardt
  0 siblings, 1 reply; 31+ messages in thread
From: Tanguy Le Carrour @ 2019-11-02 18:51 UTC (permalink / raw)
  To: mail; +Cc: guix-devel

Hi Pierre, Hi Guix!

Thanks for your article! It's been really useful!

I have two rather simple questions:
#1. why put the profile in `"$GUIX_EXTRA_PROFILES"/my-project/my-project`
    instead of `"$GUIX_EXTRA_PROFILES"/my-project`? I tried to create 2
    profiles right under `"$GUIX_EXTRA_PROFILES"`, and it seems to work!
#2. how can I remove a profile?! … actually, I figured out that removing
    the links works. Garbage would be (magically) collected on the next
    `guix gc` ("removing stale link from…").

Is point #2 the reason why the profiles are stored in subfolders?! If
yes, I would use `"$GUIX_EXTRA_PROFILES"/my-project/current` instead.
Does it make sense?!
Does point #2 deserve a mention in the cookbook?

My actual concern with profiles comes from the fact that I'm a Fish [1]
user. So I cannot "just" source the profile. Work-arounds exist [2],
but I don't quite like them. The good thing is I'm also a direnv [3] user
and this solves the problem it a neat way!
I'm working on a direnv function (`use profile my-project`) that would activate
the profile whenever I `cd` to a project folder.
I will eventually submit it upstream, but first, I have to figure out a way
to keep fish and direnv available when I activate a profile, because PATH
is overwritten and those packages are not in my profile! :-(

[1]: https://fishshell.com
[2]: https://github.com/edc/bass
[3]: https://direnv.net

This brings me to my last (but not quite related) question… where does
`--search-paths` get its information from? I guess it's something in the
package definition that tells it "you have to export PYTHONPATH", but
I'm not sure where. Any clue welcome!

Anyway, thanks again for your work on the article!

-- 
Tanguy

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

end of thread, other threads:[~2019-11-07 12:42 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-25 10:24 “Guix Profiles in Practice” Ludovic Courtès
2019-10-25 16:36 ` Thompson, David
2019-10-25 20:44   ` Pjotr Prins
2019-10-26 10:02     ` Pierre Neidhardt
2019-10-27  8:56       ` Pjotr Prins
2019-10-27 11:30         ` Pierre Neidhardt
2019-10-27 11:43           ` Hartmut Goebel
2019-10-27 20:06           ` Konrad Hinsen
2019-10-27 21:05             ` Pierre Neidhardt
2019-10-28 16:20               ` Konrad Hinsen
2019-10-30  8:36     ` Pierre Neidhardt
2019-10-26  0:34   ` Jonathan Frederickson
2019-10-26  1:19     ` Jonathan Frederickson
2019-10-26 10:00   ` Pierre Neidhardt
2019-10-27  3:29     ` Bengt Richter
2019-10-27  8:49       ` Pierre Neidhardt
2019-10-27 13:33     ` Konrad Hinsen
2019-10-27 13:53       ` Jelle Licht
2019-11-03 14:24   ` Ludovic Courtès
2019-11-03 16:49     ` Jonathan Frederickson
2019-11-04 10:12       ` Pierre Neidhardt
2019-11-04 14:33       ` Ludovic Courtès
2019-11-04 10:10     ` Pierre Neidhardt
2019-11-05 22:18       ` Carlo Zancanaro
2019-11-06  8:32         ` Pierre Neidhardt
2019-11-06 17:37           ` Ludovic Courtès
2019-11-07 12:42             ` Pierre Neidhardt
2019-10-26 18:32 ` Alex Griffin
2019-10-26 19:38   ` Pierre Neidhardt
  -- strict thread matches above, loose matches on Subject: below --
2019-11-02 18:51 Tanguy Le Carrour
2019-11-02 19:21 ` Pierre Neidhardt

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