guix-devel
[Top][All Lists]
Advanced

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

Re: Howto run guix.el correctly?


From: Ludovic Courtès
Subject: Re: Howto run guix.el correctly?
Date: Wed, 26 Nov 2014 23:41:59 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Alex Kost <address@hidden> skribis:

> Ludovic Courtès (2014-11-26 19:23 +0300) wrote:

[...]

>>> +    (arguments
>>> +     '(#:phases (alist-cons-after
>>> +                 'install 'post-install
>>> +                 (lambda* (#:key outputs #:allow-other-keys)
>>> +                   (symlink "geiser-install.el"
>>> +                            (string-append (assoc-ref outputs "out")
>>> +                                           "/share/emacs/site-lisp/"
>>> +                                           "geiser-autoloads.el")))
>>> +                 %standard-phases)))
>>
>> This particular instance won’t work because it’s called from
>> $top_builddir.
>
> Sorry I didn't understand why it wouldn't work.  I tried it and it worked
> as I expected: a proper "geiser-autoloads.el" symlink was created.

Oh indeed, I misunderstood the code above, sorry.

>> Actually, since it’s going to be used in most packages, what about
>> adding an ‘install-autoloads’ procedure in (guix build emacs-utils)?
>> So the above would become
>>
>>   (alist-cons-after
>>    'install 'post-install
>>    (lambda* (#:key outputs #:allow-other-keys)
>>      (install-autoloads (assoc-ref outputs "out")))
>>    %standard-phases)
>
> OK.
>
>> Or better yet, (guix build emacs-utils) could provide
>> %standard-emacs-phases.
>>
>> WDYT?
>
> The problem is that I don't understand what these %standard-emacs-phases
> should be,

(define %standard-emacs-phases
  (alist-cons-after
   'install 'post-install
   (lambda* (#:key outputs #:allow-other-keys)
     (install-autoloads (assoc-ref outputs "out")))
   %standard-phases))

> that's why I wanted to do it step-by-step.  I don't see general
> patterns right now.  Some packages would require just making a link as
> with geiser, other packages require generating autoloads and maybe
> some others require additional steps.  What about making
> "wip-emacs-packages" branch and to put the appropriate changes there
> for now?

Sure!

Thank you,
Ludo’.



reply via email to

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