From: Stefan <stefan-guix@vodafonemail.de>
To: Marius Bakke <marius@gnu.org>
Cc: 44525@debbugs.gnu.org
Subject: bug#44525: Derivation of computed-file has no outputs
Date: Mon, 9 Nov 2020 00:38:40 +0100 [thread overview]
Message-ID: <B47943C1-CE23-412B-8A57-541651559208@vodafonemail.de> (raw)
In-Reply-To: <87o8k7fuik.fsf@gnu.org>
Hi Marius!
> Assuming you intended to write (%current-system) to test.txt, you can do
> something along these lines:
>
> (computed-file "test.txt"
> #~(call-with-output-file #$output
> (lambda (port)
> (format port #$(%current-system)))))
Thanks for this solution.
> That's expected: this derivation does not produce any outputs.
> So I think this is not-a-bug. WDYT?
I think I got a bit distracted by the functionality of plain-file and the similar wording of the documentation of computed-file.
Thanks, I’ll close this issue.
Bye
Stefan
next prev parent reply other threads:[~2020-11-08 23:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-08 20:19 bug#44525: Derivation of computed-file has no outputs Stefan
2020-11-08 20:44 ` Marius Bakke
2020-11-08 23:38 ` Stefan [this message]
2020-11-08 23:45 ` bug#44525: Stefan
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=B47943C1-CE23-412B-8A57-541651559208@vodafonemail.de \
--to=stefan-guix@vodafonemail.de \
--cc=44525@debbugs.gnu.org \
--cc=marius@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.
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).