guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] guix environment: Add --ad-hoc option.


From: Ludovic Courtès
Subject: Re: [PATCH] guix environment: Add --ad-hoc option.
Date: Thu, 28 May 2015 23:53:12 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

David Thompson <address@hidden> skribis:

> I find myself frequently wanting to quickly create an environment with
> just a few packages in it, without having to go through the song and
> dance of creating a package expression for it.  This patch addresses
> this use-case.

Yeah, nice!

> From 30a5b0f61e5c4a0e0244015f127ba3255f834139 Mon Sep 17 00:00:00 2001
> From: David Thompson <address@hidden>
> Date: Thu, 28 May 2015 08:41:04 -0400
> Subject: [PATCH] guix environment: Add --ad-hoc option.
>
> * guix/scripts/environment.scm (%options): Add "ad-hoc" option.
>   (show-help): Display help for "--ad-hoc".
>   (packages+propagated-inputs): New procedure.
>   (guix-environment): Create ad hoc environment when asked.
> * doc/guix.texi ("invoking guix environment"): Document it.

LGTM!

> address@hidden --ad-hoc
> +Include all specified packages in the resulting environment, as if an ad
> +hoc package were defined with them as inputs.  This option is useful for

@i{ad hoc}

> +quickly creating an environment without having to write a package
> +expression to contain the desired inputs.

Maybe add an example, like:

  For instance, the command:

  @example
  guix environment --ad-hoc guile guile-sdl -E guile
  @end example

  runs @command{guile} in an environment where Guile and Guile-SDL are
  available.

OK with these changes.

Thank you!

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]