[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "no code for module"
From: |
Nathan Dehnel |
Subject: |
Re: "no code for module" |
Date: |
Sat, 28 Dec 2019 17:17:38 -0600 |
Yes, that was the problem, thanks.
On Sat, Dec 28, 2019 at 5:03 PM Julien Lepiller <address@hidden> wrote:
>
> Le 28 décembre 2019 23:28:50 GMT+01:00, Nathan Dehnel <address@hidden> a
> écrit :
> >I made a package which is basically a clone of the "hello" package
> >example.
> >
> >(use-modules (guix packages)
> > (guix download)
> > (guix build-system gnu)
> > (guix licenses))
> >(define-public deadbeef
> > (package
> > (name "deadbeef")
> > (version "1.8.2")
> > (source (origin
> > (method url-fetch)
> > (uri (string-append
> >"https://github.com/DeaDBeeF-Player/deadbeef/archive/" version
> > ".tar.gz"))
> > (sha256
> > (base32
> > "1wsx62gi1bfd9rx5br2gprq4q3sfp7iqj1inxhhiqjasbm85vg50"))))
> > (build-system gnu-build-system)
> > (synopsis "A music player for *nix-like systems and OS X")
> > (description
> > "GNU Hello prints the message \"Hello, world!\" and then exits. It
> >serves as an example of standard GNU coding practices. As such, it
> >supports
> >command-line arguments, multiple languages, and so on.")
> > (home-page "https://deadbeef.sourceforge.io/")
> > (license gpl2)))
> >
> >I added it to a channel, and added the channel, then ran guix pull. I
> >got this error:
> >
> >(repl-version 0 0)
> >(exception misc-error (value #f) (value "~A ~S") (value ("no code for
> >module" (deadbeef))) (value #f))
> >
> >Any idea what the problem is?
>
> I think you need to make it an actual guile module, like this:
>
> (define-module (deadbeef)
> #:use-module (guix packages)
> #:use-module (guix build-system gnu)
> …)
>
> Instead of simple use-modules. Does it make sense?