* Question about guix system disk-image
@ 2017-08-20 13:44 ng0
2017-08-21 14:09 ` Ricardo Wurmus
0 siblings, 1 reply; 2+ messages in thread
From: ng0 @ 2017-08-20 13:44 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 1249 bytes --]
To quote myself in full (with some corrections):
I have a rather easy question about the guix system disk-image command.
I have read most of the code around it. We seem to not auto-compile the
gnu/system/install.scm module, we just use it as an argument. So far I
just assumed this only works when you are in the root of the git checkout
of the guix source.
So I think I still don't understand the full PATH perspective/view.
Will it work when I move elsewhere? Do I have to have the git checkout
or could we move it whereever and it'd still be functional?
Any further modules I should read to unerstand it?
What I'm trying to understand is how I could reduce
guix system disk-image ~/src/infotropique/infotropique/infotropique/system/install-core.scm
to just a single infotropique/system/install-core.scm.
My theory is to just add the PATH (to be changed) to PATH.
Or why don't we auto-compile it and add it (install.scm) to the GUILE_LOAD_PATH?
Anyway I will be experimenting with just this, but answers to these questions
help me to define a better solution.
Thanks!
--
ng0
GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
GnuPG: https://n0is.noblogs.org/my-keys
https://www.infotropique.org https://krosos.org
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Question about guix system disk-image
2017-08-20 13:44 Question about guix system disk-image ng0
@ 2017-08-21 14:09 ` Ricardo Wurmus
0 siblings, 0 replies; 2+ messages in thread
From: Ricardo Wurmus @ 2017-08-21 14:09 UTC (permalink / raw)
To: ng0; +Cc: guix-devel
ng0 <ng0@infotropique.org> writes:
[…]
> So I think I still don't understand the full PATH perspective/view.
[…]
> My theory is to just add the PATH (to be changed) to PATH.
Do you really mean “PATH” or something else? “PATH” is only used by the
shell to find the full path to executables when only their names are
given. This is unrelated to how Guile finds modules. And that, too, is
unrelated to how “guix system disk-image” works.
> What I'm trying to understand is how I could reduce
> guix system disk-image ~/src/infotropique/infotropique/infotropique/system/install-core.scm
> to just a single infotropique/system/install-core.scm.
“guix system disk-image” takes a (relative or absolute) path to a file.
It then evaluates “(load* the-file-path)”. If the current working
directory is equal to the directory containing the file then all a user
needs to provide is the basename. A user can also provide an absolute
path or a relative path (starting from the current work directory).
What matters is only that “load*” gets a file name as an argument. It
turns the file name into an absolute name and then simply “load”s it.
This bypasses GUILE_LOAD_PATH.
--
Ricardo
GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
https://elephly.net
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-08-21 14:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-20 13:44 Question about guix system disk-image ng0
2017-08-21 14:09 ` Ricardo Wurmus
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).