"Feng Shu" <[email protected]> skribis:
> [email protected] (Ludovic Courtès) writes:
>
>> tumashu <[email protected]> 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’.