Hi, Fredrik Salomonsson <[email protected]> writes:
> I decided to try out guix home. But I hit a bit of a snag. I'm trying to
> port my waybar config over to it, but cannot figure out how to set the
> execution bit on my two custom scripts I have.
I use the following, which creates ~/.local/bin/shellcheck executable file:
--8<---------------cut here---------------start------------->8---
(home-environment
;; ...
(services
(list
(simple-service 'shellcheck-wrapper
home-files-service-type
(list `("local/bin/shellcheck"
,(computed-file
"shellcheck-wrapper"
#~(begin
(with-output-to-file #$output
(lambda ()
(format #t "\
#!/bin/sh
exec -a \"$0\" ~a/bin/shellcheck --shell=bash \"$@\"\n"
#$shellcheck)))
(chmod #$output #o555)))))))))
--8<---------------cut here---------------end--------------->8---
signature.asc
Description: PGP signature
