[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about scripts in guix-home
From: |
Oleg Pykhalov |
Subject: |
Re: Question about scripts in guix-home |
Date: |
Thu, 21 Oct 2021 12:58:43 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Fredrik Salomonsson <plattfot@posteo.net> writes:
> Oleg Pykhalov <go.wigust@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. ;-)
signature.asc
Description: PGP signature