unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: Nathan Dehnel <ncdehnel@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: "no code for module"
Date: Sat, 28 Dec 2019 23:57:56 +0100	[thread overview]
Message-ID: <87imm0njm3.fsf@elephly.net> (raw)
In-Reply-To: <CAEEhgEsNMTLtO45mm_Fv9eYvMcmgZw62uoQbXK8t9g5S4GkyVA@mail.gmail.com>


Nathan Dehnel <ncdehnel@gmail.com> writes:

> 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))

You are not showing us how you are refering to this file.  “deadbeef” is
a variable, but something in your channel specification treats it as a
module.  The easiest way to fix this is to turn the above code into a
proper module, i.e. a file with a define-module expression at the top
and a matching name.

Can you show us the rest of your code?

--
Ricardo

  reply	other threads:[~2019-12-28 22:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-28 22:28 "no code for module" Nathan Dehnel
2019-12-28 22:57 ` Ricardo Wurmus [this message]
2019-12-28 23:03 ` Julien Lepiller
2019-12-28 23:17   ` Nathan Dehnel

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=87imm0njm3.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=help-guix@gnu.org \
    --cc=ncdehnel@gmail.com \
    /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.
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).