help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to reference a module defined in another package?


From: mbcladwell
Subject: Re: How to reference a module defined in another package?
Date: Sat, 24 Apr 2021 07:56:37 -0500
User-agent: Horde Application Framework 5

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 via email to

[Prev in Thread] Current Thread [Next in Thread]