From: Konrad Hinsen <konrad.hinsen@fastmail.net>
To: help-guix@gnu.org
Subject: Scripting guix in guile
Date: Sat, 31 Aug 2019 19:03:37 +0200 [thread overview]
Message-ID: <m136hhuv12.fsf@fastmail.net> (raw)
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
next reply other threads:[~2019-08-31 17:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-31 17:03 Konrad Hinsen [this message]
2019-08-31 17:38 ` Scripting guix in guile 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
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=m136hhuv12.fsf@fastmail.net \
--to=konrad.hinsen@fastmail.net \
--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).