From: zimoun <zimon.toutoune@gmail.com>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: GUIX_EXTENSIONS_PATH error?
Date: Fri, 15 Jan 2021 21:55:53 +0100 [thread overview]
Message-ID: <86eeilly1y.fsf@gmail.com> (raw)
In-Reply-To: <87zh1aapzi.fsf@elephly.net>
Hi,
On Fri, 15 Jan 2021 at 21:45, Ricardo Wurmus <rekado@elephly.net> wrote:
> zimoun <zimon.toutoune@gmail.com> writes:
>
>> In the mood for documenting the recent GUIX_EXTENSIONS_PATH, I am
>> missing something because I hit an error.
>
> It’s not your fault. It’s hard to do this without documentation.
It’s so cool that I would like to document it. ;-) Sorry to not dive in
the code first.
>> --8<---------------cut here---------------start------------->8---
>> $ cat /tmp/foo/bar.scm
>> (define-module (guix extensions bar)
>> #:use-module (guix scripts))
>
> This right here is the problem. The module name and the file name do
> not match. The file must be
> $GUIX_EXTENSIONS_PATH/guix/extensions/bar.scm and provide the module
> (guix extensions bar).
Ah yeah, that makes sense. Now, no error but nothing showed:
--8<---------------cut here---------------start------------->8---
$ cat $GUIX_EXTENSIONS_PATH/guix/extensions/bar.scm
(define-module (guix extensions bar)
#:use-module (guix scripts)
#:export (guix-bar)
)
(define-command (guix-bar . args)
(category extension)
(synopsis "a bar with beer")
(pk "dumb"))
$ guix --help | grep bar
--8<---------------cut here---------------end--------------->8---
Cheers,
simon
next prev parent reply other threads:[~2021-01-15 21:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-15 20:33 GUIX_EXTENSIONS_PATH error? zimoun
2021-01-15 20:45 ` Ricardo Wurmus
2021-01-15 20:55 ` zimoun [this message]
2021-01-15 22:24 ` Ricardo Wurmus
2021-01-15 22:32 ` zimoun
2021-01-15 22:42 ` Ricardo Wurmus
2021-01-15 22:58 ` zimoun
2021-01-15 23:17 ` Ricardo Wurmus
2021-01-16 1:49 ` zimoun
2021-02-01 7:41 ` GUIX_EXTENSIONS_PATH pattern zimoun
2021-02-08 22:37 ` Ricardo Wurmus
2021-02-09 0:40 ` zimoun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86eeilly1y.fsf@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=guix-devel@gnu.org \
--cc=rekado@elephly.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).