* A Suggestion about guix-devel-mode
@ 2017-04-11 23:10 Feng Shu
2017-04-12 8:09 ` Alex Kost
0 siblings, 1 reply; 5+ messages in thread
From: Feng Shu @ 2017-04-11 23:10 UTC (permalink / raw)
To: guix-devel; +Cc: Feng Shu
Maybe we should add three addition keybinding:
1. Force rebuild the package defined by the current variable definition.
2. Install/upgrade the package defined by the current variable definition.
3 Remove package defined by the current variable definition.
#+BEGIN_COMMENT
4.9 Development
By default, when you open a Scheme file, guix-devel-mode will be activated (if you don’t want it, set guix-devel-activate-mode to nil). This minor mode provides the following key bindings:
C-c . k
Copy the name of the current Guile module into kill ring (guix-devel-copy-module-as-kill).
C-c . u
Use the current Guile module. Often after opening a Scheme file, you want to use a module it defines, so you switch to the Geiser REPL and write ,use (some module) there. You may just use this command instead (guix-devel-use-module).
C-c . b
Build a package defined by the current variable definition. The building process is run in the current Geiser REPL. If you modified the current package definition, don’t forget to reevaluate it before calling this command—for example, with C-M-x (see To eval or not to eval in Geiser User Manual) (guix-devel-build-package-definition).
C-c . s
Build a source derivation of the package defined by the current variable definition. This command has the same meaning as guix build -S shell command (see Invoking guix build) (guix-devel-build-package-source).
C-c . l
Lint (check) a package defined by the current variable definition (see Invoking guix lint) (guix-devel-lint-package).
#+END_COMMENT
--
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: A Suggestion about guix-devel-mode
2017-04-11 23:10 A Suggestion about guix-devel-mode Feng Shu
@ 2017-04-12 8:09 ` Alex Kost
2017-04-13 2:19 ` Chris Marusich
0 siblings, 1 reply; 5+ messages in thread
From: Alex Kost @ 2017-04-12 8:09 UTC (permalink / raw)
To: Feng Shu; +Cc: guix-devel
To make it clear, this is a question about Emacs-Guix.
Feng Shu (2017-04-12 07:10 +0800) wrote:
> Maybe we should add three addition keybinding:
>
> 1. Force rebuild the package defined by the current variable definition.
What do you mean? What is the analogous guix shell command?
> 2. Install/upgrade the package defined by the current variable definition.
> 3 Remove package defined by the current variable definition.
Hm, interesting idea, I need to think about it, thanks!
--
Alex
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: A Suggestion about guix-devel-mode
2017-04-12 8:09 ` Alex Kost
@ 2017-04-13 2:19 ` Chris Marusich
2017-04-13 14:55 ` Ludovic Courtès
0 siblings, 1 reply; 5+ messages in thread
From: Chris Marusich @ 2017-04-13 2:19 UTC (permalink / raw)
To: Alex Kost; +Cc: guix-devel, Feng Shu
[-- Attachment #1: Type: text/plain, Size: 597 bytes --]
Alex Kost <alezost@gmail.com> writes:
> To make it clear, this is a question about Emacs-Guix.
>
> Feng Shu (2017-04-12 07:10 +0800) wrote:
>
>> Maybe we should add three addition keybinding:
>>
>> 1. Force rebuild the package defined by the current variable definition.
>
> What do you mean? What is the analogous guix shell command?
I could be wrong, but I don't think you can in general force a rebuild.
The only way to force a rebuild that I know of is to GC the store path
and then rebuild the package or derivation. If I'm wrong, someone
please correct me!
--
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: A Suggestion about guix-devel-mode
2017-04-13 2:19 ` Chris Marusich
@ 2017-04-13 14:55 ` Ludovic Courtès
2017-04-13 15:04 ` Chris Marusich
0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2017-04-13 14:55 UTC (permalink / raw)
To: Chris Marusich; +Cc: guix-devel, Feng Shu, Alex Kost
Chris Marusich <cmmarusich@gmail.com> skribis:
> Alex Kost <alezost@gmail.com> writes:
>
>> To make it clear, this is a question about Emacs-Guix.
>>
>> Feng Shu (2017-04-12 07:10 +0800) wrote:
>>
>>> Maybe we should add three addition keybinding:
>>>
>>> 1. Force rebuild the package defined by the current variable definition.
>>
>> What do you mean? What is the analogous guix shell command?
>
> I could be wrong, but I don't think you can in general force a rebuild.
> The only way to force a rebuild that I know of is to GC the store path
> and then rebuild the package or derivation. If I'm wrong, someone
> please correct me!
You can also force a rebuild with “guix build foo --check”, whose main
purpose is to check for bit-reproducibility.
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: A Suggestion about guix-devel-mode
2017-04-13 14:55 ` Ludovic Courtès
@ 2017-04-13 15:04 ` Chris Marusich
0 siblings, 0 replies; 5+ messages in thread
From: Chris Marusich @ 2017-04-13 15:04 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: guix-devel, Feng Shu, Alex Kost
[-- Attachment #1: Type: text/plain, Size: 900 bytes --]
ludo@gnu.org (Ludovic Courtès) writes:
> Chris Marusich <cmmarusich@gmail.com> skribis:
>
>> Alex Kost <alezost@gmail.com> writes:
>>
>>> To make it clear, this is a question about Emacs-Guix.
>>>
>>> Feng Shu (2017-04-12 07:10 +0800) wrote:
>>>
>>>> Maybe we should add three addition keybinding:
>>>>
>>>> 1. Force rebuild the package defined by the current variable definition.
>>>
>>> What do you mean? What is the analogous guix shell command?
>>
>> I could be wrong, but I don't think you can in general force a rebuild.
>> The only way to force a rebuild that I know of is to GC the store path
>> and then rebuild the package or derivation. If I'm wrong, someone
>> please correct me!
>
> You can also force a rebuild with “guix build foo --check”, whose main
> purpose is to check for bit-reproducibility.
Good to know! Thank you for the tip.
--
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-04-13 15:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-11 23:10 A Suggestion about guix-devel-mode Feng Shu
2017-04-12 8:09 ` Alex Kost
2017-04-13 2:19 ` Chris Marusich
2017-04-13 14:55 ` Ludovic Courtès
2017-04-13 15:04 ` Chris Marusich
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).