* environments
@ 2016-04-17 18:27 Catonano
2016-04-18 7:59 ` environments Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Catonano @ 2016-04-17 18:27 UTC (permalink / raw)
To: help-guix
[-- Attachment #1: Type: text/plain, Size: 623 bytes --]
I understand that environments are for developing projects installing
dependencies in a separate space in order not to clutter the main
installation.
Say I want to work on a ruby based project. This is an hypothesis, actually
I have never seen a single line of ruby code in my life
Now, this project has a gem file downloading tons of components that the
project depends on.
Is it possible to type
guix environment ruby
then inside such an environment run bundler (or how it is called) and have
it do its thing ?
It will download to the local project folder not trying to affect anything
outside the project, right ?
[-- Attachment #2: Type: text/html, Size: 781 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: environments
2016-04-17 18:27 environments Catonano
@ 2016-04-18 7:59 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2016-04-18 7:59 UTC (permalink / raw)
To: Catonano; +Cc: help-guix
Catonano <catonano@gmail.com> skribis:
> Now, this project has a gem file downloading tons of components that the
> project depends on.
>
> Is it possible to type
>
> guix environment ruby
>
> then inside such an environment run bundler (or how it is called) and have
> it do its thing ?
Sure, but rather:
guix environment --ad-hoc ruby
to create an environment containing Ruby.
> It will download to the local project folder not trying to affect anything
> outside the project, right ?
I’ve never used Bundler, but I think that’s what it does.
So this is all possible, like on any other GNU/Linux system. The
downside, of course, is that Bundler is not integrated with Guix and
does not provide the same reproducibility guarantees and same level of
control over environments.
The ideal way would be to provide Guix packages for the Gems you need,
using ‘guix import’, and then use that to manage your development
environments.
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-04-18 8:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-17 18:27 environments Catonano
2016-04-18 7:59 ` environments Ludovic Courtès
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).