Fredrik Salomonsson <platt...@posteo.net> writes:

> Oleg Pykhalov <go.wig...@gmail.com> writes:
>
>> Well, if you don't want to put the content of
>> files/waybar/modules-mic.sh file inside a Scheme string, then you need
>> to read the file to a string, e.g.:
>> --8<---------------cut here---------------start------------->8---
>> (simple-service 'shellcheck-wrapper
>>                    home-files-service-type
>>                    (list `("local/bin/shellcheck"
>>                            ,(computed-file
>>                              "shellcheck-wrapper"
>>                              #~(begin
>>                                  (use-modules (ice-9 rdelim))
>>                                  (with-output-to-file #$output
>>                                    (lambda ()
>>                                      (display #$(with-input-from-file 
>> "/tmp/foo" read-string))))
>>                                  (chmod #$output #o555))))))
>> --8<---------------cut here---------------end--------------->8---
>
> I'm a bit confused, "Scheme string" and string aren't they the same
> thing?

Sorry for the confusion, you could omit the "Scheme" word. ;-)

Attachment: signature.asc
Description: PGP signature

Reply via email to