From: sirgazil <sirgazil@zoho.com>
To: "Marius Bakke" <mbakke@fastmail.com>
Cc: "Guix Help" <help-guix@gnu.org>
Subject: Re: Appropriate way to use Guix API from a Guile program
Date: Thu, 21 May 2020 15:43:56 -0500 [thread overview]
Message-ID: <17238fa6f3f.1085042d523521.3962992471488424781@zoho.com> (raw)
In-Reply-To: <878shla245.fsf@devup.no>
The error is gone after reconfiguring, but I still have a question about using Guix API from a Guile script.
---- On Thu, 21 May 2020 07:44:58 -0500 Marius Bakke <mbakke@fastmail.com> wrote ----
> sirgazil <sirgazil@zoho.com> writes:
>
> > Hi,
> >
> > I use Guix's GNU system.
> >
> > I had written a Guile script that called Guix procedures to manipulate profiles. I put it in a Guix package in a custom channel and installed it. It used to work, but now it fails with an error I can also reproduce when trying to do something similar from a Guile REPL. For instance:
> >
> > ★★★★★★★★★★★★★★★★★★★★
> > $ mkdir profile-x
> > $ guile
> > GNU Guile 3.0.2
> > [...]
> > scheme@(guile-user)> (use-modules (guix scripts package))
> > scheme@(guile-user)> (guix-package "-m" "manifest.scm" "-p" "profile-x/profile-x")
> > error: glibc-bootstrap-system-2.2.5.patch: patch not found
> > ★★★★★★★★★★★★★★★★★★★★
>
> There are a couple of things going on here. Calling the Guix APIs from
> Guile will use the 'system-installed' Guix, unless you have fiddled with
> GUILE_LOAD_PATH.
Hmm, and is there any way for a Guile program installed as a Guix package to use the modules of the Guix obtained by the user with "guix pull" and also being able to take advantage of user-defined channels? Or is this just not possible at all?
Because I just tried creating a profile using my script and a manifest that includes one package from a custom channel of mine, and, as expected, I get an error:
★★★★★★★★★★★★★★★★★★★★
error: guile-glab: unknown package
error: failed to load 'requirements/guix.scm':
gnu/packages.scm:523:4: In procedure specification->package+output:
Throw to key `quit' with args `(1)'.
★★★★★★★★★★★★★★★★★★★★
next prev parent reply other threads:[~2020-05-21 20:45 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-20 21:38 Appropriate way to use Guix API from a Guile program sirgazil
2020-05-21 12:31 ` Efraim Flashner
2020-05-21 12:44 ` Marius Bakke
2020-05-21 13:25 ` sirgazil
2020-05-21 20:43 ` sirgazil [this message]
2020-05-21 20:52 ` Marius Bakke
2020-05-21 22:28 ` sirgazil
2020-05-21 23:02 ` zimoun
2020-05-22 7:43 ` Konrad Hinsen
2020-05-22 8:14 ` zimoun
2020-05-26 8:25 ` Konrad Hinsen
2020-05-26 16:00 ` Konrad Hinsen
2020-05-22 8:56 ` Alex Sassmannshausen
2020-05-22 14:28 ` sirgazil
2020-05-22 13:52 ` sirgazil
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=17238fa6f3f.1085042d523521.3962992471488424781@zoho.com \
--to=sirgazil@zoho.com \
--cc=help-guix@gnu.org \
--cc=mbakke@fastmail.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).