unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Appropriate way to use Guix API from a Guile program
@ 2020-05-20 21:38 sirgazil
  2020-05-21 12:31 ` Efraim Flashner
  2020-05-21 12:44 ` Marius Bakke
  0 siblings, 2 replies; 15+ messages in thread
From: sirgazil @ 2020-05-20 21:38 UTC (permalink / raw)
  To: Guix Help

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/





^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2020-05-26 16:01 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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).