unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: mbcladwell@stihie.net
To: Vincent Legoll <vincent.legoll@gmail.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: How to reference a module defined in another package?
Date: Sat, 24 Apr 2021 07:56:37 -0500	[thread overview]
Message-ID: <20210424075637.Horde.lKOzEOtGCORo1wJjPdRYyeb@www.stihie.net> (raw)
In-Reply-To: <CAEwRq=rB5s=Jxafy5ZLg-kjT5L9-UVPT2xivsPrem-yPtWO8og@mail.gmail.com>

Thanks but I don't see how channels will help me. Artanis is in the  
public Guix repository. If I query my local store for the missing  
module:

mbc@HP8300:~/temp/limsn$ find /gnu/store -wholename '*artanis/utils*'

/gnu/store/2slcmvlhyr0n5chrr6nyz0df886xb31s-artanis-0.3.1/share/guile/site/2.2/artanis/utils.scm
/gnu/store/2slcmvlhyr0n5chrr6nyz0df886xb31s-artanis-0.3.1/lib/guile/2.2/site-ccache/artanis/utils.go
/gnu/store/np3v3bifspgqslc7xl2rz2sg08q2wvzq-artanis-0.4.1/share/guile/site/2.2/artanis/utils.scm
/gnu/store/np3v3bifspgqslc7xl2rz2sg08q2wvzq-artanis-0.4.1/lib/guile/2.2/site-ccache/artanis/utils.go
/gnu/store/0zq9d6gjb6r4d98lgfkh3ccv57dbacq4-artanis-0.4.1/share/guile/site/2.2/artanis/utils.scm
/gnu/store/0zq9d6gjb6r4d98lgfkh3ccv57dbacq4-artanis-0.4.1/lib/guile/2.2/site-ccache/artanis/utils.go
etc.

Likewise I can find artanis/artanis.go and artanis/irregex.go so they  
are in the local store.
If I comment out the artanis/artanis native-input:

     ;;("artanis" ,artanis)

in my guix.scm  I get the error:
  ice-9/boot-9.scm:1669:16: In procedure raise-exception:
no code for module (artanis artanis)
make: *** [Makefile:1878: limsn/app/controllers/login.go] Error 1
make: *** Waiting for unfinished jobs....

   So a native-input of   ("artanis" ,artanis)  provides artanis/artanis.go
   How do I specify an input for artanis/utils.go that is within the  
artanis package but not defined as an external module?  But is in my  
store as artanis/utils.go?

   The closest I find in the manual would be something like:
      ("artanis:utils" ,artanis "utils")

      Which results in the error:
      guix package: error: reference to invalid output 'utils' of  
derivation  
'/gnu/store/v21j7g5xy6r48n94dbj2izs69cb48y5p-artanis-0.4.1.drv'

   Note that I (use-modules ....(artanis irregex)(artanis  
artanis)(artanis utils)) but that does not error?

   Also, at the beginning of the packaging log file where environment  
variables are displayed I see:

environment variable `GUILE_LOAD_PATH' unset
environment variable `GUILE_LOAD_COMPILED_PATH' unset
environment variable `BASH_LOADABLES_PATH' unset

Is this OK? I am in a protected GUIX environment that should not be  
dependent on system variables, correct?
   Thanks
   Mortimer

Quoting Vincent Legoll <vincent.legoll@gmail.com>:

> On Sat, Apr 24, 2021 at 12:08 AM Vincent Legoll
> <vincent.legoll@gmail.com> wrote:
>> I think this may be of help:
>>
>> https://guix.gnu.org/cookbook/en/html_node/GUIX_005fPACKAGE_005fPATH.html
>
> And the first thing this page tells you, is to go have a look at the
> new way of doing
> this kind of things: channels.
>
> https://guix.gnu.org/manual/en/html_node/Channels.html#Channels
>
> So I think I also have to read about the new world order... :-)
>
> --
> Vincent Legoll





  reply	other threads:[~2021-04-24 12:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-23 19:57 How to reference a module defined in another package? mbcladwell
2021-04-23 22:08 ` Vincent Legoll
2021-04-23 22:13   ` Vincent Legoll
2021-04-24 12:56     ` mbcladwell [this message]
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=20210424075637.Horde.lKOzEOtGCORo1wJjPdRYyeb@www.stihie.net \
    --to=mbcladwell@stihie.net \
    --cc=help-guix@gnu.org \
    --cc=vincent.legoll@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).