zimoun <zimon.touto...@gmail.com> writes:
>>> --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--- Oh, my bad: $GUIX_EXTENSIONS_PATH must actually include the “/guix/extensions” sub-directory. So if the file is at /tmp/foo/guix/extensions/bar.scm then $GUIX_EXTENSIONS_PATH should be /tmp/foo/guix/extensions. Sorry for the confusion! -- Ricardo