unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* guix edit mutt -- with new option, and dependency, how I got it working
@ 2016-03-10  0:44 Jean Louis
  2016-03-10  1:45 ` Leo Famulari
  0 siblings, 1 reply; 7+ messages in thread
From: Jean Louis @ 2016-03-10  0:44 UTC (permalink / raw)
  To: help-guix

Hello,

I wish to share how I got this working:

I wanted to do command:

guix edit mutt

only that one could not edit the file, so I have saved the file locally.

Andreas Enge pointed that I have to do following:

From: Andreas Enge
To: Jean Louis
Cc: 22970-done@debbugs.gnu.org, help-guix@gnu.org
Subject: Re: bug#22970: guix edit mutt -- not working

On Thu, Mar 10, 2016 at 12:22:20AM +0100, Jean Louis wrote:
> And I could not save the file in my home directory, and do:
> guix package -i mutt -f mail.scm

As mentioned on IRC, modify the file mail.scm by adding a line
   mutt
at the end. Then
   guix package -f mail.scm
does "install the package that the code within FILE evaluates to" as
explained by "guix package --help". mail.scm itself does not evaluate
to anything, it just contains a number of variable definitions. By adding
the line, it "returns" the value of the variable mutt, which is your
package definition.

Better yet, use GUIX_PACKAGE_PATH, for instance as follows:
   export GUIX_PACKAGE_PATH=$HOME/guix
Then create the same file layout in that directory as in the source code:
   mkdir -p $HOME/guix/gnu/packages
Copy mail.scm there, modify mutt, then
   guix package -i mutt
will first look for your modified package.

So, I have done that with file:

~/gnu/guix/packages/mutt.scm

which is attached.

And I have added, dependency "gdbm" for the option --enable-hcache to
have it working:

(inputs
 `(("cyrus-sasl" ,cyrus-sasl)
	 ("gpgme" ,gpgme)
	 ("gdbm" ,gdbm)

and

     `(#:configure-flags '("--enable-smtp"
                           "--enable-imap"
                           "--enable-pop"
                           "--enable-gpgme"
                           "--enable-hcache"


Jean Louis

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

end of thread, other threads:[~2016-03-11 13:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-10  0:44 guix edit mutt -- with new option, and dependency, how I got it working Jean Louis
2016-03-10  1:45 ` Leo Famulari
2016-03-10  6:58   ` Jean Louis
2016-03-10 20:45     ` Leo Famulari
2016-03-10 21:06       ` Efraim Flashner
2016-03-10 21:34         ` Leo Famulari
2016-03-11 13:37           ` 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).