From: sirgazil <sirgazil@zoho.com>
To: "Guix Help" <help-guix@gnu.org>
Subject: Appropriate way to use Guix API from a Guile program
Date: Wed, 20 May 2020 16:38:02 -0500 [thread overview]
Message-ID: <17234059da3.b5e01d1e8240.9032082708652182693@zoho.com> (raw)
In-Reply-To:
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
★★★★★★★★★★★★★★★★★★★★
This error is familiar. I got it in a slightly different context before when running the guix command directly from a terminal (https://lists.gnu.org/archive/html/help-guix/2020-05/msg00045.html).
In the context of Guile scripting, how do I know which Guix is being imported?
Also, I didn't include guix as an input in the Guix package of the script (though it worked). Thinking that it could make a difference, I tried adding guix as an input, pulled the new package definition, upgraded the package, ran the script, but got the same error.
---
https://sirgazil.bitbucket.io/
next reply other threads:[~2020-05-20 21:38 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-20 21:38 sirgazil [this message]
2020-05-21 12:31 ` Appropriate way to use Guix API from a Guile program Efraim Flashner
2020-05-21 12:44 ` Marius Bakke
2020-05-21 13:25 ` sirgazil
2020-05-21 20:43 ` sirgazil
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=17234059da3.b5e01d1e8240.9032082708652182693@zoho.com \
--to=sirgazil@zoho.com \
--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).