From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Dehnel Subject: Re: "no code for module" Date: Sat, 28 Dec 2019 17:17:38 -0600 Message-ID: References: <218506A8-CC07-47D1-B1F1-A32E8E78E4DA@lepiller.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:58097) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilLLF-0003mE-6n for help-guix@gnu.org; Sat, 28 Dec 2019 18:17:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ilLLD-0000pJ-UP for help-guix@gnu.org; Sat, 28 Dec 2019 18:17:53 -0500 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:37022) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ilLLD-0000kz-N8 for help-guix@gnu.org; Sat, 28 Dec 2019 18:17:51 -0500 Received: by mail-wm1-x32b.google.com with SMTP id f129so11407165wmf.2 for ; Sat, 28 Dec 2019 15:17:51 -0800 (PST) In-Reply-To: <218506A8-CC07-47D1-B1F1-A32E8E78E4DA@lepiller.eu> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Julien Lepiller Cc: help-guix@gnu.org Yes, that was the problem, thanks. On Sat, Dec 28, 2019 at 5:03 PM Julien Lepiller wrote: > > Le 28 d=C3=A9cembre 2019 23:28:50 GMT+01:00, Nathan Dehnel a =C3=A9crit : > >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) > =E2=80=A6) > > Instead of simple use-modules. Does it make sense?