all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: sirgazil <sirgazil@zoho.com>
To: Roel Janssen <roel@gnu.org>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Adding a subcommand "load-profile"
Date: Tue, 28 Apr 2020 17:34:40 +0000	[thread overview]
Message-ID: <171c1dae752.b806970b21211.4448157853317564236@zoho.com> (raw)
In-Reply-To: <490f77b9f9b0829f985ba717f6fbe008f54a816d.camel@gnu.org>

 ---- On Tue, 28 Apr 2020 22:42:53 +0000 Roel Janssen <roel@gnu.org> wrote ----
 > Dear Guix,
 > 
 > Years ago we implemented GNU Guix on the high-performance computing cluster in
 > Utrecht.  One of the things we added was a wrapper around the "guix" command
 > (called "guixr") to enable communication between the guix-daemon (on one node),
 > and the client-side "guix" command.  (We actually copied the great "guixr"
 > script from Ricardo at the time.)
 > 
 > Lots of improvements have been made for the HPC use-case that the need for the
 > "guixr" wrapper script is no longer needed.   Except for one thing.
 > 
 > We added a subcommand in the "guixr" script called "load-profile".  It allows a
 > user to do the following:
 > --------------------------------------------------------------------------------
 > $ guixr package -i ... -p /my/profile
 > $ guixr load-profile /my/profile
 > [env]$
 >   # ... A new shell is spawned here.
 >   #     Inside this shell only the environment variables in
 >   #     /my/profile/etc/profile are set ...
 > [env]$ exit
 >   # Return to the normal shell state 
 > --------------------------------------------------------------------------------
 > 
 > The code of "guixr" is available at [1].
 > 
 > I sometimes wish I had this command available in "guix" itself.  So I'd like to
 > implement the "load-profile" subcommand in Scheme, so that it can be part of
 > Guix.
 > 
 > Would there be any interest from others to have this as well? And also, the
 > shell implementation heavy relies on Bash.  What other shells should I attempt
 > to implement?

Personally, I think managing Guix profiles is currently difficult, and I would like to have commands like this one to make it easier.

Actually, I've been exploring using profiles to create development environments for my own projects (using information in the Cookbook), but it turned out to be too much manual work, so I've been prototyping a Guile-based CLI for my personal needs (https://gitlab.com/sirgazil/guix-entorno). 

I would like these kinds of things to be possible with Guix commands instead, though.

  parent reply	other threads:[~2020-04-28 17:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-28 15:42 Adding a subcommand "load-profile" Roel Janssen
2020-04-28 16:54 ` zimoun
2020-04-29 12:47   ` Roel Janssen
2020-04-29 13:48     ` zimoun
2020-04-29 19:14       ` Roel Janssen
2020-04-28 17:34 ` sirgazil [this message]
2020-05-03 20:31   ` Ludovic Courtès
2020-05-03 20:56     ` Vagrant Cascadian
2020-05-04 13:36       ` zimoun
2020-05-05  8:52       ` Ludovic Courtès
2020-05-04 13:34     ` zimoun

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=171c1dae752.b806970b21211.4448157853317564236@zoho.com \
    --to=sirgazil@zoho.com \
    --cc=guix-devel@gnu.org \
    --cc=roel@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.