all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Does define-command automatically add the subcommand to the guix CLI?
@ 2022-11-15 14:59 jgart
  2022-11-15 15:15 ` Ricardo Wurmus
  0 siblings, 1 reply; 8+ messages in thread
From: jgart @ 2022-11-15 14:59 UTC (permalink / raw)
  To: Guix Help

hi,

Does define-command automagically add the subcommand to the guix CLI?

For example, guix-format:

https://github.com/bqv/rc/blob/live/guix/scripts/format.scm#L21


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Does define-command automatically add the subcommand to the guix CLI?
  2022-11-15 14:59 Does define-command automatically add the subcommand to the guix CLI? jgart
@ 2022-11-15 15:15 ` Ricardo Wurmus
  2022-11-15 16:42   ` (
  0 siblings, 1 reply; 8+ messages in thread
From: Ricardo Wurmus @ 2022-11-15 15:15 UTC (permalink / raw)
  To: jgart; +Cc: help-guix


jgart <jgart@dismail.de> writes:

> Does define-command automagically add the subcommand to the guix CLI?
>
> For example, guix-format:
>
> https://github.com/bqv/rc/blob/live/guix/scripts/format.scm#L21

No, you need to set GUIX_EXTENSIONS_PATH.

-- 
Ricardo


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Does define-command automatically add the subcommand to the guix CLI?
  2022-11-15 15:15 ` Ricardo Wurmus
@ 2022-11-15 16:42   ` (
  2022-11-15 18:05     ` jgart
  2022-11-16  9:09     ` zimoun
  0 siblings, 2 replies; 8+ messages in thread
From: ( @ 2022-11-15 16:42 UTC (permalink / raw)
  To: Ricardo Wurmus, jgart; +Cc: help-guix

On Tue Nov 15, 2022 at 3:15 PM GMT, Ricardo Wurmus wrote:
> No, you need to set GUIX_EXTENSIONS_PATH.

You don't need to anymore, because of commit bbc1735, no?

    -- (


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Does define-command automatically add the subcommand to the guix CLI?
  2022-11-15 16:42   ` (
@ 2022-11-15 18:05     ` jgart
  2022-11-15 18:08       ` (
  2022-11-16  9:09     ` zimoun
  1 sibling, 1 reply; 8+ messages in thread
From: jgart @ 2022-11-15 18:05 UTC (permalink / raw)
  To: (; +Cc: Ricardo Wurmus, help-guix

On Tue, 15 Nov 2022 16:42:29 +0000 "(" <paren@disroot.org> wrote:
> You don't need to anymore, because of commit bbc1735, no?

hi paren,

Does bbc1735 work on foreign distros also or ¯\_(ツ)_/¯?


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Does define-command automatically add the subcommand to the guix CLI?
  2022-11-15 18:05     ` jgart
@ 2022-11-15 18:08       ` (
  2022-11-15 19:04         ` jgart
  0 siblings, 1 reply; 8+ messages in thread
From: ( @ 2022-11-15 18:08 UTC (permalink / raw)
  To: jgart; +Cc: Ricardo Wurmus, help-guix

Heya,

On Tue Nov 15, 2022 at 6:05 PM GMT, jgart wrote:
> On Tue, 15 Nov 2022 16:42:29 +0000 "(" <paren@disroot.org> wrote:
> Does bbc1735 work on foreign distros also or ¯\_(ツ)_/¯?

I think so. What you need to do is package up your extension, and make sure
it installs the extension code to #$output/share/guix/extensions. When it's
installed that directory should be added to GUIX_EXTENSIONS_PATH automatically.

    -- (


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Does define-command automatically add the subcommand to the guix CLI?
  2022-11-15 18:08       ` (
@ 2022-11-15 19:04         ` jgart
  2022-11-16  9:15           ` zimoun
  0 siblings, 1 reply; 8+ messages in thread
From: jgart @ 2022-11-15 19:04 UTC (permalink / raw)
  To: (; +Cc: Ricardo Wurmus, help-guix

On Tue, 15 Nov 2022 18:08:23 +0000 "(" <paren@disroot.org> wrote:
> Heya,
> 
> On Tue Nov 15, 2022 at 6:05 PM GMT, jgart wrote:
> it installs the extension code to #$output/share/guix/extensions. When it's
> installed that directory should be added to GUIX_EXTENSIONS_PATH automatically.

There's no examples currently in the code base of an extension like
that, right?

But I get what you're sayin


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Does define-command automatically add the subcommand to the guix CLI?
  2022-11-15 16:42   ` (
  2022-11-15 18:05     ` jgart
@ 2022-11-16  9:09     ` zimoun
  1 sibling, 0 replies; 8+ messages in thread
From: zimoun @ 2022-11-16  9:09 UTC (permalink / raw)
  To: (, Ricardo Wurmus, jgart; +Cc: help-guix

Hi,

On Tue, 15 Nov 2022 at 16:42, "(" <paren@disroot.org> wrote:
> On Tue Nov 15, 2022 at 3:15 PM GMT, Ricardo Wurmus wrote:
>> No, you need to set GUIX_EXTENSIONS_PATH.
>
> You don't need to anymore, because of commit bbc1735, no?

Assuming the extension is installed, no?  If the extension is a package
and installed as such, indeed.  Otherwise, GUIX_EXTENSIONS_PATH.  From
my understanding.


Cheers,
simon


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Does define-command automatically add the subcommand to the guix CLI?
  2022-11-15 19:04         ` jgart
@ 2022-11-16  9:15           ` zimoun
  0 siblings, 0 replies; 8+ messages in thread
From: zimoun @ 2022-11-16  9:15 UTC (permalink / raw)
  To: jgart, (; +Cc: Ricardo Wurmus, help-guix

Hi,

On Tue, 15 Nov 2022 at 13:04, jgart <jgart@dismail.de> wrote:
> On Tue, 15 Nov 2022 18:08:23 +0000 "(" <paren@disroot.org> wrote:
>> Heya,
>> 
>> On Tue Nov 15, 2022 at 6:05 PM GMT, jgart wrote:
>> it installs the extension code to #$output/share/guix/extensions. When it's
>> installed that directory should be added to GUIX_EXTENSIONS_PATH automatically.
>
> There's no examples currently in the code base of an extension like
> that, right?

Well, see guix-modules.  I did an attempt for a simple “hello world“
example with patch#58339 [1].  Maybe I will resume it if my motivation
is back…

1: http://issues.guix.gnu.org/issue/58339

Cheers,
simon


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-11-16  9:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-15 14:59 Does define-command automatically add the subcommand to the guix CLI? jgart
2022-11-15 15:15 ` Ricardo Wurmus
2022-11-15 16:42   ` (
2022-11-15 18:05     ` jgart
2022-11-15 18:08       ` (
2022-11-15 19:04         ` jgart
2022-11-16  9:15           ` zimoun
2022-11-16  9:09     ` zimoun

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.