unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Scripting guix in guile
@ 2019-08-31 17:03 Konrad Hinsen
  2019-08-31 17:38 ` Jesse Gibbons
  2019-09-02 11:50 ` Ludovic Courtès
  0 siblings, 2 replies; 7+ messages in thread
From: Konrad Hinsen @ 2019-08-31 17:03 UTC (permalink / raw)
  To: help-guix

Hi everyone,

I'd like to write Guile scripts that inspect Guix, for example analyze
the packages is my profile. That turned out to be a lot more difficult
than I expected, and in fact I haven't found a satisfying general
solution yet, meaning a script that I could publish in such a way that
any Guix user could download and run it without modification.

The problems I see are

 1. What to put into the #! line to locate Guile.
 2. How to construct the load path to make sure it includes
    Guix as installed under $HOME/.config/guix/current

I wonder if could somehow hijack 'guix repl', which solves these
problems for a REPL but not for scripts.

Any ideas?

Konrad

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

end of thread, other threads:[~2019-09-04 10:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-31 17:03 Scripting guix in guile Konrad Hinsen
2019-08-31 17:38 ` Jesse Gibbons
2019-08-31 17:52   ` Jesse Gibbons
2019-09-01  8:15   ` Konrad Hinsen
2019-09-01 14:24     ` Jesse Gibbons
2019-09-04 10:42       ` Konrad Hinsen
2019-09-02 11:50 ` Ludovic Courtès

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