From: zimoun <zimon.toutoune@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: "(" <paren@disroot.org>, Guix Devel <guix-devel@gnu.org>
Subject: Re: Help with G-expression
Date: Fri, 02 Dec 2022 23:00:16 +0100 [thread overview]
Message-ID: <86a645cvpr.fsf@gmail.com> (raw)
In-Reply-To: <871qphqyrz.fsf@gnu.org>
Hi Ludo,
Thanks for your patience. :-)
On Fri, 02 Dec 2022 at 22:30, Ludovic Courtès <ludo@gnu.org> wrote:
> Oops, that one is a new bug due to
> 54003af85cc5b689bd328b30617c93ed2f5fd647. I’ll look into it.
Ah, a good news. :-)
>> Below the log file – missing (gcrypt hash).
>
> So (with-extensions (list guile-gcrypt) …), as in ‘video-ges-project’ in
> ‘render-videos.scm’¹.
>
> In essence, the gexp you want to run must specify all the Guile modules
> and extensions it depends on; this is what ‘with-imported-modules’ and
> ‘with-extensions’ let you express.
Not here. What I running is this:
--8<---------------cut here---------------start------------->8---
(with-imported-modules '((guix build utils)) ;import it
(computed-file "empty-tree"
#~(begin
;; Put it in scope.
(use-modules (guix build utils))
;; Happily use its 'mkdir-p' procedure.
(mkdir-p (string-append #$output "/a/b/c")))))
--8<---------------cut here---------------end--------------->8---
And it perfectly works. :-) As explained in the very first email in
this thread.
The issue is when I am adding (guix profiles) and nothing more to the
previous perfectly working ’computed-file’. How can I guess that this
module (guix profiles) requires (gcrypt hash) as extension? Just to be
loaded since it is not used.
Sorry I am missing the obvious.
Cheers,
simon
next prev parent reply other threads:[~2022-12-02 22:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-01 17:34 Help with G-expression zimoun
2022-12-01 18:21 ` (
2022-12-01 18:52 ` zimoun
2022-12-02 9:09 ` Ludovic Courtès
2022-12-02 13:19 ` zimoun
2022-12-02 21:30 ` Ludovic Courtès
2022-12-02 22:00 ` zimoun [this message]
2022-12-03 17:43 ` Ludovic Courtès
2022-12-04 11:11 ` zimoun
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=86a645cvpr.fsf@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
--cc=paren@disroot.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).