all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric Bavier <ericbavier@openmailbox.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: guix edit
Date: Tue, 16 Jun 2015 19:55:57 -0500	[thread overview]
Message-ID: <20150616195557.541dc7fa@openmailbox.org> (raw)
In-Reply-To: <87381rz9fa.fsf@gnu.org>

On Tue, 16 Jun 2015 22:26:49 +0200
ludo@gnu.org (Ludovic Courtès) wrote:

> While looking at another package manager for ideas to steal, I found
> this one to be a good candidate:
> 
>   guix edit gcc-4.8
> 
> will open $EDITOR (aka. “emacsclient”) on the definition of that
> package.  This is pretty handy for developers (even when otherwise
> using Geiser, I think.)

I like it.  I was looking for this command just the other day.

> For “regular users,” it’s less useful because most of the time it will
> open an immutable file.  However, I envision a --clone option that
> would create a file with a module declaration and a template like:
> 
>   (define my-gcc
>     (package (inherit gcc)
>       ;; Complete here...
>       )
> 
> (This part is left as an exercise to the reader.)

;)

For immediate use, would we expect the user to save the file to a
directory in $GUIX_PACKAGE_PATH?  Perhaps we could initially open the
file in ~/.config/guix somewhere.

Somewhat related, I'm wondering if others might think it useful for the
recutils output from 'guix package --search' and 'guix package --show'
to print the full name of the file the package is in?

`~Eric

  parent reply	other threads:[~2015-06-17  5:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-16 20:26 guix edit Ludovic Courtès
2015-06-16 20:47 ` Thompson, David
2015-06-16 21:28 ` Amirouche Boubekki
2015-06-17 19:15   ` Ludovic Courtès
2015-06-18 10:55     ` Amirouche Boubekki
2015-06-16 23:29 ` Claes Wallin (韋嘉誠)
2015-06-17 19:16   ` Ludovic Courtès
2015-06-17  0:55 ` Eric Bavier [this message]
2015-06-17 19:20   ` Ludovic Courtès
2015-06-18  7:09 ` Ludovic Courtès

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=20150616195557.541dc7fa@openmailbox.org \
    --to=ericbavier@openmailbox.org \
    --cc=guix-devel@gnu.org \
    --cc=ludo@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.