Hi, On Fri, 15 Jan 2021 at 21:45, Ricardo Wurmus <rek...@elephly.net> wrote: > zimoun <zimon.touto...@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