unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: mbcladwell@stihie.net
To: help-guix@gnu.org
Subject: How to reference a module defined in another package?
Date: Fri, 23 Apr 2021 14:57:00 -0500	[thread overview]
Message-ID: <20210423145700.Horde.eqD2H-89KhXCmJyIaPtzwGz@www.stihie.net> (raw)


Hi,
I am trying to package an application, my guix.scm is below.  The  
build starts OK but fails with the error:

ice-9/boot-9.scm:1669:16: In procedure raise-exception:
no code for module (artanis utils)
make: *** [Makefile:1878: limsn/app/controllers/target.go] Error 1
command "make" "-j" "4" failed with status 2

artanis/utils.scm is a file within artanis. I use-module (artanis  
utils) to no effect.  Within artanis, utils is defined as a module:

(define-module (artanis artanis)
   #:use-module (artanis utils)
   #:use-module (artanis config)
   #:use-module (artanis env).....

I tried ("artanis:utils" ,artanis "utils") but that doesn't work.
How do I specify artanis/utils.scm as an input module?
Do I need to package artanis/utils.scm separately?
Thanks
Mortimer


===guix.scm===================

(use-modules
   (guix packages)
   ((guix licenses) #:prefix license:)
   (guix download)
   (guix build-system gnu)
   (gnu packages)
   (gnu packages autotools)
   (gnu packages guile)
   (gnu packages guile-xyz)
   (gnu packages pkg-config)
   (gnu packages texinfo)
   (artanis artanis)
   (artanis utils)(artanis irregex))

(package
   (name "limsn")
   (version "0.1")
   (source "./limsn-0.1.tar.gz")
   (build-system gnu-build-system)
   (arguments `())
   (native-inputs
     `(("autoconf" ,autoconf)
       ("automake" ,automake)
       ("pkg-config" ,pkg-config)
       ("texinfo" ,texinfo)
       ("artanis" ,artanis)
       ))
   (inputs `(("guile" ,guile-3.0)
		       ))
   (propagated-inputs `())
   (synopsis "")
   (description "")
   (home-page "www.acme.com")
   (license license:gpl3+))




             reply	other threads:[~2021-04-23 20:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-23 19:57 mbcladwell [this message]
2021-04-23 22:08 ` How to reference a module defined in another package? Vincent Legoll
2021-04-23 22:13   ` Vincent Legoll
2021-04-24 12:56     ` mbcladwell
2021-04-24 18:18       ` Vincent Legoll
2021-04-25 16:08 ` Maxime Devos
2021-04-26  8:19 ` Ricardo Wurmus

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=20210423145700.Horde.eqD2H-89KhXCmJyIaPtzwGz@www.stihie.net \
    --to=mbcladwell@stihie.net \
    --cc=help-guix@gnu.org \
    /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).