On Thu, 13 Feb 2025 at 19:09, Tobias Geerinckx-Rice <m...@tobias.gr> wrote:
>
> Hi Laurence,
>
> Not an expert on GUIX_PACKAGE_PATH semantics, but they aren't relevant ‘yet’. 
>  You need to first fix this syntax error you might've missed:
>
> >$ guix build my-packages/zasm
> >/home/laurence/src/my-channel/my-packages/zasm.scm:2:2: warning:
> >expected keyword arg
>
> DEFINE-MODULE takes #:keyword arguments, e.g.,
>
>   (define-module (my-packages zasm)
>     #:use-module (guix packages)
>     #:use-module (guix download)
>     …)




On Thu, 13 Feb 2025 at 19:13, Ian Eure <i...@retrospec.tv> wrote:
>
> Hi Rochfort,
>
> Your define-module form has an error, so Guile can't load it, so it doesn't 
> see the package.  The "warning: expected keyword arg" message is trying to 
> communicate this.
>
> I'm on a phone, so can't give you a link, but any module in (gnu packages) 
> will have an example you can follow.



Thank you both.

Tobias was correct about the #:use-module point.  I had copied the
example from the manual, which does use #:use-module, but had replaced
it with use-modules.

Replacing use-modules with multiple #:use-modules statements solves
the "expected keyword arg" error, but unfortunately guix build still
reports:

~ $ guix build -L ~/src/my-channel my-packages/zasm
guix build: error: my-packages/zasm: unknown package





As an aside, my reasoning for replacing "#:use-module" was that when
writing my home config I noticed the example that is provided in your
home directory uses "#:use-module", but "guix home import" produces a
file that uses "use-modules".  I assumed you could replace the former
with the latter.

If you have any pointers as to the difference, I'd appreciate it.

Reply via email to