* emacs.scm: Suggest add emacs-next or emacs-snapshot
@ 2015-11-12 0:35 tumashu
2015-11-12 12:52 ` Ludovic Courtès
0 siblings, 1 reply; 11+ messages in thread
From: tumashu @ 2015-11-12 0:35 UTC (permalink / raw)
To: guix
[-- Attachment #1: Type: text/plain, Size: 242 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 378 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: emacs.scm: Suggest add emacs-next or emacs-snapshot
2015-11-12 0:35 emacs.scm: Suggest add emacs-next or emacs-snapshot tumashu
@ 2015-11-12 12:52 ` Ludovic Courtès
2015-11-13 0:26 ` tumashu
2015-11-13 11:56 ` Feng Shu
0 siblings, 2 replies; 11+ messages in thread
From: Ludovic Courtès @ 2015-11-12 12:52 UTC (permalink / raw)
To: tumashu; +Cc: guix
tumashu <tumashu@163.com> 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").
Now, it might make sense to also provide an ‘emacs-snapshot’ package,
built from a Git checkout and regularly updated. Would you like to try
that?
I think the package would simply inherit from ‘guile-emacs’ and provide
a different ‘name’, ‘version’, and ‘source’.
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re:Re: emacs.scm: Suggest add emacs-next or emacs-snapshot
2015-11-12 12:52 ` Ludovic Courtès
@ 2015-11-13 0:26 ` tumashu
2015-11-13 8:04 ` Ricardo Wurmus
2015-11-13 8:47 ` Ludovic Courtès
2015-11-13 11:56 ` Feng Shu
1 sibling, 2 replies; 11+ messages in thread
From: tumashu @ 2015-11-13 0:26 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: guix
[-- Attachment #1: Type: text/plain, Size: 1513 bytes --]
1. emacs can't build emacs.git's snapshot for some reason
2. I think let guile-emacs inherit emacs-snapshot or emacs-next is more reasonable, for guile-emacs is a kind of emacs-next.
By the way, when I use the below command:
guix build emacs-snapshot --with-source=./emacs-snapshot-20151111.tar.gz
to build a new emacs-snapshot, How can i install it? I can't find any help on manual....
At the momenti, i only use guix as a tool to build emacs-snapshot. but I find it is not easy use as evm, i have to switch back evm.
At 2015-11-12 20:52:47, "ludo@gnu.org (Ludovic" <=?utf-8?Q?Court=C3=A8s?=)> wrote:
>tumashu <tumashu@163.com> 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").
>
>Now, it might make sense to also provide an ‘emacs-snapshot’ package,
>built from a Git checkout and regularly updated. Would you like to try
>that?
>
>I think the package would simply inherit from ‘guile-emacs’ and provide
>a different ‘name’, ‘version’, and ‘source’.
>
>Thanks,
>Ludo’.
[-- Attachment #2: Type: text/html, Size: 1858 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: emacs.scm: Suggest add emacs-next or emacs-snapshot
2015-11-13 0:26 ` tumashu
@ 2015-11-13 8:04 ` Ricardo Wurmus
2015-11-13 8:47 ` Ludovic Courtès
1 sibling, 0 replies; 11+ messages in thread
From: Ricardo Wurmus @ 2015-11-13 8:04 UTC (permalink / raw)
To: tumashu; +Cc: guix
tumashu <tumashu@163.com> writes:
> By the way, when I use the below command:
>
> guix build emacs-snapshot --with-source=./emacs-snapshot-20151111.tar.gz
>
> to build a new emacs-snapshot, How can i install it? I can't find any help on manual....
“guix build” will print a store item path at the very end. You can ask
Guix to install that path directly:
guix package -i /gnu/store/....
(I’m not sure about this but I remember doing something like this in the
recent past.)
~~ Ricardo
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: emacs.scm: Suggest add emacs-next or emacs-snapshot
2015-11-13 0:26 ` tumashu
2015-11-13 8:04 ` Ricardo Wurmus
@ 2015-11-13 8:47 ` Ludovic Courtès
2015-11-13 12:00 ` Feng Shu
1 sibling, 1 reply; 11+ messages in thread
From: Ludovic Courtès @ 2015-11-13 8:47 UTC (permalink / raw)
To: tumashu; +Cc: guix
tumashu <tumashu@163.com> skribis:
> By the way, when I use the below command:
>
> guix build emacs-snapshot --with-source=./emacs-snapshot-20151111.tar.gz
>
> to build a new emacs-snapshot, How can i install it? I can't find any help on manual....
Currently you have to do:
guix package -i $(guix build emacs --with-source=…/emacs-20151111.tar.gz)
Not as convenient as one would like. I guess we could add --with-source
directly in ‘guix package’.
Ludo’.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: emacs.scm: Suggest add emacs-next or emacs-snapshot
2015-11-12 12:52 ` Ludovic Courtès
2015-11-13 0:26 ` tumashu
@ 2015-11-13 11:56 ` Feng Shu
2015-11-14 11:32 ` Ludovic Courtès
1 sibling, 1 reply; 11+ messages in thread
From: Feng Shu @ 2015-11-13 11:56 UTC (permalink / raw)
To: guix-devel; +Cc: Feng Shu
ludo@gnu.org (Ludovic Courtès) writes:
> tumashu <tumashu@163.com> 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
>
> Now, it might make sense to also provide an ‘emacs-snapshot’ package,
> built from a Git checkout and regularly updated. Would you like to try
> that?
>
> I think the package would simply inherit from ‘guile-emacs’ and provide
> a different ‘name’, ‘version’, and ‘source’.
>
> Thanks,
> Ludo’.
--
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: emacs.scm: Suggest add emacs-next or emacs-snapshot
2015-11-13 8:47 ` Ludovic Courtès
@ 2015-11-13 12:00 ` Feng Shu
2015-11-13 14:44 ` Ricardo Wurmus
0 siblings, 1 reply; 11+ messages in thread
From: Feng Shu @ 2015-11-13 12:00 UTC (permalink / raw)
To: guix-devel; +Cc: Feng Shu
ludo@gnu.org (Ludovic Courtès) writes:
> Currently you have to do:
>
> guix package -i $(guix build emacs --with-source=…/emacs-20151111.tar.gz)
>
> Not as convenient as one would like. I guess we could add --with-source
> directly in ‘guix package’.
I agree and suggest add a way which can override name and verison, for
example:
guix package -i emacs-snapshot --with-source=/path/to/emacs.git --override-name=emacs-snapshot --override-version=20151111
--
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: emacs.scm: Suggest add emacs-next or emacs-snapshot
2015-11-13 12:00 ` Feng Shu
@ 2015-11-13 14:44 ` Ricardo Wurmus
2015-11-14 11:25 ` Ludovic Courtès
0 siblings, 1 reply; 11+ messages in thread
From: Ricardo Wurmus @ 2015-11-13 14:44 UTC (permalink / raw)
To: Feng Shu; +Cc: guix-devel
Feng Shu <tumashu@163.com> writes:
> ludo@gnu.org (Ludovic Courtès) writes:
>
>> Currently you have to do:
>>
>> guix package -i $(guix build emacs --with-source=…/emacs-20151111.tar.gz)
>>
>> Not as convenient as one would like. I guess we could add --with-source
>> directly in ‘guix package’.
>
> I agree and suggest add a way which can override name and verison, for
> example:
>
> guix package -i emacs-snapshot --with-source=/path/to/emacs.git --override-name=emacs-snapshot --override-version=20151111
I don’t like to add override-name and override-version flags. They
don’t seem very useful. After all, every different build gets its own
directory in the store, so “override-version” seems to be useless.
“override-name” just duplicates the package name, so I fail to see how
it would be an improvement.
I do agree that it would be a little nicer if we could build and install
a package from a directory, rather than just from a tarball.
~~ Ricardo
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: emacs.scm: Suggest add emacs-next or emacs-snapshot
2015-11-13 14:44 ` Ricardo Wurmus
@ 2015-11-14 11:25 ` Ludovic Courtès
0 siblings, 0 replies; 11+ messages in thread
From: Ludovic Courtès @ 2015-11-14 11:25 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: guix-devel, Feng Shu
Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> skribis:
> Feng Shu <tumashu@163.com> writes:
>
>> ludo@gnu.org (Ludovic Courtès) writes:
>>
>>> Currently you have to do:
>>>
>>> guix package -i $(guix build emacs --with-source=…/emacs-20151111.tar.gz)
>>>
>>> Not as convenient as one would like. I guess we could add --with-source
>>> directly in ‘guix package’.
>>
>> I agree and suggest add a way which can override name and verison, for
>> example:
>>
>> guix package -i emacs-snapshot --with-source=/path/to/emacs.git --override-name=emacs-snapshot --override-version=20151111
>
> I don’t like to add override-name and override-version flags. They
> don’t seem very useful. After all, every different build gets its own
> directory in the store, so “override-version” seems to be useless.
>
> “override-name” just duplicates the package name, so I fail to see how
> it would be an improvement.
Currently the name and version are inferred from the file/directory name
passed to --with-source. That seemed like a simple UI, at the expense
of less flexibility compared to what Feng Shu proposes.
It’s always possible to do something arbitrarily complex and then use
‘guix package --install-from-file’.
What’s missing though is the ability to pass --with-source to ‘guix
package’.
> I do agree that it would be a little nicer if we could build and install
> a package from a directory, rather than just from a tarball.
It’s already possible, but its name must match the package name.
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: emacs.scm: Suggest add emacs-next or emacs-snapshot
2015-11-13 11:56 ` Feng Shu
@ 2015-11-14 11:32 ` Ludovic Courtès
2015-11-15 7:06 ` Feng Shu
0 siblings, 1 reply; 11+ messages in thread
From: Ludovic Courtès @ 2015-11-14 11:32 UTC (permalink / raw)
To: Feng Shu; +Cc: guix-devel
"Feng Shu" <tumashu@163.com> skribis:
> ludo@gnu.org (Ludovic Courtès) writes:
>
>> tumashu <tumashu@163.com> 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’.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: emacs.scm: Suggest add emacs-next or emacs-snapshot
2015-11-14 11:32 ` Ludovic Courtès
@ 2015-11-15 7:06 ` Feng Shu
0 siblings, 0 replies; 11+ messages in thread
From: Feng Shu @ 2015-11-15 7:06 UTC (permalink / raw)
To: guix-devel; +Cc: Feng Shu
> 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
>
It is a good tip, thanks!
--
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2015-11-15 7:18 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-12 0:35 emacs.scm: Suggest add emacs-next or emacs-snapshot tumashu
2015-11-12 12:52 ` Ludovic Courtès
2015-11-13 0:26 ` tumashu
2015-11-13 8:04 ` Ricardo Wurmus
2015-11-13 8:47 ` Ludovic Courtès
2015-11-13 12:00 ` Feng Shu
2015-11-13 14:44 ` Ricardo Wurmus
2015-11-14 11:25 ` Ludovic Courtès
2015-11-13 11:56 ` Feng Shu
2015-11-14 11:32 ` Ludovic Courtès
2015-11-15 7:06 ` Feng Shu
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).