[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#44525: Derivation of computed-file has no outputs
From: |
Stefan |
Subject: |
bug#44525: Derivation of computed-file has no outputs |
Date: |
Mon, 9 Nov 2020 00:38:40 +0100 |
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