guix-devel
[Top][All Lists]
Advanced

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

Re: emacs.scm: Suggest add emacs-next or emacs-snapshot


From: Ludovic Courtès
Subject: Re: emacs.scm: Suggest add emacs-next or emacs-snapshot
Date: Sat, 14 Nov 2015 12:32:48 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

"Feng Shu" <address@hidden> skribis:

> address@hidden (Ludovic Courtès) writes:
>
>> tumashu <address@hidden> skribis:
>>
>>> Suggest add emacs-next or emacs-snapshot and let guile-emacs inherit it, 
>>> The reason is that
>>> user can use it build emacs from emacs.git conveniently, for example:
>>>
>>>     guix build emacs-snapshot --with-source=./emacs-snapshot-20151111.tar.gz
>>
>> To use --with-source, all you need to do is to rename the tarball to
>> ‘emacs-20151111.tar.gz’; after that, you can run:
>>
>>   guix build emacs --with-source=emacs-20151111.tar.gz
>>
>> That’s because --with-source expects the tarball name to match the
>> package name (info "(guix) Invoking guix build").
>
> I don't think it is a flexible way, i like the below:
>
>     guix build emacs --with-source=~/my-own-emacs-dir --override-name=emacs 
> --override-version=20151111

I agree that’s more flexible but that’s also less nice as a UI.

And it’s not as simple as this.  Currently one can do:

  guix build emacs guile \
    --with-source=emacs-2123123.tar.gz --with-source=guile-12321.tar.gz

and it does the right thing.

Here we wouldn’t know what package --override-name and
--override-version apply to.

For non-trivial use cases, I would suggest writing a file like this:

  (use-modules (guix) (gnu packages emacs))

  (package
    (inherit emacs)
    (name "emacs-snapshot")
    (source "/path/to/some-file-or-directory.tar.gz"))

and then run:

  guix package --install-from-file=that-file.scm

WDYT?

Ludo’.



reply via email to

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